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.

MSP430Flasher under linux works once only after system restart

Other Parts Discussed in Thread: MSP430-FLASHER, MSPDS

Hello! I'm using the MSP430Flasher under debian 8 OS with MSP-FET430UIF debugger.

The commands are:

~/MSP430Flasher_1.3.7/MSP430Flasher -m SBW2 -n MSP430F20x3 -s -v -e ERASE_MAIN -w "CXA25.txt" -z [RESET, VCC]

~/MSP430Flasher_1.3.7/MSP430Flasher -m SBW2 -n MSP430F20x3 -s -r [read-info.txt,INFO]

They work only once afer system and debugger restart. After the command completed, the debugger switches on the "Mode" red LED permanently, and

all subsequent MSP430Flasher launces lead to communication error #19:

* -----/|---------------------------------------------------------- *
*     / |__                                                                   *
*    /_   /   MSP430 Flasher v1.3.7                          *
*      | /                                                                       *
* -----|/---------------------------------------------------------- *
*
* Evaluating triggers...done
* Checking for available FET debuggers:
* Found USB FET @ ttyACM2 <- Selected
* Initializing interface @ ttyACM2...
# Exit: 19
# ERROR: Interface Communication error
*
* ----------------------------------------------------------------------------
* Driver      : closed (No error)
* ----------------------------------------------------------------------------
*/
USB cable reconnect has no effect. (Only restart system and reconnect)

Moreover, the same commands under windows 7 virtual mashine work correctly!

How to fix the problem?

Thank you.

  • Hello Gkt Ktg!

    MSP430-FLASHER officially supports the following operating systems:

    Windows 7 32/64 bit
    Windows 8 32/64 bit
    Windows XP 32/64 bit
    Ubuntu 12.04 32 bit
    OS X 10.9 (Mavericks) 64-bit

    Since Debian 8 has not been tested by TI, the way it handles the commands could be causing the MSP-FET430UIF to crash and not recover until the system is restarted. I am currently looping in a MSP-430FLASHER expert to further comment on this issue.

    Regards,
    Ryan
  • Gkt Ktg,

    Our MSP-430FLASHER expert will be trying to reproduce your issue as soon as he has time available, meanwhile he has some further questions to help pin down the problem:

    What does the console output from the initial MSP Flasher run look like?
    Is the target code programmed correctly?
    Does removing 'RESET' from the exit specs resolve the problem?

    Regards,
    Ryan
  • Hello Ryan!

    Ubuntu is based on Debian. So they are very similar. The difference may be in architecture (I'm using 64-bit).

    You are right, removing RESET flag resolves the problem for flash writing. Moreover, if the programmer once hanged up, the next two calls without 'RESET' restore it's working (I think the first call restores it, and the second one works normally).

    But the read procedure hangs it up forever.

    ~/MSP430Flasher_1.3.7/MSP430Flasher -m SBW2 -n MSP430F20x3 -s -r [read-info.txt,INFO]

    Thank You for reply.

  • Hello Gkt Ktg,

    The MSP-430FLASHER expert mentioned before tried to reproduce the issue on all available Linux machines but without any success. A new version of MSP Flasher (v1.3.8) is going to be released early next week which specifically adds support for Ubuntu 12.04 64 bit. Please try using this new version and see if the issue still occurs.

    Regards,
    Ryan
  • Ryan Brown1 said:
    A new version of MSP Flasher (v1.3.8) is going to be released early next week

    Will there also be a new source code release of the MSP Debug Stack? The README of the latest MSPFlasher says:

    -Updated Flasher packages with MSP Debug Stack v3.7.0.12

    but the latest MSP Debug Stack which can be downloaded as source is some ancient 3.05.01.01.

    This version does not include MSP430_SetTargetArchitecture() for example so linking of this new MSPFlasher against a self-compiled MSPDS fails...

  • Tom,

    MSPDS v3.7.0.12 is already online, the website incorrectly list the current version as being 3.05.01.01 but if you click on the "Get Software" button you will see that the newest version available is v3.7. Direct link: software-dl.ti.com/.../index_FDS.html

    Regards,
    Ryan
  • Ryan Brown1 said:
    MSPDS v3.7.0.12 is already online, the website incorrectly list the current version as being 3.05.01.01

    Might be true for Windows but not for the Linux version ;-)

  • Ah, in that case the updated open source package is currently planned to be released by the end of April.

    Regards,
    Ryan

**Attention** This is a public forum