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.
Hi,
Did anyone tried to port the MSP430 USB Firmware Upgrade Example 3.1 to Python3?
I got the following:
Opening HID device HID device (vID=0x2047, pID=0x0200, v=0x0109); Unknown manufacturer; @input.inf,%hid_device_vendor_defined_range%;HID-compliant vendor-defined device, Path: \\?\hid#vid_2047&pid_0200#8&69096a7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Mass erase...
Download full BSL...
Programming...
Programming: OK
Waiting for BSL...
closing HID device
Closed!...
Opening HID device HID device (vID=0x2047, pID=0x0200, v=0x0109); Unknown manufacturer; @input.inf,%hid_device_vendor_defined_range%;HID-compliant vendor-defined device, Path: \\?\hid#vid_2047&pid_0200#8&69096a7&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "TargetGUI.py", line 290, in selectFile
self.doLoad(file)
File "TargetGUI.py", line 193, in doLoad
self.open_connection()
File "TargetGUI.py", line 272, in open_connection
bsl_version = self.bsl5Target.BSL_VERSION()
File "C:\Users\Itay-Home\AppData\Roaming\Python\Python37\site-packages\msp430\bsl5\bsl5.py", line 115, in BSL_VERSION
answer = self.bsl(BSL_VERSION,''.encode(), expect=4)
File "C:\Users\Itay-Home\AppData\Roaming\Python\Python37\site-packages\msp430\bsl5\hid_1.py", line 70, in bsl
self.write_report(txdata)
File "C:\Users\Itay-Home\AppData\Roaming\Python\Python37\site-packages\msp430\bsl5\hid_1.py", line 145, in write_report
self.hid_device.send_output_report([ctypes.c_ubyte(x) for x in data])
File "C:\Users\Itay-Home\AppData\Roaming\Python\Python37\site-packages\pywinusb\hid\core.py", line 559, in send_output_report
raise HIDError("Write timed out")
pywinusb.hid.helpers.HIDError: Write timed out
Any ideas?
Thanks,
Itay
It seems that you haven't find the MSP430 USB BSL interface.
My advice is that:
1. Use BSL scripter to make sure the hardware setup and process is right.
2. You can also check from device manager to see whether the MSP430 USB BSL is found.
I think the easiest way is to use python to call the BSL scripter directly,
Hi,
Thanks for your reply.
The strange thing is while the board is connected (in BSL mode), when running the execution file (Python_Firmware_UpgraderGUI.exe) it works great but when using TargetGUI.py with Python 3 I get the above error.
So I'm not sure that the MSP is not in BSL mode.
Is there an example of using the BSL scripter?
Thanks,
Itay
Here is the software:http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPBSL_Scripter/latest/index_FDS.html
Here is the UG of BSL scripter:https://www.ti.com/lit/ug/slau655g/slau655g.pdf
**Attention** This is a public forum