Jump to content
jbremnant

MSP430 USB FET (JTAG + SBW)

Recommended Posts

Gosh, it's been such a long time since I posted here...

 

Do any of you guys have experience with TI's msp430 jtag programmer?

 

https://estore.ti.com/MSP-FET430U64A-MSP430-64-Pin-Target-board-and-USB-Programmer-Pinout-A-P1643.aspx

http://focus.ti.com/docs/toolsw/folders/print/msp-fet430u64a.html

 

I wanted to try my hands at beefier msp430 mcu's and thought I needed a programmer that can cover range of products besides the ones with SBW. Let me know if this is worth getting?

Share this post


Link to post
Share on other sites

Hi guys

 

Has anyone managed to get fet430uif working on linux using mspdebug?

I am on Ubuntu 10.04.1 LTS, and I get the following error:

msp430-gcc -Os -Wall -mmcu=msp430x5438 -o ex.elf ex.o
mspdebug -d /dev/ttyUSB0 uif "prog ex.elf"
MSPDebug version 0.15 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2011 Daniel Beer 
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 20105000
fet: FET returned NAK
fet: init failed
Trying again...
Initializing FET...
FET protocol version is 20105000
fet: FET returned NAK
fet: init failed
make: *** [upload] Error 255

Share this post


Link to post
Share on other sites

http://www.linuxquestions.org/questions ... ost4211460

Connect to an eZ430-F2013 or a FET430UIF device. The device argument should be the filename of the appropriate tty device. The TI serial converter chips on these devices are supported by newer versions of the Linux kernel, and should appear as /dev/ttyXX when attached.

USB connection is not supported for this driver.

 

Probably not a USB but a tty

Share this post


Link to post
Share on other sites

Try using the named drivers for mspdebug, I had issues with it when i pointed it to the launchpads TTY device,but when i used just rf2500 (uif in your case) it worked with out issue. also try using the -U command

-U bus:device

Specify a particular USB device to connect to. Without this option, the first device of the appropriate type is opened.

 

http://mspdebug.sourceforge.net/manual.html

 

 

also any dmesg's or error in your sys logs may help point out what the issue is

Share this post


Link to post
Share on other sites

So mspdebug manual says the uif device is only supported via tty serial interface. -U won't do.

 

My dmesg tells me the following:

 

root@linux-desktop:/usr/lib# dmesg | grep TI
[3460489.105892] ti_usb_3410_5052_1 ttyUSB0: TI USB 3410 1 port adapter converter now disconnected from ttyUSB0
[3460489.123453] ti_usb_3410_5052 2-2:2.0: TI USB 3410 1 port adapter converter detected
[3460489.124292] usb 2-2: TI USB 3410 1 port adapter converter now attached to ttyUSB0

root@linux-desktop:/usr/lib# lsmod | grep usbs
usbserial              33019  1 ti_usb_3410_5052

root@linux-desktop:/usr/lib# lsusb | grep Tex
Bus 002 Device 015: ID 0451:f430 Texas Instruments, Inc. MSP-FET430UIF JTAG Tool

 

Looks ok as far as drivers are concerned.

 

I wonder if it has to do with the firmware on the FET430UIF...

 

Any ideas will be appreciated..

Share this post


Link to post
Share on other sites

drivers look good, nothing that i can see looks out of place.

list of things that I would try if you havent already.

 

can you access the uif-bsl? on that device

have you tried another usb cable and port?

 

are you able to test this on a windows box?

 

have you tried a different chip to program?

have you tried both SBW and jtag optioins?

have you tried the force-reset command?

 

it could be the firmware as a cause to your issue, but i couldnt find any posts or info on that

Share this post


Link to post
Share on other sites

Hey jsolarski, thanks for your response.

 

I haven't tried it on windows yet. Will do next.

I did try to toggle -j option for jtag vs sbw.

Also tried force-reset option. No luck.

 

I couldn't find much info online either.

I'll post my findings if I manage to get it working in linux.

Share this post


Link to post
Share on other sites

I also have EXACTLY the same issue:

the MSP-FET430UIF, gcc-msp430 version 20110612-1 and other commensurate .deb packages (installed on Ubuntu 11.04)

 

Here's what I get:

 

# mspdebug uif -d /dev/ttyUSB0

MSPDebug version 0.16 - debugging tool for MSP430 MCUs

Copyright © 2009-2011 Daniel Beer

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 20105000

fet: FET returned NAK

fet: init failed

Trying again...

Initializing FET...

FET protocol version is 20105000

fet: FET returned NAK

fet: init failed

----------------------------------

 

The only clue I can see is the following (from dmesg when I connect the MSP-FET430UIF):

 

[ 9383.452058] usb 3-2: new full speed USB device using uhci_hcd and address 3

[ 9383.684130] ti_usb_3410_5052 3-2:1.0: TI USB 3410 1 port adapter converter detected

[ 9383.684150] ti_usb_3410_5052: probe of 3-2:1.0 failed with error -5

[ 9383.687291] ti_usb_3410_5052 3-2:2.0: TI USB 3410 1 port adapter converter detected

[ 9383.687434] usb 3-2: TI USB 3410 1 port adapter converter now attached to ttyUSB0

 

----------------

 

Also, after running the mspdebug command, the "Mode" LED illuminates on the MSP-FET430UIF.

 

Any ideas?

Share this post


Link to post
Share on other sites

Here's what I got (exactly the same as before):

 

# mspdebug -j -d /dev/ttyUSB0 uif

MSPDebug version 0.16 - debugging tool for MSP430 MCUs

Copyright © 2009-2011 Daniel Beer

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 20105000

fet: FET returned NAK

fet: init failed

Trying again...

Initializing FET...

FET protocol version is 20105000

fet: FET returned NAK

fet: init failed

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×