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.

Linux/MSP-EXP430F5529LP: CCS 8.1 bricks MSP-FET during firmware update on Linux

Part Number: MSP-EXP430F5529LP
Other Parts Discussed in Thread: MSP-FET, MSP430FR5994

Tool/software: Linux

Hi all,

For a long time ago, every attempt to upgrade MSP-FET firmware under Linux bricks it.

I got the following error message:

"MSP430: Error initializing emulator: One of the connected MSP-FETs / eZ-FETs debuggers needs recovery. Select 'Recover' to start the recovery process.  Note: Only one MSP-FET / eZ-FET debugger can be connected to your system during recovery.
MSP430: Error: MSP-FET / eZ-FET recovery failed"

The only workaround is to find a Windows machine, and use if to recover the MSP-FET.

Could TI people fix this issue in a near future?

  • Hi Christian,

    Were you able to reproduce this with different MSP-FET also? Besides, when re-trying the same device do you always see the same error message?
    Could you specify which current firmware version you see on MSP-FET?
    I'll have our experts involved to check if this is a known issue they're currently working on and will come back to you as soon as possible with a fix or workaround to get you going.

    Best regards,
    Britta
  • Christian,

    did you also install the udev rules during installation of CCS? If not, this could be related to your issue.

    Thanks and best regards,
    Britta
  • Christian,

    did you test any of the above and did this solve your issue? Please let me know if not.

    as I didn't hear back from you in a while I assume that your issue has been solved.
    Please go ahead and verify the given answer to also help other users that might run into the same issue.

    Note that I'll go ahead and close this thread in the next couple of days if I don't hear back from you. Replying to the thread will re-open it if necessary at some point.

    Best regards,
    Britta
  • Hi Britta,

    Sorry for my late answer. I didn't check this topic recently.

    Please find here ly answers:

    - Every MSP FET I have are subject to this problem. I tried with MSP430FR5994 Launchpad

    the initial error is:

    ...

    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ ttyACM0 <- Selected
    * Initializing interface @ ttyACM0...done
    * Checking firmware compatibility:
    * The firmware of your FET is outdated.
    - Would you like to update it? (Y/N): Y

    *********************************************************
    *                                                        
    *  Initializing Update Bootloader.                       
    *  Programming new firmware:                             
    *  |||||||||||||||||||||||||||||||||||||||||||||||||| 100%* Update failed. (R)etry/(C)ancel?

    - When retrying, after the initial error, I see always this:

    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Corrupted USB FET firmware detected. Starting recovery.
    # Exit: 49
    # ERROR: MSP-FET / eZ-FET recovery failed

    and the MSP-FET is bricked. The only workaround I know is to perform the recovery and the upgrade on a windows computer.

    - Current version of MSP-FET is 31100001 before upgrade and should be 31200000 if the upgrade is successful.

    - udev rules are properly installed, and MSP-FET works flawlessly for programming and debugging tasks. The issue only affects MSP-FET firmware upgrading.

    Thank you for your help.

  • Hi Christian,

    I'm still following up on your issue, involving our experts on this topic.

    To further pin down what's causing the issue, could you fill me in on the Linux distro/ version you're using?
    Also, am I right that you're trying the recovery via CCS or did you try any other tool?

    Thanks again and let me further follow up internally.

    Best regards,
    Britta
  • Hi Britta,

    My distro is Gentoo, updated on a regular basis.

    I tried the recovery with CCS and MSPFlasher. Both are functionnal for programming operations (and debugging in case of CCS), but both are unable under Linux to recover or upgrade MSP-FET firmware.

    Best regards,

    Christian

  • Hi Christian,

    the issue is most likely due to the fact that Gentoo is not officially supported and thus we don't test on this platform.
    Officially we only support Ubunto Linux, and thus the udev rules are also targeted at it only.
    Unfortunately as we don't test our tools for Gentoo and don't support it officially, I won't be able to help you to troubleshoot what exactly causes the problem you see.

    Best regards,
    Britta
  • Hi Britta,

    I installed Ubuntu 18.04 LTS to verify if the issue is Gentoo specific.

    And it is not, the behaviour is exactly the same on both distros. Upgrading MSP-FET firmware under the officialy supported Ubuntu 18.04 LTS bricks it the same way as Gentoo.

    So, I think the issue exists on all Linux distros.

    Fortunately, I'm still able to recover the MSP-FET with a Windows computer.

    Best regards,

    Christian

  • Hi Christian,

    thanks for your feedback.

    I've taken this back to our experts to fix the reported problem. Unfortunately it might take a while to be debugged and implemented.

    I noticed that you'll be able to move on as you were able to recover the MSP-FET with a Windows PC.

    I'd suggest for me to close this thread and re-open it whenever there is an update from our side. Would that be finde for you?

    Thanks and best regards,

    Britta

  • Hi Britta,

    I found another computer, install Ubuntu and CCS on it, and on this particular PC, I am able to upgrade the MSP-FET firmware.

    So it seems that the problem appears only on some hardware.

    Sorry to have bothered you with this, I'll try to investigate to found the differences between the two computers, but we can consider the problem as solved, or at least non reproductible on some Ubuntu boxes.

    Thank you for your help.

    Best regards,

    Christian

**Attention** This is a public forum