2024-12-06 02:44 AM - last edited on 2024-12-09 02:04 AM by Aziz BRIGUI
Can we expect to get lightweight option of the STM32CubeProgrammer for CLI applications (STM32_Programmer_CLI.exe) that does not require using STM32CubeProgrammer.
The whole STM32CubeProgrammer package is over 600MB and contains variety of unnecessary files whereas the good old STM32-ST-Link Utility is only about 35MB and can perform majority of the operation.
This is important for custom applications that internally embed ST tools to program ST32 devices. Just because I need to use UR (under reset) mode for my particular target device, I must use STM32CubeProgrammer as the STM32-ST-LINK utility does not support that. And that is quite annoying because my application now must be 600MB larger than it should be.
It would be nice to get stripped down version of the STM32CubeProgrammer.
2024-12-13 07:43 AM
Hello @LPetr.1,
In this case I recommend using the STM32CubeCLT which includes all the CLIs and dependencies and can serve as a lightweight version of the Programmer_CLI.
Also refer to the 'Additional License Terms' document under the 'doc' directory, which contains all the licenses used.
Best Regards,
Amine.
2024-12-13 09:45 AM
And for your info ST utility support UR in GUI and in CLI too.
2024-12-15 11:29 PM - edited 2024-12-15 11:31 PM
That is obviously not acceptable as the STM32CubeCLT is even larger (over 2GB) than the STM32CubeProgrammer as it contains STM32CubeProgrammer + additional things.
What I was asking is a stripped down version of STM32CubeProgrammer and you have suggested me to use an even bigger tool.
2024-12-15 11:29 PM
I get the following error when trying to use UR:
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!
This only happens in ST utility and does not happen in STM32CubeProgrammer
2024-12-16 03:07 AM
Show your cmd line i use daily
ST-LINK Utility\st-link_cli" -c SWD UR -p ...
and stripped size CLT is part of IDE in folder ... c:\ST\STM32CubeIDE_xxx\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.0.202105311346 around 47M
2024-12-16 04:23 AM
I have already shown the snippet of the error with the UR mode with the ST-Link utility in my earlier response. If you want to see what command arguments I use:
C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility>ST-LINK_CLI.exe -c SN=004D003B3532510E31333430 UR
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!
I use:
https://www.st.com/en/development-tools/stlink-v3set.html
Regarding the stripped down version of STM32CubeProgrammer that is located at:
.. c:\ST\STM32CubeIDE_xxx\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.0.202105311346 around 47M
This might be exactly what I was looking for!