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.

Error using Command Line Programmer

Other Parts Discussed in Thread: MSP430F5437, MSP430F5510

Hi,

I'm trying to debug an error using version 1.3.1 of the command line programmer. Here's the output I get when attempting to program:

* -----/|-------------------------------------------------------------------- *
* / |__ *
* /_ / MSP430 Flasher v1.3.1 *
* | / *
* -----|/-------------------------------------------------------------------- *
* Evaluating triggers...done
* Checking for available FET debuggers:
* Found USB FET @ ttyACM0. <- Selected
* Initializing interface @ ttyACM0...done
* Checking firmware compatibility:
* FET firmware is up to date.
* Reading FW version...done
* Reading HW version...done
* Setting VCC to 3300 mV...done
* Accessing device...done
* Reading device information...done
* Loading file into device...
* ERROR : File end error
* Unable to load file.
*
* ----------------------------------------------------------------------------
* Arguments : -n MSP430F5437 -w /home/boardtest/Desktop/test_fixture/Firmware/560A22=V01.07.00.txt -v -g -z[VCC=3300]
* Warning: Some default options were used due to incomplete argument list.
* ----------------------------------------------------------------------------
0,0,0,0,0,0,0,-1,0
* ERROR : File end error
# Exit: 11
# ERROR: File end error
* ----------------------------------------------------------------------------
* ERROR on close: No error
* ----------------------------------------------------------------------------
*/
Error: write failed: [Errno 5] Input/output error

Anyone have any idea what these errors mean? So far I haven't been able to find any documentation on these error reports.

Thanks.

  • Hi Robert,

    Can you show us what command you used to call the MSP430Flasher? This seems like it had trouble reading your file. It also looks like maybe your filename is a little weird - it looks like it says :"560A22=V01.07.00.txt " I'm wondering if that '=' character could be what is causing this to break.

    Would it be possible to change the file name and see if this helps? If not, please post back showing the command you used to call the flasher, and your code file if it is something you can share.

    Regards,
    Katie
  • Hi Katie,Robert:

    Did you manged to solve your problem? I'm having similar issue when programming BSL.

    I'm using following command:

    C:\ti\MSP430Flasher_1.3.1>MSP430Flasher -n MSP430F5510 -w C:\ti\MSP430Flasher_1.3.1\output.txt -v -z [VCC] (i USB) (-e ERASE_ALL)
    * -----/|-------------------------------------------------------------------- *
    * / |__ *
    * /_ / MSP430 Flasher v1.3.1 *
    * | / *
    * -----|/-------------------------------------------------------------------- *
    * Evaluating triggers...done
    * Checking for available FET debuggers:
    * Found USB FET @ COM4. <- Selected
    * Initializing interface @ COM4...done
    * Checking firmware compatibility:
    * FET firmware is up to date.
    * Reading FW version...done
    * Reading HW version...done
    * Setting VCC to 3000 mV...done
    * Accessing device...done
    * Reading device information...done
    * Loading file into device...
    * ERROR : File input/output error
    * Unable to load file.
    *
    * ----------------------------------------------------------------------------
    * Arguments : -n MSP430F5510 -w C:\ti\MSP430Flasher_1.3.1\output.txt -v -z [VCC] (i USB) (-e ERASE_ALL)
    * Warning: Some default options were used due to incomplete argument list.
    * ----------------------------------------------------------------------------
    0,0,0,0,0,0,0,-1,0
    * ERROR : File input/output error
    # Exit: 11
    # ERROR: File input/output error
    * ----------------------------------------------------------------------------
    * ERROR on close: No error
    * ----------------------------------------------------------------------------
    */

    C:\ti\MSP430Flasher_1.3.1>


    Thanks is advance.
    Andrew
  • Hi Andrew,

    I never heard more from Robert so I don't know if my post helped him out or not.

    It looks like you are calling flasher with these options:
    -n MSP430F5510 -w C:\ti\MSP430Flasher_1.3.1\output.txt -v -z [VCC] (i USB) (-e ERASE_ALL)
    This would mean you are trying to write the file output.txt located in C:\ti\MSP430Flasher_1.3.1 into the F5510 device. Do you have a file named output.txt at that location? The error message you are getting sounds like maybe it is not finding that file or cannot access it.

    You also might want to try downloading and trying the latest version of MSP430Flasher here: www.ti.com/.../msp430-flasher It looks like we are all the way up to 1.3.9 now so there have been a lot of fixes and improvements since 1.3.1.

    Regards,
    Katie
  • Katie,

    Since I was programming BSL I forgot to unlock it for writing by adding "-b" argument.
    Correct command should be:
    C:\ti\MSP430Flasher_1.3.1>MSP430Flasher.exe -n MSP430F5510 -b -w "C:\ti\MSP430Flasher_1.3.1\output.txt" -v -z [VCC] (i USB) (-e ERASE_ALL)

    Thank you for prompt reply!

    Andrew

**Attention** This is a public forum