Closed crosser closed 6 years ago
I got one of those boards too, so I'll follow this closely.
@larsbrinkhoff please update if you make your board work. Plus additional information for context: https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/646982
On Sat, Dec 02, 2017 at 01:26:31PM +0000, Eugene Crosser wrote:
Sorry to use this place for support request, please point to a better place if there is any.
I got this new MSP430FR2433 Launchpad that TI is now selling for promo price, and initially tried to communicate with it over mspdebug 0.22 with tilib driver (libmsp430 from slac460w). It pretended to work, saying successful erase and write but did nothing. Then I realized that there are newer versions of mspdebug and built it from the master. Now I got two problems:
- First I did not realize that there is a new
ezfet
driver and triedtilib
as before. It wanted to update FET firmware, I ran with--allow-fw-update
, it saidMSPDebug version 0.25 - debugging tool for MSP430 MCUs Copyright (C) 2009-2017 Daniel Beer <dlbeer@gmail.com> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
Using new (SLAC460L+) API MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: HID_FET MSP430_Initialize: HID_FET FET firmware update is required. Starting firmware update (this may take some time)... tilib: MSP430_FET_FwUpdate: MSP-FET / eZ-FET recovery failed (error = 73) tilib: device initialization failed
and now it changed USB ID to 2047:0203 and ezfet driver does not recognize it. Did I brick the FET? Is there any chance to revive it?
Hi Eugene,
You need to contact TI for help with the library.
The "ezfet" driver is very experimental -- I wouldn't recommend using it.
Cheers, Daniel
-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B
Thanks for the reply, @dlbeer !
Would it be possible/feasible to try to prevent reflashing with "wrong" firmware?
On Sun, Dec 03, 2017 at 06:59:11AM +0000, Eugene Crosser wrote:
Thanks for the reply, @dlbeer !
- So is it true that tilib driver should work with eZ-FET probe?
The tilib driver should work with libmsp430.so. Whether libmsp430.so works with the eZ-FET is up to TI, but I would expect so.
- I would like to note that mspdebug 0.22 did not insist on updating the firmware, and pretended to work (but did not), while 0.25 did not want to work without reflashing the firmware. In both cases the same libmsp430.so was used.
Version L of libmsp430.so has a different ABI from previous versions on 64-bit systems. mspdebug 0.22 was released before version L of the library, and expects the original ABI, which leads to data transferred between mspdebug and the library becoming corrupted. Versions 0.24 onwards support both ABIs.
Would it be possible/feasible to try to prevent reflashing with "wrong" firmware?
You'd have to ask TI that -- the library doesn't provide much control over firmware flashing.
Cheers, Daniel
-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B
OK, thank you @dlbeer ! Now I have some basic information for my conversation with TI :) I am closing this ticket.
@crosser I see you managed to update the firmware. Does mspdebug work now?
Thanks!
I just ran into the same issue, bought a MSP430FR2433 board to evaluate MSP430… and generally "have a play". I had used them years ago, but the big turn-off for me was the requirement of the proprietary gdbproxy
. Hence I never used them for my own personal projects.
When I saw mspdebug
, I thought, brilliant, either TI have shared some data to make this happen, or people have figured it out enough to make it work. I bought the MSP-EXP430FR2433 to give it a shot. I hit the same issue.
Now… I don't have libmsp430.so
on my machine, so tilib
doesn't work. I'm really not in favour of requiring proprietary blobs, it was this reason I've avoided MSP430 for the last 10 years even though there's some nice chips in this family and it's where I began my embedded software work.
So, the queries:
ezfet
support in mspdebug
? I understand it's experimental, how can we as a user group, help make it better?ezfet
?ezfet
that might work better with mspdebug
?On Fri, Dec 07, 2018 at 11:50:27PM -0800, Stuart Longland wrote:
Now… I don't have
libmsp430.so
on my machine, sotilib
doesn't work. I'm really not in favour of requiring proprietary blobs, it was this reason I've avoided MSP430 for the last 10 years even though there's some nice chips in this family and it's where I began my embedded software work.
There's no proprietary blob -- the source for libmsp430.so is available under a BSD-like licence. TI name the source packages following the pattern slac460*.zip. The last release I looked at was slac460y.zip:
https://dlbeer.co.nz/articles/slac460y/index.html
Cheers, Daniel
-- Daniel Beer dlbeer@gmail.com http://dlbeer.co.nz/ PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B
Ahh bingo… didn't realise that TI published the source for that. I tried that release and your patch, and it pretty much just worked:
RC=255 stuartl@rikishi /tmp/slac460y $ mspdebug tilib --allow-fw-update
MSPDebug version 0.25 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2017 Daniel Beer <dlbeer@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Chip info database from MSP430.dll v3.13.0.601 Copyright (C) 2013 TI, Inc.
Using new (SLAC460L+) API
MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: ttyACM0
MSP430_Initialize: ttyACM0
FET firmware update is required.
Starting firmware update (this may take some time)...
Initializing bootloader...
Programming new firmware...
16 percent done
…
100 percent done
Initializing bootloader...
Programming new firmware...
13 percent done
…
100 percent done
Update complete
Done, finishing...
MSP430_VCC: 3000 mV
MSP430_OpenDevice
MSP430_GetFoundDevice
Device: MSP430FR2433 (id = 0x01c6)
3 breakpoints available
MSP430_EEM_Init
Chip ID data:
ver_id: 8240
ver_sub_id: 0000
revision: 10
fab: 55
self: 5555
config: 10
fuses: 55
Device: MSP430FR2433 [FRAM]
Available commands:
! fill power setwatch_r
= gdb prog setwatch_w
alias help read simio
blow_jtag_fuse hexout regs step
break isearch reset sym
cgraph load run verify
delbreak load_raw save_raw verify_raw
dis md set
erase mw setbreak
exit opt setwatch
Available options:
color gdb_loop
enable_bsl_access gdbc_xfer_size
enable_fuse_blow iradix
enable_locked_flash_access lowercase_dis
fet_block_size quiet
gdb_default_port
Type "help <topic>" for more information.
Use the "opt" command ("help opt") to set options.
Press Ctrl+D to quit.
(mspdebug)
I should look and see if that can be packaged up and installed as a system package alongside mspdebug
.
Sorry to use this place for support request, please point to a better place if there is any.
I got this new MSP430FR2433 Launchpad that TI is now selling for promo price, and initially tried to communicate with it over mspdebug 0.22 with tilib driver (libmsp430 from slac460w). It pretended to work, saying successful erase and write but did nothing. Then I realized that there are newer versions of mspdebug and built it from the master. Now I got two problems:
ezfet
driver and triedtilib
as before. It wanted to update FET firmware, I ran with--allow-fw-update
, it saidUsing new (SLAC460L+) API MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: HID_FET MSP430_Initialize: HID_FET FET firmware update is required. Starting firmware update (this may take some time)... tilib: MSP430_FET_FwUpdate: MSP-FET / eZ-FET recovery failed (error = 73) tilib: device initialization failed
$ ./mspdebug ezfet MSPDebug version 0.25 - debugging tool for MSP430 MCUs Copyright (C) 2009-2017 Daniel Beer dlbeer@gmail.com This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Chip info database from MSP430.dll v3.3.1.4 Copyright (C) 2013 TI, Inc.
Reset communications... Version: 2.10.0.3, HW: 0xaaacaaac Reset firmware... hal_proto_execute: HAL exception: 0xffff hal_proto_execute: fid: 0x51