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.

MSP430F5529: python-msp430-tools BSL Error

Part Number: MSP430F5529


Please can someone assist with an error 71 using the python msp430.bsl5.hid tool.

We observe the error while trying to update the firmware of a MSP430F5529 after invoking the BSL in software - ((void(*)())0x1000)();. The error only occurs in Linux command line and only if the BSL is invoked by software. We are able to flash the device successfully if we invoke the BSL with hardware (pulling up the PUR pin on power-up) using command line in Linux. We are also able to flash the device using the Python_Firmware_UpgraderGUI in Windows for both a software or a hardware invocation of the BSL.      

See erroring command line below:-

root@CMGOLF-DEMO:/home/clubmaster/Python_Firmware_Upgrader# sudo PYTHONPATH=./python-msp430-tools/ python -m msp430.bsl5.hid_1 -e -v -P ./ClubMasterV4_8.txt

Debug is False

Verbosity level set to 2

Python version: 2.7.9 (default, Aug 31 2019, 09:52:12)

[GCC 4.9.2]

action list:

   mass_erase()

   program_file()

   reset()

Download full BSL...

An error occurred:

[Errno 71] Protocol error

Cleaning up after error...

  • Hi Warren

    What's the hardware connection looks like? You run the Linux on PC or other processor?

    Where you get the software msp430.bsl5.hid ? I can' t find it  in TI.COM. I just find it in github . Do you also get it here?

    Have you meet all requirements in the readme file

    Requirements
    ------------
    - Linux, BSD, Un*x or Windows PC

    - Python 2.6 or newer

    - USB support requires:

    - "pywinusb" library on Windows
    - "rawhid" kernel driver on Linux
    - other platforms are currently not supported

    - pySerial (2.4 or newer recommended)

    - MSP430 F5x / F6x with UART BSL connected to a serial port or a USB capable
    device connected to USB.

    Best regards

    Gary

  • Dear Gary - thank you very much for your response.

    In answer to your queries:-

    1. The hardware connection is via USB to a PC
    2. The application PC is running Linux - we have tried the Python_Firmware_UpgraderGUI tool on a Windows machine and this works consistently.
    3. We obtained the link to the msp430.bsl5.hid software from MSP430 USB Developers package - www.ti.com/.../MSP430USBDEVPACK
    4.  We have met all the minimum requirements - as stated in my original post, the flash update process works on the Linux machine when we invoke the BSL through hardware 
  • Hi Warren

    Could you try this commend

    python -m msp430.bsl5.uart -eErw ClubMasterV4_8.txt

    Best regards

    Gary

**Attention** This is a public forum