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.
Tool/software: Code Composer Studio
HI!
I am trying to get the MSP430 USB Firmware Updater python software to work on my Mac. I can scan and connect to my MSP430 in BSL mode, but when I flash I get this error:
opening HID device <hid.device object at 0x105453330> Mass erase... Exception in Tkinter callback Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1536, in __call__ return self.func(*args) File "TargetGUI.py", line 280, in selectFile self.doLoad(file) File "TargetGUI.py", line 187, in doLoad self.open_connection() File "TargetGUI.py", line 220, in open_connection self.bsl5Target.BSL_RX_PASSWORD('\xff'*30 + '\0'*2) File "/Users/thibaulthelle/Downloads/Python_Firmware_Upgrader/python-msp430-tools/msp430/bsl5/bsl5.py", line 99, in BSL_RX_PASSWORD answer = self.bsl(BSL_RX_PASSWORD, password, expect=0) File "/Users/thibaulthelle/Downloads/Python_Firmware_Upgrader/python-msp430-tools/msp430/bsl5/hid_1.py", line 66, in bsl self.write_report(txdata) File "/Users/thibaulthelle/Downloads/Python_Firmware_Upgrader/python-msp430-tools/msp430/bsl5/hid_1.py", line 178, in write_report return self.hid_device.write(data) File "hid.pyx", line 82, in hid.device.write (hid.c:1789) ValueError: not open
Thanks in advance!
Kind regards,
Ramtin
Hello Ramtin,
Did you follow the installation steps (shown below) that were found in the ReadMe HTML file from the download package? also did you run the program in sudo/root?
To install the packages required for the tool to run on Mac: Python(2.7.9+) Cython-0.22 In command window, navigate to Cython directory and run the following command: python setup.py install Cython-hidapi In command window, navigate to Cython hidapi directory and run the following commands: python setup-mac.py build sudo python setup-mac.py install To run this from Linux or Mac, sudo or root is required as it needs to write to a raw HID device. Example invocations: Windows (After installing Python and pwinusb) All examples are in a command window from the MSP430_USB_Firmware_Upgrader directory GUI set PYTHONPATH=.\python-msp430-tools& python TargetGUI.py Command Line set PYTHONPATH=.\python-msp430-tools& python -m msp430.bsl5.hid_1 -e -v -P ./5529_LED_Blink.txt Linux and Mac All examples are in an xterm window from the MSP430_USB_Firmware_Upgrader directory GUI sudo PYTHONPATH=./python-msp430-tools python TargetGUI.py Command Line sudo PYTHONPATH=./python-msp430-tools python -m msp430.bsl5.hid_1 -e -v -P ./5529_LED_Blink.txt
Hello Former Member.
Yes I have followed the installation instructions and I run it with sudo but it still does not work.
Regards,
Ramtin
Hello Ramtin,
When you get the error you listed above, are you trying to download the Blink LED example packaged with the tool or are you trying to flash your own custom TXT file? What version of MAC OS are you on?
Regards,
Arthi Bhat
**Attention** This is a public forum