Lpmsp430fr6989 unknow MCU HEader

What is your OS? Linux?

Yup Ubuntu 16.04 64bit. Sorry, should have mentioned this!

I’ve just released v1.3.1 of MSP430 dev.platform. Please run pio update.

Wow, that was fast!

Ok, we have progress, now get the following error but I think this is due to not having the msp430 dev board connected since I’m at home.

Converting src.ino
Collected 29 compatible libraries
Looking for dependencies...
Project does not have dependencies
Compiling .pioenvs/lpmsp430fr4133/src/src.ino.o
Uploading .pioenvs/lpmsp430fr4133/firmware.hex
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.

MSP430_GetNumberOfUsbIfs
No unused FET found.

Does this look ok to you? I’ll test with the dev board when I’m back in the office. Looking promising, thanks so much for your fast responce :thumbsup:

I tested with my MSP430 2553. I don’t have board like your. I hope that it works for you too.

Thank you, that supported us via PIO Plus :thumbsup:

1 Like

Just tested on the actual device (MSP430 FR4133 dev board), and I think the issue described above has been fixed. I now get a message that the board requires a firmware update:

pio run -t upload
[Thu Dec 22 12:15:15 2016] Processing lpmsp430fr4133 (platform: timsp430, board: lpmsp430fr4133, framework: energia)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Converting src.ino
Collected 29 compatible libraries
Looking for dependencies...
Project does not have dependencies
Compiling .pioenvs/lpmsp430fr4133/src/src.ino.o
Uploading .pioenvs/lpmsp430fr4133/firmware.hex
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.

MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: ttyACM0
MSP430_Initialize: ttyACM0
FET firmware update is required.
Re-run with --allow-fw-update to perform a firmware update.
tilib: device initialization failed
*** [upload] Error 255
========================== [ERROR] Took 1.94 seconds ==========================

As the message says I have tried re-running with pio run -t upload --allow-fw-update however, as a suspected --allow-fw-update is not a Platformio command but rather a MSP debug command. I will try and install MSPdebug manually and perform and update…tbc


*Update

I think I almost manage to update the FW by running:

~/.platformio/packages/tool-mspdebug/mspdebug tilib --allow-fw-update

It looked promising until the error 74 :-/

MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.

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...
    75 percent done
    84 percent done
    84 percent done
    91 percent done
   100 percent done
tilib: MSP430_FET_FwUpdate: MSP-FET / eZ-FET core(communication layer) update failed (error = 74)
tilib: device initialization failed

If I try and run update again I get error:

tilib: MSP430_FET_FwUpdate: MSP-FET / eZ-FET recovery failed (error = 73)
tilib: device initialization failed

Could you try to build the latest version of MSPDebug from its repository?
If it works, I’ll rebuild all packages. Thanks!

Am still running into this issue in OS X 10.10

Could you provide upload output?

I am still running into this issue on ubuntu 17.04. If i do update the firmware on the FET it bricks the FET. The only way to rescue the FET is to take it to CCS on a windows machine and allow CCS to ‘rescue’ the device.

Here is the upload output…

platformio run --target upload
Checking program size
text       data     bss     dec     hex filename
244           0       2     246      f6 .pioenvs/LaunchPad_msp430f5529/firmware.elf
Building .pioenvs/LaunchPad_msp430f5529/firmware.hex
Uploading .pioenvs/LaunchPad_msp430f5529/firmware.hex
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.
 

MSP430_GetNumberOfUsbIfs
MSP430_GetNameOfUsbIf
Found FET: ttyACM0
MSP430_Initialize: ttyACM0
FET firmware update is required.
Re-run with --allow-fw-update to perform a firmware update.
tilib: device initialization failed
*** [upload] Error 255
========================================================================================================== [ERROR] Took 0.94 seconds =========================================================
=================================================

I also just tried to upload onto an msp430 launchpad, same processor just not using the stand alone FET. Exact same result, PIO barked at me about fw version of the FET. Tried to upload new fw to the FET annnnnd now its bricked.

Terminal output of the firmware update…

warren@warren-XPS-15-9560:~/Scratch Space/platformio-examples-develop/timsp430/native-blink$ ~/.platformio/packages/tool-mspdebug/mspdebug tilib --allow-fw-update
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.

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...
    75 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    84 percent done
    91 percent done
   100 percent done
tilib: MSP430_FET_FwUpdate: MSP-FET / eZ-FET core(communication layer) update failed (error = 74)
tilib: device initialization failed
warren@warren-XPS-15-9560:~/Scratch Space/platformio-examples-develop/timsp430/native-blink$ ~/.platformio/packages/tool-mspdebug/mspdebug tilib --allow-fw-update
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.

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

Okay working on this some more this morning. I pulled down the latest build of mspdebug as posted in the forum. I would really like to install it in the PIO environment so i can use it integrated with the IDE as advertised. However, PIO is denying make permission to install the executable in the pio directory. Here is some terminal output:

warren@warren-XPS-15-9560:~/Repositories/mspdebug/mspdebug$ make install
mkdir -p ./platformio/packages/tool-mspdebug/bin/
./platformio/packages/tool-mspdebug -m 0755 mspdebug ./platformio/packages/tool-mspdebug/bin/
make: execvp: ./platformio/packages/tool-mspdebug: Permission denied
Makefile:124: recipe for target 'install' failed
make: *** [install] Error 127
warren@warren-XPS-15-9560:~/Repositories/mspdebug/mspdebug$ sudo make install
mkdir -p ./platformio/packages/tool-mspdebug/bin/
./platformio/packages/tool-mspdebug -m 0755 mspdebug ./platformio/packages/tool-mspdebug/bin/
make: execvp: ./platformio/packages/tool-mspdebug: Permission denied
Makefile:124: recipe for target 'install' failed
make: *** [install] Error 127
warren@warren-XPS-15-9560:~/Repositories/mspdebug/mspdebug$ 

I am not a super expert on make so I may not have configured this properly. Anyone got any ideas on how to get this to work?

That is not a problem with PIO. I think that is a problem with system permission. Try to remove ./platformio/packages/tool-mspdebug folder

Should i remove only the tool-msp430 debug folder? i removed it and tried the make install again and still got permissions error.

  1. Please remove ./platformio/packages/tool-mspdebug
  2. Build mspdebug in separate fodler
  3. Run platformio run --target upload
  4. Replace new files in ./platformio/packages/tool-mspdebug

Okay, cloned the repo and build the executable. removed mspdebug and copied the new mspdebug into the .platformio/packages/tool-mspdebug

ran upload… here is the output. Looks like the .so file is not what mspdebug is expecting.,

platformio run --target upload
MSPDebug version 0.22 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2013 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.

tilib: can’t find libmsp430.so: libmsp430.so: wrong ELF class: ELFCLASS32

  1. Please remove ./platformio/packages/tool-mspdebug
  2. Build mspdebug in separate fodler
  3. Run platformio run --target upload
  4. Replace mspdebug_bin in ./platformio/packages/tool-mspdebug with compiled file. Please keep the same name mspdebug_bin.

The entire MSP430 development platform is obsolete?!

What about these dev-kits:

So are you saying we should not expect TI MSP430 support in PIO?

Please file a feature request here Issues · platformio/platform-titiva · GitHub

Please file an issue here Issues · platformio/platform-timsp430 · GitHub