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.
I'm currently using the MSP430 USB Python scripts to program my customer's device over the USB port.
it says that the GUI is open source and can be changed with Visual C++ Express. Where do I find the source code to start with?
Thanks
Hi Brian,
If you downloaded the Python_Firmware_Upgrader_5_10_00_17.zip file to update BSL then you will need Python installed on your system. There is a 'release_notes_example_Python_firmware_upgrader.html' file included in the directory that will tell you what is required to run the GUI from the command line or if you are on Windows you can click on the .exe file.
If you downloaded the MSP430_USB_Firmware_Upgrade_Example_Setup.exe file (we no longer support this tool) then you can use Visual Studio to update the code if required. Else you can click on the exe file to bring up the GUI.
The GUI code is included for both tools in their respective directories.
Regards,
Arthi
Hi Brian,
Can you post the link where it says that the Python Firmware Upgrader tool can be edited using visual Studio C++ Express? The folder with the Python Firmware Upgrader tool does not have a .vcproj since it was not created or updated in Visual Studio. Command line debugging was used to update and debug code.
Anyway, the GUI application code is in TargetGUI.py and it refers to .py files in python-msp430-tools/msp430/bsl5. I am not sure what the fx.h refers to.
Regards,
Arthi
Hi Brian,
The link you pointed me to is incorrect and will be updated. Thanks for posting the link!
Currently the MSP430USBDEVPAK only supports Python_Firmware_Upgrader tool as we no longer support or package the MSP430_USB_Firmware_Upgrade_Example_Setup.exe tool. The link was referring to the MSP430_USB_Firmware_Upgrade_Example tool which was built using C source code using Visual Studio. If you want to use Visual Studio for debugging and coding then you should download and use the MSP430_USB_Firmware_Upgrade_Example_Setup.exe file from the site that Jace referred you to.
The testgui.vcproj that you are running is part of the hidapi folder that is 3rd-party open source software. We use the Java APIs in the hidapi folder to build our HidDemo tool. The HidDemo tool does not download BSL and it is used by the host to talk to a HID device.
As far as using Visual Studio to debug and update Python code, it can be done I suppose since visual studio provides Python tools but this is not part of the MSP430USBDevelopersPackage.
Regards,
Arthi
Hi Brian,
The Python GUI can be brought up in one of two ways: double click on the Python_Firmware_UpgraderGUI.exe file if you have a Windows machine or via the command line by typing the following command in the Python_Firmware_Upgrarder folder:
set PYTHONPATH=.\python-msp430-tools& python TargetGUI.py
Before you type that command in though you need to install some packages if you don't have them. Please look through the document labeled 'release_Notes_Example_Python_Firmware_Upgrader.html' that is included in the Python_Firmware_Upgrader folder for software dependencies. This file also lists the commands you can run to bring up the GUI to download BSL or to download BSL via the command line.
There are Python IDEs that you can probably use for debugging and code developement. Or you can use command line to compile and run the GUI. Once you insert the code you want and some print statements in the .py files, you can run the command I listed above to compile, run and debug your code.
Regards,
Arthi
**Attention** This is a public forum