Lpmsp430fr6989 unknow MCU HEader

Whas is a version of your macOS? I’m also macOS user and it works for me:

pio run -d examples/wiring-blink/ -e lpmsp430g2553 -t upload

[Sat Dec  3 00:33:59 2016] Processing lpmsp430g2553 (platform: timsp430, build_flags: -D LED_BUILTIN=RED_LED, board: lpmsp430g2553, framework: energia)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
Collected 30 compatible libraries
Looking for dependencies...
Project does not have dependencies
Uploading .pioenvs/lpmsp430g2553/firmware.hex
MSPDebug version 0.20 - debugging tool for MSP430 MCUs
Copyright (C) 2009-2012 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.

Trying to open interface 1 on 006
Initializing FET...
FET protocol version is 30394216
Configured for Spy-Bi-Wire
Sending reset...
Set Vcc: 3000 mV
Device ID: 0x2553
Code start address: 0xc000
Code size         : 16384 byte = 16 kb
RAM  start address: 0x200
RAM  end   address: 0x3ff
RAM  size         : 512 byte = 0 kb
Device: MSP430G2553/G2403
Code memory starts at 0xc000
Number of breakpoints: 2
Chip ID data: 25 53
Erasing...
Programming...
Writing  842 bytes at c000...
Writing   32 bytes at ffe0...
Done, 874 bytes total
======================================================================================== [SUCCESS] Took 2.86 seconds ========================================================================================

================================================================================================= [SUMMARY] =================================================================================================
Environment uno          	[SKIP]
Environment nodemcu      	[SKIP]
Environment teensy31     	[SKIP]
Environment lpmsp430g2553	[SUCCESS]

I am on osx 10.12.2, its odd because it works fine with Energia

Could you try to replace tool-mspdebug with this version in ~/.platformio/packages?

Worked perfectly, I would love to know what you did. I been banging my head on this with no luck :slight_smile:

This is a result of macOS GateKeeper. I made workaround for it. See related issue for Arduino 1.6.5 fails Gatekeeper check on OS X · Issue #3468 · arduino/Arduino · GitHub

okay, awesome thanks a ton for your help.

Thank you too! Would be grateful if you try out Remote Development — PlatformIO latest documentation
We are going to make official release of PlatformIO Core 3.2 next week.

P.S: You need the latest version of PIO Core: Redirecting...

1 Like

I’m running V3.2.1 and trying to upload to lpmsp430fr4133 TIMSP430 board. The blink examples compiles fine but when I try and upload I get error

tilib: can't find libmsp430.so: libmsp430.so: cannot open shared object file: No such file or directory

libmsp430.so does not seem to be preset anywhere in ~/.platformio

full output:

Compiling .pioenvs/lpmsp430fr4133/src/src.ino.o
Linking .pioenvs/lpmsp430fr4133/firmware.elf
Checking program size
text	   data	    bss	    dec	    hex	filename
984	      0	     20	   1004	    3ec	.pioenvs/lpmsp430fr4133/firmware.elf
Uploading .pioenvs/lpmsp430fr4133/firmware.hex
MSPDebug version 0.20 - debugging tool for MSP430 MCUs
tilib: can't find libmsp430.so: libmsp430.so: cannot open shared object file: No such file or directory
Copyright (C) 2009-2012 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.

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