[Tinyos-help] Debugging the TMote Sky with GDB and JTAG (using USB
FET)
Markus Becker
mab at comnets.uni-bremen.de
Mon May 14 05:38:22 PDT 2007
Hi Matt, hi list,
first thanks for the good howto on debugging the tmote sky with GDB and
JTAG. It helped me a lot.
In the last few days I found out how to use the USB version of the FET
with gdb. Prerequisite for this is a recent kernel (>=2.6.20) because of
an update in the ti kernel module.
In step 1 of your howto I used libHIL.so, libMSP430.so and msp430-gdbproxy
from http://www.soft-switch.org/downloads/mspgcc/test/
(in test directory the USB FETs are supported).
Additionally an udev rule is needed, because the configuration needs to be
selected by it, e.g. in /etc/udev/rules.d/026_ti on one line:
SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{product}=="MSP-FET430UIF JTAG
Tool", SYSFS{bNumConfigurations}=="2
", SYSFS{bConfigurationValue}=="1", RUN+="/bin/sh -c 'echo 2 >
/sys%p/device/bConfigurationValue'"
When attaching the USB FET check dmesg, it should contain:
usb 3-1: new full speed USB device using uhci_hcd and address 25
usb 3-1: configuration #1 chosen from 2 choices
ti_usb_3410_5052 3-1:1.0: TI USB 3410 1 port adapter converter detected
ti_usb_3410_5052: probe of 3-1:1.0 failed with error -5
usb 3-1: device_add(3-1:1.0) --> -5
ti_usb_3410_5052 3-1:2.0: TI USB 3410 1 port adapter converter detected
usb 3-1: TI USB 3410 1 port adapter converter now attached to ttyUSB0
Finally,
./msp430-gdbproxy --debug --port=3333 msp430 /dev/ttyUSB0 works.
Additionally, I figured out that the compilation of the msp430-gdb does
not work with gcc-4.x, so I configured it with CC=gcc-3.4 ./configure ...
Hope this helps someone else,
Markus
------------------------------------------------
| Dipl.-Ing. Markus Becker
| Communication Networks
| Mobile Research Center
| TZI - Center for Computing Technologies
| University Bremen
| Germany
------------------------------------------------
| web: http://www.comnets.uni-bremen.de/~mab/
| mailto: mab at comnets.uni-bremen.de
| telephone: +49 421 218 2287
| building: NW1 room: N2260
------------------------------------------------
More information about the Tinyos-help
mailing list