реклама на сайте
подробности

 
 
> Проблема с msp430-gdbproxy и msp430-gdb, Не хотят работать вместе (
Sie
сообщение Nov 22 2013, 06:41
Сообщение #1





Группа: Новичок
Сообщений: 2
Регистрация: 15-02-13
Из: Краснодар
Пользователь №: 75 634



Доброго всем времени суток!
Проблема в следующем: при соединении 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.


Что я делаю не так? Какой файл ему нужен?
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов (1 - 2)
federal
сообщение Nov 24 2013, 19:27
Сообщение #2


Участник
*

Группа: Участник
Сообщений: 74
Регистрация: 12-01-13
Из: Нижний Новгород
Пользователь №: 75 160



как gdbproxy запускаешь?
в первом выхлопе написано что делать.

например, так
msp430-gdbproxy --port=2000 --debug msp430 /dev/ttyUSB0
Go to the top of the page
 
+Quote Post
Sie
сообщение Nov 25 2013, 06:15
Сообщение #3





Группа: Новичок
Сообщений: 2
Регистрация: 15-02-13
Из: Краснодар
Пользователь №: 75 634



gdbproxy запускаю с ключом --keepalive для того,чтоб не закрывался при отключении gdb.

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

Там по умолчанию уже установлен 2000-й порт и подключение дебаггера по USB и он таки находит процессор, правильно его определяет и... тут же отключается.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 10th July 2025 - 20:40
Рейтинг@Mail.ru


Страница сгенерированна за 0.01367 секунд с 7
ELECTRONIX ©2004-2016