This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Energia can't upload to MSP-EXP430FR5969

Other Parts Discussed in Thread: MSP-EXP430FR5969, ENERGIA

I'm trying to use Energia (latest version) to program the MSP-EXP430FR5969 LaunchPad.

Energia wanted to update the firmware which I let it but after several tries, it still report that it couldn't connect to the board. The error message is below:

tilib: MSP430_OpenDevice: Unknown device (error = 5)

tilib: device initialization failed

By the way, Code Composer Studio can program this board just fine.

Any suggestion on how to move forward?

Thanks.

  • Hi Tuan Bui99,

    Could you try to see if you have the latest version of Energia? http://energia.nu/download/

    Regards,

    Katie

  • Yes. I'm using Energia version 101E0013 which is the latest version from Energia.nu

    Regards,

    Tuan

  • Hi Tuan,

    I tested this and found that Energia is working with old Rev. E silicon but not the official release silicon Rev. F that came on your Launchpad. This indicates that the latest version of Energia is still using an old version of MSP430.DLL, which is why it's not recognizing this newer silicon revision device. I will report this issue to be fixed. 

    In the meantime to get you up and running:

    1. In your Energia install go to: energia-0101E0013\hardware\tools\msp430\debug. Rename the file MSP430.dll to MSP430_old.dll or something, just to preserve your original version of the file before we do the rest.

    2. Download the DLL Developer's Package: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/DLLv2/latest/index_FDS.html

    3. When you unzip that package you'll find MSP430.dll in the top directory. Copy this file into the same Energia install folder we mentioned above: energia-0101E0013\hardware\tools\msp430\debug

    Now try updating again and loading your code again, and it should work. Basically you're dropping in the latest version of the DLL that should support your silicon.

    Regards,

    Katie

    NOTE: latest MSP430.dll removed support for older revs (D, E) of FR5969. So if you have any of those devices they won't work after you do this and you'd have switch back to using the old DLL to program them. However, it is best to replace any of those parts with the final production revision F silicon anyway though, as that has all the latest bug fixes.

  • Hi Katie,

    Thanks for your help. This did solve my initial problem. Energia now can upload and run my code.

    However, there a discrepancy that I think TI will need to solve:

    I have several TI Launchpads as well as several TI tools to use with these Launchpads (CCSv6, iAR, Energia), each of these tools have their own copy of MSP430.dll. And they aren't the same version.

    Tool MSP430.dll Version
    Energia (new dll) 3.4.2.7
    Energia (original dll) 3.3.1.4
    Code Composer Studio 6 3.4.1.0
    IAR 3.4.2.7

    The problem is that everytime I  switch back to using CCSv6 with the board, only tested with MSP-EXP430FR5696 so far, CCSv6 would want to update the firmware to match the version it has. Then when I go back to using Energia, we have the same issue with Energia wanting to change the firmware again.

    So, is it safe to copy the latest version of MSP430.dll over the version that came with each of those tools? Or will other MSP430 based launchpads will start breaking? I have a MSP-EXP430G2553 as well.

    Thanks,

    Tuan

  • Hi Tuan,

    For CCSv6, you probably need to update CCS. Looking here: http://processors.wiki.ti.com/index.php/MSP_Debug_Stack#Releases You can see which versions of CCS and IAR should have a particular tools version. The latest CCS update should include MSP430 DLL 3.4.2.7.

    For Energia, this is more of an open-source community supported effort so it takes a bit longer to get updated. Nevertheless, I will try to notify someone to try to get this updated because the version Energia currently uses is fairly out-dated.

    Tuan Bui99 said:
    So, is it safe to copy the latest version of MSP430.dll over the version that came with each of those tools?

    Typically no - it may work ok but is untested if you do it this way. The best way is simply to update your IDE (CCS/IAR) to whatever is the latest version, because that is what has been tested and should work correctly with the IDE. I think your CCSv6, you simply need to have it check for updates to get the latest DLL version - my CCS install has 3.4.2.7 after it found an update for the MSP430 emulators.

    Regards,

    Katie

**Attention** This is a public forum