Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: Вопросы по Eclipse, CDT, Zylin embedded CDT
Форум разработчиков электроники ELECTRONIX.ru > Микроконтроллеры (MCs) > Cредства разработки для МК > GNU/OpenSource средства разработки
Страницы: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
IgorKossak
Цитата(AHTOXA @ Feb 13 2010, 22:22) *
Но это противоречит идее один проект = один воркспейс.

Зачем тогда воркспейс (или проект) как сущность?
У меня, например, много проектов в одном воркспейсе (в IAR было примерно так же), один проект активный, остальные отключены.
Но это моё мнение, не настаиваю.
AHTOXA
Да вот не знаю как раз, раньше жил без воркспейсов, и не тужилsmile.gif Сейчас эклипс вынуждает, приходится придумывать применение воркспейсам. Пока я принял для себя (не без помощи Сергея Борщаsmile.gif ), что воркспейс - это группа связанных проектов. То есть, какое-нибудь двухпроцессорное устройство - воркспейс с двумя проектами. А если устройство простое, то и проект в воркспейсе один. Как-то так.
IgorKossak
Цитата(AHTOXA @ Feb 14 2010, 00:58) *
... воркспейс - это группа связанных проектов. То есть, какое-нибудь двухпроцессорное устройство - воркспейс с двумя проектами. А если устройство простое, то и проект в воркспейсе один. Как-то так.

Такая связь далеко не единственная.
Могут быть связи или причины типа:
- приложение - бутлоадер;
- единая ОС или библиотека (как в Вашем случае);
- лень создавать новые воркспейсы biggrin.gif и переключаться между ними, всё под рукой;
- ... можно ещё при желании придумать.
AHTOXA
Тоже логично. Особенно вот это:
Цитата(IgorKossak @ Feb 14 2010, 14:34) *
- лень создавать новые воркспейсы biggrin.gif

smile.gif
Буду теперь ещё думать. Спасибо за помощь!
Dopler
Здравствуйте.
Использую так называемую AVR32Studio (самый настоящий Eclipse). Результатом компиляции являются файлы .elf. После компиляции такой файл можно открыть и посмотреть его структуру в текстовом виде, а так же на нем есть плюсик, который скрывает все ссылки из этого файла. Но периодически файл открываться перестает, вернее открывается, но в бинарном виде и плюсик с него пропадает. Кто-нибудь знает, с чем это связано?
Сергей Борщ
Цитата(Dopler @ Feb 18 2010, 21:29) *
Но периодически файл открываться перестает, вернее открывается, но в бинарном виде и плюсик с него пропадает. Кто-нибудь знает, с чем это связано?
Возможно, вы в настройках проекта Project->Propertities->C/C++ Build->Settings->Binary parsers убираете галочку с Elf parser?
Dopler
Цитата(Сергей Борщ @ Feb 18 2010, 23:28) *
Возможно, вы в настройках проекта Project->Propertities->C/C++ Build->Settings->Binary parsers убираете галочку с Elf parser?


Да, похоже дело именно в этом. Причем это я не сам ее убираю, а AVR32Studio как-то не корректно себя ведет с Make проектами. Я даже задал вопрос по этому поводу на AVRFreaks. Там сказали ждать следующей версии.
_Ivan_33
вот есть avr plugin for eclipse
где у него можно задать частоту и микроконтроллер!?!?!?
если кинуть мейкфайл в папку проекта - то она его не хочет жувать...
помогите пожалуйста
Konkere
Изучаю работу в Eclipse Galileo. Очень нужна помощь, как связать klen-овскую сборку GCC mips64-elf c Eclips-ом?
Сергей Борщ
Цитата(Konkere @ Mar 24 2010, 09:03) *
Изучаю работу в Eclipse Galileo. Очень нужна помощь, как связать klen-овскую сборку GCC mips64-elf c Eclips-ом?
Самое простое и гибкое - создать Other toolchain->makefile project. А уже в makefile руками указывайте какой угодно gcc.
Konkere
Цитата(Сергей Борщ @ Mar 24 2010, 14:08) *
Самое простое и гибкое - создать Other toolchain->makefile project. А уже в makefile руками указывайте какой угодно gcc.


Пожалуйста, поподробнее. И, если можно, ссылки по работе с Eclipse и созданию makefile. Для меня всё это пока тёмный лес.
Сергей Борщ
Цитата(Konkere @ Mar 26 2010, 06:15) *
Пожалуйста, поподробнее. И, если можно, ссылки по работе с Eclipse и созданию makefile. Для меня всё это пока тёмный лес.
Я в качестве отправной точки использовал описание "в картинках" от проекта Yagarto. Скачиваете и ставите Eclipse IDE for C/C++ Developers, далее по инструкциям от yagarto создаете проект, на вкладке discovery заменяете имя компилятора gcc на имя вашего компилятора (для AVR это будет avr-gcc, например). Компилятор должен быть прописан в path.
По написанию makefile - берете документацию на make, читаете от начала до конца, потом берете готовый makefile и правите под себя. Можете посмотреть makefile от проекта scmRTOS - от порта для AVR или ARM под GCC.
bureau
Немогу запустить Eclipse как на Win так и на Lunux(ubuntu)
При при загрузке выдает:
Код
VM terminated. Exit code=13
-Xms40m
-Xmx256m
-Djava.class.path=/media/A6AE7006AE6FCD7D/!/Soft/Eclipse/eclipse_linux/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-os linux
-ws gtk
-arch x86
-showsplash /media/A6AE7006AE6FCD7D/!/Soft/Eclipse/eclipse_linux/eclipse//plugins/org.eclipse.platform_3.3.3.r33x_r20080129/splash.bmp
-launcher /media/A6AE7006AE6FCD7D/!/Soft/Eclipse/eclipse_linux/eclipse/eclipse
-name Eclipse
--launcher.library /media/A6AE7006AE6FCD7D/!/Soft/Eclipse/eclipse_linux/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.3.R33x_v20080118/eclipse_1023.so
-startup /media/A6AE7006AE6FCD7D/!/Soft/Eclipse/eclipse_linux/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-vm /usr/lib/jvm/java-6-openjdk/jre/bin/../lib/i386/client/libjvm.so
-vmargs
-Xms40m
-Xmx256m
-Djava.class.path=/media/A6AE7006AE6FCD7D/!/Soft/Eclipse/eclipse_linux/eclipse/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar

В чем может быть проблема? Прошолся по гуглу, попробывал разные варианты, не помогает... sad.gif
Andysan
Доброго времени суток! Использую связку Eclipse+GDB+OpenOCD+Wiggler. В ходе моих студенческих порывов удалось запустить дебаггер через JTAG в Эклипсе. Но далее возникла проблема, ставлю брейкпоинт на main, до него все прекрасно добегает, далее возможны 2 варианта:
1. Жмем Run и несемся к следующему брейкпоинту(который довольно далеко), после него 1 Step into и все, OpenOCD успешно падает.
2. Жмем Step Into, входим в функцию, делаем два шага и опять OpenOCD падает.

Больше 2 брейкпоинтов не видет - при попытке добавления и запуска пишет что нельзя поставить брейкпоинт ибо и так слишком много. При вылете в консоль OpenOCD пишет - Ошибка 308. Сталкивался кто-нить с подобным и есть ли идеи как это лечить?
Злодей
Цитата(bureau @ Apr 16 2010, 21:17) *
Немогу запустить Eclipse как на Win так и на Lunux(ubuntu)
При при загрузке выдает:
Код
VM terminated. Exit code = ...
...

В чем может быть проблема? Прошолся по гуглу, попробывал разные варианты, не помогает... sad.gif

как на Win так и на Lunux - это как?

Действительно неприятно, что не работает после после свежей установки с DVD Debian 5.0.0 2009-02-14. В ububtu вроде так же было... Наверное уже исправли.

+ Установил сегодня по мануалу http://flurdy.com/docs/eclipse/install.html. Мануал для ubuntu, прокатило в Debian 5.0.0 2009-02-14.

- Впечатление - ужасное. Шрифты толстые и размытые, вокруг всех компонентов гуя такие широкие границы, что Eclipse раздуло до потери формы. Это можно исправить?
klen
Цитата(Злодей @ Apr 26 2010, 21:58) *
Впечатление - ужасное. Шрифты толстые и размытые, вокруг всех компонентов гуя такие широкие границы, что Eclipse раздуло до потери формы. Это можно исправить?


а это не настроки оконного менеджера? мож еклипса туту нипричем?
IgorKossak
Eclipse точно ни причём. Работаю в том числе под Ubuntu 10.04 32-bit. Вид она имеет такой же как и в Windows.
bureau
Цитата(Злодей @ Apr 26 2010, 20:58) *
как на Win так и на Lunux - это как?

Получаю одинаковую ошибку как на Linux так и на Windows
На Ubuntu закинул файлы в дерикторию /home, обновил java и все заработало
Как я понял под Windows нужно прописать пути в системных переменных но этот вопрос пока не решал.

Цитата(Злодей @ Apr 26 2010, 20:58) *
- Впечатление - ужасное. Шрифты толстые и размытые, вокруг всех компонентов гуя такие широкие границы, что Eclipse раздуло до потери формы. Это можно исправить?

размер шрифтов в настройках поменяйте и все будет в порядке
IgorKossak
Цитата(bureau @ Apr 27 2010, 11:33) *
Как я понял под Windows нужно прописать пути в системных переменных но этот вопрос пока не решал.

Не правильно поняли. Eclipse ни в каких системных изменениях не нуждается.
Алгоритм установки предельно прост.
1. Устанавливаете самую свежую jre (ставить jdk нет необходимости).
2. Распаковываете из архива Eclipse в любое подходящее место (у меня он находится в Program Files).
3. Запускаете eclipse.exe из установленной папки. Можно создать удобный ярлык где-нибудь.
4. Создаёте где-нибудь в рабочем пространстве workspace.
5. Если есть необходимость добавить плагины к Eclipse, то добавляются они только через Help->Install New Software... Перед этим желательно настроить сеть в Window->Preferences->General->Network Connections
Всё.
bureau
Цитата(IgorKossak @ Apr 27 2010, 12:01) *
Не правильно поняли. Eclipse ни в каких системных изменениях не нуждается.

Извините! Немного не дописал. Я имел ввиду что пути прописывать для JAVA или JDK.
А для Eclipse с вами совершенно согласен что ничего делать не надо.
IgorKossak
Цитата(bureau @ Apr 27 2010, 13:32) *
Извините! Немного не дописал. Я имел ввиду что пути прописывать для JAVA или JDK.

Тоже странно. Ни под Linux Ubuntu 10.04 32-bit (да, впрочем, любая) ни под Windows XP SP2/3 ничего специально прописывать не приходилось.
Осталось выяснить как Вы под каждой системой ставите jre.
Хотя, всё более чем подробно описано у Yagarto (для Windows) http://www.yagarto.de/howto/yagarto2/index.html.
Konkere
Доброго времени суток. Вопрос сверхначального уровня. До сих пор изучаю Eclipse Galileo в связке с gcc. Как запустить С-программу, написанную под MIPS-архитектуру, внутри Eclipse без ошибок ("running failing"); по сути говоря, чтобы нажал на "Run" и пошло. Я молчу пока про Debug 05.gif
msalov
Цитата(Konkere @ May 4 2010, 12:47) *
Доброго времени суток. Вопрос сверхначального уровня. До сих пор изучаю Eclipse Galileo в связке с gcc. Как запустить С-программу, написанную под MIPS-архитектуру, внутри Eclipse без ошибок ("running failing"); по сути говоря, чтобы нажал на "Run" и пошло. Я молчу пока про Debug 05.gif

Программу для мипса можно запустить:
1. на мипсе
2. на эмуляторе мипса
А как вы пытаетесь?
Konkere
Цитата(gotty @ May 4 2010, 16:41) *
Программу для мипса можно запустить:
1. на мипсе
2. на эмуляторе мипса
А как вы пытаетесь?


Насколько я знаю, у gcc есть свой симулятор, разве нельзя его использовать в Eclipse?
msalov
Цитата(Konkere @ May 5 2010, 06:56) *
Насколько я знаю, у gcc есть свой симулятор, разве нельзя его использовать в Eclipse?

Вы не уточнили чьей сборкой gcc вы пользуетесь, но у CodeSourcery есть в поставке Sourcery G++ Lite 4.4-191 for MIPS ELF утилита mips-sde-elf-run для запуска программы в симуляторе, или внутри gdb можно, указав "target sim". В Getting Started про это написано.
juvf
есть проект написанный на Си в IAR для MSP430. Можно как нибудь настроить eclipce на сборку проекта IAR-овскими сборщиком и компилятором xlink и icc430?
AHTOXA
А что не получается? Написать makefile?
Попробуйте вот это: Нажмите для просмотра прикрепленного файла
Это я взял свой старый makefile для сборки iar (для borland make) и поправил его для GNU make.
Компилирует все *.c файлы, которые найдёт в папке src.
К сожалению проверить не на чем, IAR-а давно нет.
Исходный makefile.bor прилагается. Пример проекта eclipse - тоже.
Konkere
Цитата(gotty @ May 5 2010, 12:14) *
Вы не уточнили чьей сборкой gcc вы пользуетесь, но у CodeSourcery есть в поставке Sourcery G++ Lite 4.4-191 for MIPS ELF утилита mips-sde-elf-run для запуска программы в симуляторе, или внутри gdb можно, указав "target sim". В Getting Started про это написано.


Именно CodeSourceryLite и пользуюсь в качестве компилятора. К сожалению, я не смог запустить mips-sde-elf-run по GettingStarted, поэому вопрос мой остаётся в силе. Надеюсь на вашу помощь. help.gif
msalov
Цитата(Konkere @ May 6 2010, 12:10) *
К сожалению, я не смог запустить mips-sde-elf-run по GettingStarted, поэому вопрос мой остаётся в силе. Надеюсь на вашу помощь. help.gif

Если уж надеетесь, хоть рассказали бы почему не получилось, какие сообщения получили. Попробуйте через gdb в добавок.

P.S. с мипсами дела не имел.
UPD.
Попробовал примерчик с факториалом.
Код
mips-sde-elf-gcc -EL -mno-float -o factorial.elf factorial.c -T mipssim-hosted.ld
mips-sde-elf-gdb.exe ./factorial.elf
> target sim
> load
> b main
> run
> n
топает по строчкам, только принтф не работает sad.gif (или я не умею его готовить) Не смотрите что из командной строки, отладчик легко цепляется к эклипсу. Через mips-sde-elf-run запустить не удалось, видимо надо основательно курить мануалы.
kiuaki
При компиляции в Eclipse у меня и многих других появляется сообщение
“Error launching external scanner info generator”. Это относится к различным Eclipse-ам и различным сборкам для различных микроконтроллеров.
На интернет имеется множество предложений как от него избавиться.
Вопрос теперь не в том как от него избавиться. Интригует уже другое.
Пару дней поиска на интенет не дало абсолютно никакого ( ни одного!) ответа на вопрос о том
1 что же, собственно, такое «external scanner info generator»,
2 зачем он нужен
3 и как работает.
Может ли кто-нибудь дать хоть какое-то объясненте по этому вопросу.
Лучше будет в виде живого ответа, поскольку интуиция подсказывает что даже хорошая ссылка не прояснит всё что необходимо.
IgorKossak
Цитата(kiuaki @ May 6 2010, 22:03) *
При компиляции в Eclipse у меня и многих других появляется сообщение
“Error launching external scanner info generator”.

Project->Properties->C/C++ Build->Discovery Options->Включить Automate discovery of paths and symbols, Включить Enable generate scanner info command, в поле Compiler invocation command впишите свой компилятор (у меня arm-none-eabi-gcc), в поле Compiler invocation arguments должно быть -E -P -v -dD ${plugin_state_location}/${specs_file}
Теоретическую подоплёку всего этого не знаю, читать документацию надо по gcc и его аргументам.
Сергей Борщ
Цитата(kiuaki @ May 6 2010, 22:03) *
1 что же, собственно, такое «external scanner info generator»,
2 зачем он нужен
3 и как работает.
Чисто интуитивно: он сообщает оболочке о путях к системным библиотекам. Если он есть, то в дереве проекта в разделе includes появятся папки заголовочных файлов вашего компилятора и оболочка сможет искать в них всякие объявления. Возможно он также сообщает оболочке некоторые предопределенные компилятором символы (__GNUC__ и подобные). Пути из gcc добываются запуском компилятора с соответствующими ключами. Более точно понять, что же из компилятора добывает оболочка можно, прочитав описание ключей запуска: -E -P -v -dD
kiuaki
Спасибо.
Теперь, когда есть подсказка от вас, где почитать по данному поводу, займусь этим.
Я связался с Cortex M3 и имею довольно большой объём работы.
Выбрал Eclipse (Galileo)+Yagarto. В то же время установил ещё и инструментарий от
Olimex ARM-USB-OCD (c Eclipse - Ganymede) . Хочу также настроить Insight.
Буду делиться впечатлениями.
kiuaki
Со вчерашнего дня бороздил интернет по поводу следующего вопроса:
Eclipse (Galileo и Ganymede, оба для С/С++ , Yagarto) при создании New Project C не даёт возможности выбрать Generate makefile automatically . Поле greyed out или disabled.
Интернет ссылается на то что при создании нового проекта нужно выбрать Managed Makefile тип проекта. С серьёзными времязатратами выяснилось что Managed Makefile термин теперь в Eclipse не используется. Для автоматической генерации makefile теперь дОлжно использовать
New Project | C Project | C Executable (или что-то звучащее похожим образом). Но как раз этой опции у меня не возникает.
То что предлагается в моих Eclipse- ах это New Project | C Project | Makefile project где имеется выбор из Empty Project и Hello World C++ Project. Toolchains: Other Toolchain и только это.
Знает ли кто нибудь как можно осуществить автогенерацию makefile в Eclipse?
Может ли быть что у меня не установлен или не прописан в PATH-переменной какой-нибудь компонент?
Многие примеры различных проектов при этом номально компилируются. Также, если я добавляю в проект makefile вручную, то он скомпилируется.
Mitsufan
Цитата(Konkere @ May 6 2010, 12:10) *
Именно CodeSourceryLite и пользуюсь в качестве компилятора. К сожалению, я не смог запустить mips-sde-elf-run по GettingStarted, поэому вопрос мой остаётся в силе. Надеюсь на вашу помощь. help.gif


Printf в симуляторе elf-run из под Win32 действительно не работает. В том числе и если запускать target sim в gdb. Об этом уже спрашивали на ARM форуме Sourcery, правда без ответа... Не работает вывод и в симуляторе сборки Клена. Наверное, какая-то общая проблема в заглушками (системными вызовами) для функций _write и т.п. Надо качать ограниченную по времени версию полнофункционального Sourcery c IDE и использовать эмулятор qemu. Тогда printf заработает. Потом можно даже научиться запускать target qemu в gdb и вернуться к применению lite компилятора. К тому же, в qemu можно хотя бы приблизительно считать процессорное время таймером c0_count, а как это делать в sim я так и не нашел.

Если я не прав (сам только недавно связался с gcc), с удовольствием выслушаю подсказку. Может надо Mingw доустанавливать?
Сергей Борщ
Цитата(kiuaki @ May 7 2010, 18:06) *
Знает ли кто нибудь как можно осуществить автогенерацию makefile в Eclipse?
Смею предположить (сам не пользуюсь, пишу makefile вручную), что оболочка должна знать, какие ключи подставлять компилятору. И как-то должна давать вам возможность задавать их галочками. Вероятно, эти возможности предоставляет соответствующий плугин - для ARM или для AVR. Попробуйте, отпишитесь.
kiuaki
to Сергей Борщ - Попробуйте, отпишитесь.

Спасибо, Сергей.
Но я этих галочек как раз давно стараюсь поймать, т.е. определить где бы они могли находиться.
Я сейчас ещё попытаюсь выяснить все ли необходимые компоненты присутсрвуют. Одна возможная закономерность проявляется сейчас в том что там где Eclipse работает с Cygwin – там всё в порядке, (т.е. имеется возможность выбора между Managed Makefile и Standard Makefile типами проекта. Там, где Eclipse работает с YAGARTO,этот выбор может быть или не быть. Сейчас это уточняю. Не исключено, однако, что это тупиковое направление.
Отпишусь
juvf
Цитата(AHTOXA @ May 5 2010, 23:53) *
А что не получается? Написать makefile?
Попробуйте вот это: Нажмите для просмотра прикрепленного файла
Это я взял свой старый makefile для сборки iar (для borland make) и поправил его для GNU make.
Компилирует все *.c файлы, которые найдёт в папке src.
К сожалению проверить не на чем, IAR-а давно нет.
Исходный makefile.bor прилагается. Пример проекта eclipse - тоже.

Ну да,,,, не получается написать makefile. Ваш проект скачал, попробовал собрать - ошибки
Код
--- compiling main.c

   IAR C/C++ Compiler V4.20.1.20017/W32, Evaluation edition for MSP430
Command line error: Unexpected command line arguments:
   Copyright 1996-2008 IAR Systems AB.
          -c
          -S
          -K
          -gA
          -RCODE
          -L./lst/
          -q
          -A./lst/
          -t8
mingw32-make: *** [obj/main.o] Error 2


Я сделал свой тестовый проект, типа "Hello word" в иаре. посмотрел с какими ключами вызывается icc430 И xlink. Написал свой makefile с такими же ключами.
Код
CFLAGS    += -o $(OBJDIR)
LD_FLAGS    = -o $(EXEDIR)/$(TARGET).d43

$(HEX):    $(OBJS) makefile
    @echo --- linking...
    icc430 $(OBJDIR$)/main.r43 $(LD_FLAGS)

$(OBJDIR)/%.r43: %.c
    @echo --- compiling $(*F).c
    $(CC) $(CFLAGS) -o $@ $<


Получаю ошибку
Код
**** Build of configuration Default for project testMSP430 ****

mingw32-make all
--- compiling main.cpp

   IAR C/C++ Compiler V4.20.1.20017/W32, Evaluation edition for MSP430
   Copyright 1996-2008 IAR Systems AB.
Command line error: Option can only occur once: --output/-o
mingw32-make: *** [Debug/Obj/main.r43] Error 2


Почему так? Как решить проблему?
AHTOXA
Цитата(juvf @ May 11 2010, 10:35) *
Код
--- compiling main.c

   IAR C/C++ Compiler V4.20.1.20017/W32, Evaluation edition for MSP430
Command line error: Unexpected command line arguments:


Хм. Видимо у меня был очень старый IAR smile.gif
Но не суть. Раз ключи запуска вы знаете, то проблема решаемая. Запишите все ключи в CFLAGS.
Для проверки правильности формирования командной строки запускайте
Код
make -n
, этот ключ говорит make ничего не выполнять, а лишь напечатать команды, планируемые к выполнению.

Цитата
Код
CFLAGS    += -o $(OBJDIR)

А здесь вроде нужна большая "O".
juvf
Цитата(AHTOXA @ May 11 2010, 11:57) *
А здесь вроде нужна большая "O".


Код
icc430
-o file|path    Specify object file
-O[n|l|m|h|hs|hz]
                Select level of optimization:
                   n   No optimizations
                   l   Low optimizations (default)
                   m   Medium optimizations
                   h   High optimizations
                   hz  High optimizations, tuned for small code
                   hs  High optimizations, tuned for high speed


что означает строка в makefile "$(CC) $(CFLAGS) -o $@ $<"? Конкретно что значит "-o $@ $<"
AHTOXA
Цитата(juvf @ May 11 2010, 12:39) *
Код
-O[n|l|m|h|hs|hz]
                Select level of optimization

У-у, видимо совсем всё поменялось в IAR:)

Цитата
что означает строка в makefile "$(CC) $(CFLAGS) -o $@ $<"? Конкретно что значит "-o $@ $<"


Вместо $(ИМЯ_ПЕРЕМЕННОЙ) подставляется значение этой переменной. У нас
CC = $(IARBIN)/icc430.exe,
CFLAGS = флаги компилятора.

$@ и $< - специальные переменные, цель и зависимость. В данном случае - имя объектного файла и исходника. (например, $@ = main.r43, $< = main.c)

Ещё раз повторю, попробуйте запустить make с ключом -n, и часть вопросов сразу снимется. Вот например, что получилось у меня с исходным мейк-файлом:
Код
D:\tmp\iarmake>make -n
echo --- compiling main.c
D:/Tools/micros/MSP430/IAR_EW23/430/bin/icc430.exe -c -S -O./obj/ -e -K
-gA -s9 -RCODE -r0 -L./lst/ -ID:/Tools/micros/MSP430/IAR_EW23/430/inc/  
-I "./src"  -I "./src/base"  -I "./src/terminal" -q -A./lst/ -t8 -DFLOAT_SUPPORT
-o obj/main.o ./src/main.c
echo --- linking...
D:/Tools/micros/MSP430/IAR_EW23/430/bin/xlink.exe  ./obj/main.o
-Ointel-standard -o ./exe/msp-eclipse-iar-test.d43 -l ./lst/msp-eclipse-iar-test.map
-xms -ID:/Tools/micros/MSP430/IAR_EW23/430/lib/  
-f D:/Tools/micros/MSP430/IAR_EW23/430/cw430/msp430F149.ddf
echo "Errors: none"
MegaFPGA
Пытаюсь запустить отладчик.


В чем может быть проблема ?
Сергей Борщ
Цитата(MegaFPGA @ May 14 2010, 07:20) *
В чем может быть проблема ?
Вы не указали кристалл в конфиге OpenOCD. Что-то типа такого:
Код
set CHIPNAME at91sam7s256
source [find target/at91sam7sx.cfg]
MegaFPGA
Спасибо. Помогло.
Теперь картина следующая:
Открываю дебагер перпектив
Запускаю OpenOCD
Консоль:
CODE
Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Warn : use 'at91sam7s.cpu' as target identifier, not '0'
parport port = 0x378
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Info : clock speed 500 kHz
Info : JTAG tap: at91sam7s.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Info : Embedded ICE version 1
Info : at91sam7s.cpu: hardware has 2 breakpoint/watchpoint units


Запускаю Zylin
Консоль:
CODE
target remote localhost:3333
0x00000000 in ?? ()
monitor flash device = AT91SAM7S256
flash device = AT91SAM7S256: command requires more arguments
in procedure 'flash' called at file "command.c", line 650
called at file "command.c", line 361
monitor flash download = 1
flash download = 1: command requires more arguments
in procedure 'flash' called at file "command.c", line 650
called at file "command.c", line 361
monitor flash breakpoints = 1
flash breakpoints = 1: command requires more arguments
in procedure 'flash' called at file "command.c", line 650
called at file "command.c", line 361
monitor endian little
Runtime error, file "command.c", line 650:
invalid command name "endian"
monitor speed 30
Runtime error, file "command.c", line 650:
invalid command name "speed"
monitor reset 8
at91sam7s.cpu arp_examine
at91sam7s.cpu arp_halt
at91sam7s.cpu arp_halt_gdb
at91sam7s.cpu arp_poll
at91sam7s.cpu arp_reset
at91sam7s.cpu arp_waitstate
jtag arp_init-reset
jtag_reset trst_active srst_active
power_restore
reset [run|halt|init]
reset_config [none|trst_only|srst_only|trst_and_srst]
[srst_pulls_trst|trst_pulls_srst|combined|separate]
[srst_gates_jtag|srst_nogate] [trst_push_pull|trst_open_drain]
[srst_push_pull|srst_open_drain]
reset_nag ['enable'|'disable']
soft_reset_halt
srst_deasserted
Command handler execution failed
in procedure 'reset' called at file "command.c", line 650
called at file "command.c", line 361
monitor sleep 10
monitor writeu32 0xFFFFFD44 = 0x00008000
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
monitor writeu32 0xFFFFFC20 = 0x00000601
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
monitor sleep 10
monitor writeu32 0xFFFFFC2C = 0x00480a0e
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
monitor sleep 10
monitor writeu32 0xFFFFFC30 = 0x00000007
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
monitor sleep 10
monitor writeu32 0xFFFFFF60 = 0x00480100
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
monitor sleep 100
monitor speed 12000
Runtime error, file "command.c", line 650:
invalid command name "speed"
load
Loading section .text, size 0x8cf0 lma 0x100000
Load failed
break main
Breakpoint 12 at 0x1002d0
continue
Warning:
Cannot insert breakpoint 12.
Error accessing memory address 0x1002d0: (undocumented errno -1).



Disassembly:

CODE
0x00000000 andeq r0, r0, r0
0x00000004 andeq r0, r0, r0
0x00000008 andeq r0, r0, r0
0x0000000c andeq r0, r0, r0
0x00000010 andeq r0, r0, r0
0x00000014 andeq r0, r0, r0
0x00000018 andeq r0, r0, r0
0x0000001c andeq r0, r0, r0
0x00000020 andeq r0, r0, r0
0x00000024 andeq r0, r0, r0
0x00000028 andeq r0, r0, r0
0x0000002c andeq r0, r0, r0
0x00000030 andeq r0, r0, r0
0x00000034 andeq r0, r0, r0
0x00000038 andeq r0, r0, r0
0x0000003c andeq r0, r0, r0
0x00000040 andeq r0, r0, r0
0x00000044 andeq r0, r0, r0
0x00000048 andeq r0, r0, r0
0x0000004c andeq r0, r0, r0
0x00000050 andeq r0, r0, r0
0x00000054 andeq r0, r0, r0
0x00000058 andeq r0, r0, r0
0x0000005c andeq r0, r0, r0
0x00000060 andeq r0, r0, r0

Дальше идет полный мудежь
CODE
Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Warn : use 'at91sam7s.cpu' as target identifier, not '0'
parport port = 0x378
jtag_nsrst_delay: 200
jtag_ntrst_delay: 200
srst_only srst_pulls_trst srst_gates_jtag srst_open_drain
Info : clock speed 500 kHz
Info : JTAG tap: at91sam7s.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
Info : Embedded ICE version 1
Info : at91sam7s.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting 'gdb' connection from 0
Warn : acknowledgment received, but no packet pending
undefined debug reason 6 - target needs reset
Error: Target not halted
Error: auto_probe failed -304

Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
flash device = AT91SAM7S256: command requires more arguments
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
flash download = 1: command requires more arguments
flash breakpoints = 1: command requires more arguments
Runtime error, file "command.c", line 650:
invalid command name "endian"
Runtime error, file "command.c", line 650:
invalid command name "speed"
Command handler execution failed
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "speed"
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target at91sam7s.cpu is not halted
Error: can't add breakpoint: target running
Info : dropped 'gdb' connection - error -400
Info : accepting 'gdb' connection from 0
Warn : acknowledgment received, but no packet pending
undefined debug reason 6 - target needs reset
Error: Target not halted
Error: auto_probe failed -304

Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
flash device = AT91SAM7S256: command requires more arguments
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target not halted
flash download = 1: command requires more arguments
flash breakpoints = 1: command requires more arguments
Runtime error, file "command.c", line 650:
invalid command name "endian"
Runtime error, file "command.c", line 650:
invalid command name "speed"
Command handler execution failed
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "writeu32"
Runtime error, file "command.c", line 650:
invalid command name "speed"
Warn : target not halted
Warn : target not halted
Warn : target not halted
Warn : target at91sam7s.cpu is not halted
Error: can't add breakpoint: target running
Error: invalid mode value encountered 1
Error: cpsr contains invalid mode value - communication failure
Error: invalid mode value encountered 1
Error: cpsr contains invalid mode value - communication failure
target state: halted
target halted in Thumb state due to watchpoint, current mode: Supervisor
cpsr: 0x20000073 pc: 0x00002661
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Jazelle debug entry -- BROKEN!
Error: Jazelle state handling is BROKEN!
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 00002f48 - check that memory is read/writable
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
Error: Unable to set 32 bit software breakpoint at address 001002d0 - check that memory is read/writable
Error: unhandled core state
Warn : breakpoint not set
MegaFPGA
Оказывается make не работает
выдает вот что:
CODE

**** Build of configuration Default for project UMGPS ****

make umgps
arm-none-eabi-gcc umgps.o -o umgps
umgps.o: In function `ISR_Driver':
um_main.c:(.text+0x24): undefined reference to `sDefaultDriver'
umgps.o: In function `ISR_VBus':
um_main.c:(.text+0x58): undefined reference to `sDefaultDriver'
umgps.o: In function `CBK_NewRequest':
um_main.c:(.text+0x68): undefined reference to `BOT_RequestHandler'
umgps.o: In function `CBK_Resume':
um_main.c:(.text+0x7c): undefined reference to `DEV_Resume'
umgps.o: In function `CBK_Suspend':
um_main.c:(.text+0x8c): undefined reference to `DEV_Suspend'
umgps.o: In function `CBK_Reset':
um_main.c:(.text+0xa0): undefined reference to `BOT_Reset'
umgps.o: In function `CBK_Init':
um_main.c:(.text+0xf8): undefined reference to `BRD_ConfigureVBus'
umgps.o: In function `System_Controller_Interrupt_Handler':
um_main.c:(.text+0x164): undefined reference to `Periodic_Interval_Timer_ISR'
um_main.c:(.text+0x16c): undefined reference to `CC_Check_Time_Elapsed'
umgps.o: In function `ISR_CC100_Usart0':
um_main.c:(.text+0x194): undefined reference to `CC_USART0_Interrupt_Handler'
umgps.o: In function `main':
um_main.c:(.text+0x1f4): undefined reference to `BOT_Init'
um_main.c:(.text+0x1fc): undefined reference to `MODB_InitRegs'
um_main.c:(.text+0x208): undefined reference to `Init_PIT_Timer'
um_main.c:(.text+0x214): undefined reference to `CC_Init'
um_main.c:(.text+0x28c): undefined reference to `BOT_StateMachine'
um_main.c:(.text+0x29c): undefined reference to `Um_CC_MB_bot'
um_main.c:(.text+0x33c): undefined reference to `sDefaultDriver'
umgps.o:(.rodata+0x0): undefined reference to `sDefaultDriver'
c:/program files/yagarto/bin/../lib/gcc/arm-none-eabi/4.5.0/../../../../
arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
C:\msys\1.0\home\yagarto\newlib-build\arm-none-eabi\newlib\libc\stdlib
/../../../../../newlib-1.18.0/newlib/libc/stdlib/exit.c:65: undefined reference to `_exit'
collect2: ld returned 1 exit status
make: *** [umgps] Error 1


Почему если нажимать build all все работает и нормально собирается а когда собираешь через build make target выдает ошибку ?

Что здесь понимается под словом target ?
Сергей Борщ
Цитата(MegaFPGA @ May 14 2010, 09:16) *
Спасибо. Помогло.
Теперь картина следующая:
...
Запускаю Zylin
Как-то у вас очень сложно получилось. Я использую Zylin embedded CDT plugin и ничего отдельно запускать не нужно.
Вот мой openocd.cfg:
CODE
interface jlink
jtag_khz 32
set CHIPNAME at91sam7s64
source [find target/at91sam7sx.cfg]

#flash bank $_FLASHNAME at91sam7 0 0 0 0 $_TARGETNAME 0 0 0 0 0 0 0 4032

arm7_9 fast_memory_access enable
arm7_9 dcc_downloads enable

proc read_register {register} {
set result ""
ocd_mem2array result 32 $register 1
return $result(0)
}


# remap. 0 = flash, 1 = ram
proc remap { area } {
set ram_start 0x00200000
set tmp1 [read_register 0]
#alter ram[0] contents
mww $ram_start [ expr [read_register $ram_start] ^ 0xFFFFFFFF]
set tmp2 [read_register 0]
#restore ram[0]
mww $ram_start [ expr [read_register $ram_start] ^ 0xFFFFFFFF]

if [ expr $tmp1 == $tmp2 ] { # remaped contents not altered -> flash remaped
if [ expr $area == 1 ] { # remap required
mww 0xFFFFFF00 0x00000001
}
} else {
if [ expr $area == 0] { # remap required
mww 0xFFFFFF00 0x00000001
}
}
}


$_TARGETNAME configure -event reset-init {
soft_reset_halt
# RSTC_CR : Reset peripherals
jtag_khz 32
mww 0xfffffd00 0xa5000004
# wait until SRCMP set (reset in progress)
while { [expr [read_register 0xfffffd04] & 0x00020000] != 0 } { sleep 1 }

# OSC enable, no timeout
mww 0xFFFFFC20 0x00000001
# wait until MOSCS
while { [expr [read_register 0xfffffC68] & 0x00000001] == 0 } { sleep 1 }

# Assuming 4.032 MHz osc
# *36/3 set LOCK after 6 SCLK
mww 0xFFFFFC2C 0x00230602

# PRES = 2
mww 0xFFFFFC30 0x00000004
#wait untli MCKRDY
while { [expr [read_register 0xfffffC68] & 0x00000008] == 0 } { sleep 1 }

# MCK = PLLCK / 2
mww 0xFFFFFC30 0x00000007
#wait untli MCKRDY
while { [expr [read_register 0xfffffC68] & 0x00000008] == 0 } { sleep 1 }

jtag_khz 8000 #0

# MC_FMR: FWS=1
mww 0xffffff60 0x00000100

remap 0
echo "reset done"
}
OpenOCD я запускаю прямо из gdb через pipe. Можно запускать отдельно и соединяться через target remote localhost:3333, но мне отдельный запуск показался неудобным. Вот что у меня записано в .gdbinit:
Код
target remote | openocd --pipe
#target remote localhost:3333
monitor reset init
load
s



Цитата(MegaFPGA @ May 14 2010, 10:55) *
Оказывается make не работает

Что здесь понимается под словом target ?
make работает. Он делает свою работу. target в терминологии make - цель, такая как clean или all. Но как-то не приходилось пользоваться опцией Make Target. Жму на иконку с молотком и он строит текущий проект.
MegaFPGA
С таким конфигом выдает вот что:
CODE
target remote | openocd --pipe
Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Remote communication error: No error.
monitor reset init
"monitor" command not supported by this target.
load
You can't do that when your target is `exec'
s
The program is not being run.
zltigo
Цитата(MegaFPGA @ May 14 2010, 07:20) *
Пытаюсь запустить отладчик.

Admin: Исходные тексты превышающие все разумные размеры по ширине и сбивающие внешний вид форума будут удаляться.
Сергей Борщ
Цитата(MegaFPGA @ May 14 2010, 13:25) *
С таким конфигом выдает вот что:
Ну что можно сказать?
CODE
source .gdbinit
Open On-Chip Debugger 0.4.0 (2010-04-14-14:55)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
0x0e874090 in ?? ()
JTAG tap: at91sam7s64.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787, part: 0xf0f0, ver: 0x3)
srst pulls trst - can not reset into halted mode. Issuing halt after reset.
target state: halted
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x300000d3 pc: 0x000ee8e4
requesting target halt and executing a soft reset
target state: halted
target halted in ARM state due to breakpoint, current mode: Supervisor
cpsr: 0x300000d3 pc: 0x00000000
32 kHz
8000 kHz
reset done
А если запустить openOCD отдельно и подключившись к нему через telnet дать команду reset init?
gte
Цитата(Сергей Борщ @ May 14 2010, 13:56) *
OpenOCD я запускаю прямо из gdb через pipe. Можно запускать отдельно и соединяться через target remote localhost:3333, но мне отдельный запуск показался неудобным. Вот что у меня записано в .gdbinit:[code]target remote | openocd --pipe

А как запустить JLinkGDBServer кто знает?
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Invision Power Board © 2001-2025 Invision Power Services, Inc.