This post brings you a way to debug eZ430-F2013 Development tool (Texas Instrument) from Ubuntu Linux 10.10 using MSPDebug tool. This tool provides source level debugging capability. Basically tt supports MSP430 MCUs with JTAG and Spy Bi-Wire interface. It also supports simulation mode, which allows MSP430 code to be debugged without hardware. Another worth noted feature is reverse engineering support.
The below shown is the eZ430-F2013 Development tool is a MSP430 MCU with built-in USB based emulator/debugger. This debugger can be detached from the target once the product is ready.
Just plugin the device in USB Port. The below commands and outputs shows how this USB Emulator/debugger detected in Linux.
$ lsusb………Bus 006 Device 006: ID 0451:f430 Texas Instruments, Inc. MSP-FET430UIF JTAG Tool
$ dmesg……….[ 8703.704590] usb 6-1: new full speed USB device using uhci_hcd and address 6[ 8703.933252] ti_usb_3410_5052 6-1:1.0: TI USB 3410 1 port adapter converter detected[ 8703.933286] ti_usb_3410_5052: probe of 6-1:1.0 failed with error -5[ 8703.938573] ti_usb_3410_5052 6-1:2.0: TI USB 3410 1 port adapter converter detected[ 8703.938757] usb 6-1: TI USB 3410 1 port adapter converter now attached to ttyUSB0
$ lsmod | grep ti_usbti_usb_3410_5052 23451 0usbserial 33100 1 ti_usb_3410_5052
So the device node can be noted down as /dev/ttyUSB0 from the above message.
Software installation and usage
Now it is time to install MSPDebug tool. Visit http://mspdebug.sourceforge.net/download.html to download the source code file in .tar.gz format.
Here is my console session to explain how I extracted, compiled and installed in Ubuntu Linux 10.10.
$ tar zxvf mspdebug-0.11.tar.g
$ cd mspdebug-0.11
$ make clean
$ make WITHOUT_READLINE=1$ sudo make install
$ mspdebug -d /dev/ttyUSB0 uifTrying to open UIF on /dev/ttyUSB0…Initializing FET…FET protocol version is 10002000Configured for Spy-Bi-WireSending initial reset…Set Vcc: 3000 mVDevice: MSP430F20x3Code memory starts at 0xf800Number of breakpoints: 2Available commands:= dis hexout opt reset stepbreak erase isearch prog run symcgraph gdb md read setdelbreak help mw regs setbreakAvailable options:color gdb_loop quietType “help <topic>” for more information.Press Ctrl+D to quit.(mspdebug)