5
\$\begingroup\$

I am trying to program the MSP430 (on an MSP-EXP430F5438 evaluation board) under Linux using gcc-msp430 (I eventually will do code larger than the 16k that the free version of the Code Composer allows).

As a debugger, it is recommended to use mspdebug, but when I try to use it, it doesn't connect to the FET430UIF.

~$ sudo mspdebug uif
MSPDebug version 0.19 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer <[email protected]>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

TI3410 device is in boot config, setting active
Initializing FET...
FET protocol version is 20408002
Configured for Spy-Bi-Wire
ti3410: usb_bulk_read: No error
warning: fet: set VCC failed
ti3410: can't send data: No such device
fet: command C_IDENT1 failed
fet: identify failed
Trying again...
Initializing FET...
ti3410: can't send data: No such device
fet: open failed
ti3410: warning: TI_CLOSE_PORT failed: No such device

The same device works correctly with Code Composer running on a Windows virtual machine or on a physical Windows system, so I know it is working.

I tried on Ubuntu 12.04 and on Arch Linux and got the same errors.

As recommended in an answer, I tried with -d and got further, but didn't work:

~$ sudo mspdebug uif -d /dev/ttyUSB0
[sudo] password for renan: 
MSPDebug version 0.19 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 Daniel Beer <[email protected]>
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Trying to open UIF on /dev/ttyUSB0...
Initializing FET...
FET protocol version is 20408002
Configured for Spy-Bi-Wire
Set Vcc: 3000 mV
Device ID: 0x0580
Device: MSP430F5438A
Code memory starts at 0x5c00
Number of breakpoints: 8

uif: read error: Connection timed out
fet: warning: message C_IDENT3 failed
uif: read error: Connection timed out
fet: message C_IDENT2 failed
fet: identify failed
Trying again...
Initializing FET...
uif: read error: Connection timed out
fet: open failed

What is wrong?

\$\endgroup\$
1
  • \$\begingroup\$ I think this is the most suitable SE for this question, but I'm not sure, feel free to migrate it anywhere else if suitable. \$\endgroup\$
    – Renan
    Commented Oct 10, 2012 at 14:14

1 Answer 1

1
\$\begingroup\$

This mail thread suggests that you need to specify the -d option like this:

$ sudo mspdebug uif -d /dev/ttyUSB0

They state that this is necessary for FET firmware 2.04.09.001 but not necessary for 2.04.05.003.

Your firmware is version 2.04.08.002. So this issue may affect you or it may not.

\$\endgroup\$
4
  • \$\begingroup\$ It gets slightly farther, but still doesn't work. I added the output to my question \$\endgroup\$
    – Renan
    Commented Oct 10, 2012 at 17:46
  • 1
    \$\begingroup\$ @Renan Are you connecting through JTAG? If so you need the -j option as well. Otherwise try upgrading to the latest release of mspdebug. There are some changes to MSP430.DLL (a.k.a tilib) but I'm not sure what version they were rolled into. \$\endgroup\$ Commented Oct 11, 2012 at 14:02
  • \$\begingroup\$ I tried with -j, and did not work too. Will try upgrading \$\endgroup\$
    – Renan
    Commented Oct 11, 2012 at 16:07
  • \$\begingroup\$ Well, eventually it started working. (Don't know why). Marking this as the answer, since I needed -d and -j parameters. \$\endgroup\$
    – Renan
    Commented Oct 29, 2012 at 2:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.