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: Error running TargetGUI.py Python firmware upgrade from Windows

Part Number: MSP430F5529

Dear Ti,

I have changed my idea of using visual studio project to Python based tools, after coming across the post 

MSP430F5529: USB firmware update using TI visual studio project - MSP low-power microcontroller forum...

e2e.ti.com
Part Number: MSP430F5529 I am trying to develop a windows program that provides field firmware updating capabilities. I understand that TI provides an example code

I am running Windows-7 64bit with Python 3.7.1 installed. 

I have downloaded Python_Firmware_Upgrader-5_20_06_02.zip I have changed to directory Python_Firmware_Upgrader and run the below command, ended with the following error

E:\GVK\Project\MSP\USB_Development_Tools_MSP\Python_Firmware_Upgrader-5_20_06_02
\Python_Firmware_Upgrader>set PYTHONPATH=.\python-msp430-tools& python TargetGUI
.py
File "TargetGUI.py", line 125
self.logger.addHandler(self.myHandler)
^
TabError: inconsistent use of tabs and spaces in indentation

I am new to Python, please give your inputs.

Thanks & Regards,

Vamshi G.

  • Hi Vamshi G,

    a quick search on your issue showed that Python expects indentation in the first line to be identical to the following lines.I assume that you mixed using tabs and spaces for indentation. Please try to go back in your editor and try to convert the tabs to spaces or vice versa.

    Best regards,
    Britta
  • Hi Vamshi G,

    as I didn't hear back from you I assume that your question has been answered. Please verify the given solution so that others can benefit from it as well. Please know that I'll be closing this thread in case I don't hear back from you.
    If you have a different question, please select "Ask a related question" or " Ask a new question".
    Thanks a lot!

    Best regards,
    Britta

**Attention** This is a public forum