Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: Проблема с msp430-gdbproxy и msp430-gdb
Форум разработчиков электроники ELECTRONIX.ru > Микроконтроллеры (MCs) > Cредства разработки для МК > GNU/OpenSource средства разработки
Sie
Доброго всем времени суток!
Проблема в следующем: при соединении msp430-gdb с msp430-gdbproxy связь обрывается сразу же после соединения. ОС - Windows XP Sp3 32bit.
Последовательность действий:
1) Запускаю msp430-gdbproxy
Код
msp430-gdbproxy++ v1.4 [http://gnutoolchains.com/msp430/gdbproxy]
Successfully initialized MSP430.DLL on USB
Listening on port 2000.

Run "msp430-gdbproxy --help" to learn about command line options.
To start debugging:
    1. Start "msp430-gdb <yourfile.elf>"
    2. Run the "target remote :2000" command in GDB.
    3. Run "load" to program the FLASH memory.
    4. In case of GDB errors, see this window for more info.
If you don't have msp430-gdb, visit http://gnutoolchains.com/msp430 to get it.


2) Далее во второй консоли запускаю msp430-gdb и пытаюсь соединиться с проксей.
Код
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=msp430".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from D:\_Libraries\Software\msp430_GNU_toolchain\mspdebug/test.elf...done.
(gdb) target remote :2000
Remote debugging using :2000


3) А оно мне и говорит:
msp430-gdbproxy:
Код
Incoming connection from GDB. Starting session...
Found a device: MSP430FG4618
Number of hardware breakpoints: 8
118528 bytes of FLASH memory (0x3100-0x1ffff)
2048 bytes of RAM (0x0200-0x09ff)
8192 bytes of RAM2 (0x1100-0x30ff)
256 bytes of INFO memory (0x1000-0x10ff)
GDB Disconnected. Releasing MSP430 interface.


msp430-gdb:
Код
Remote communication error. Target disconnected. : No such file or directory.

При повторных попытках соединения сообщение меняется на
Код
Remote communication error. Target disconnected. : No error.


Что я делаю не так? Какой файл ему нужен?
federal
как gdbproxy запускаешь?
в первом выхлопе написано что делать.

например, так
msp430-gdbproxy --port=2000 --debug msp430 /dev/ttyUSB0
Sie
gdbproxy запускаю с ключом --keepalive для того,чтоб не закрывался при отключении gdb.

Все делаю именно по шагам с вывода gdbproxy. И спотыкаюсь на п.2 (Run the "target remote :2000" command in GDB.)
Цитата
например, так
msp430-gdbproxy --port=2000 --debug msp430 /dev/ttyUSB0

Там по умолчанию уже установлен 2000-й порт и подключение дебаггера по USB и он таки находит процессор, правильно его определяет и... тут же отключается.
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Invision Power Board © 2001-2025 Invision Power Services, Inc.