cancel
Showing results for 
Search instead for 
Did you mean: 

Light weight CubeProgrammer CLI

LPetr.1
Senior

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.

6 REPLIES 6
Amine_Jridi
ST Employee

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.

 

 


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MM..1
Chief III

And for your info ST utility support UR in GUI and in CLI too.

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. 

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

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

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!