Embedding STM32_Programmer_CLI.exe within my application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-03 02:00 AM - edited ‎2024-12-03 02:03 AM
I would like to create a Python GUI application based on PySide6. Within the application, I want to embed the funcionality to flash STM32 devices using STM32_Programmer_CLI.exe command line tool.
The STM32_Programmer_CLI.exe comes with an installation of STM32CubeProgrammer. The total size of the STM32CubeProgrammer is 609MB:
and I am sure not everything is required if I simply want to use STM32_Programmer_CLI.exe
I would like to get some advice on how can I reduce the size of the STM32CubeProgrammer for my particular purpose since it comes with a lot of unnecessary files such as STM32CubeProgrammer.exe itself that I do not need since I use STM32_Programmer_CLI.exe and other files... I only need to have STM32_Programmer_CLI.exe and other must to have dependencies to flash the MCU's via SWD. Perhaps there are other "lightweight" CLI tools or options that I should use for this particular case?
I am quite concerned since I may accidentally delete something that is actually required.
- Labels:
-
STM32CubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-06 02:24 AM
Still waiting for any feedback regarding this.
We have tried to use STM32_ST-LINK_Utility which is outdated. It works most of the times and it is quite lightweight (35MB) instead of 600MB...
The issue with this tool is that my particular STM32 device needs -UR mode (connection under reset) and I am getting the following error:
Modifying RDP
STM32 ST-LINK CLI v3.3.0.0
STM32 ST-LINK Command Line Interface
[UR]: Connect under Reset is available only on ST-LINK/V2!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-06 07:13 AM
Hi @LPetr.1
You could also try the open source STLink utilities found on GitHub.
The included tools:
- st-info - a programmer and chip information tool
- st-flash - a flash manipulation tool
- st-trace - a logging tool to record information on execution
- st-util - a GDB server (supported in Visual Studio Code / VSCodium via the Cortex-Debug plugin)
- stlink-lib - a communication library
- stlink-gui - a GUI-Interface [optional]
Open source STM32 MCU programming toolset (GitHub repo)
There is also a precompiled Windows port:
stlink-1.8.0-win32.zip (GitHub release for Windows)
AFAIK, these tools are not supported by STMicroelectronics, but they also works for me.