Skip to main content
LPetr.1
Senior
December 6, 2024
Question

Light weight CubeProgrammer CLI

  • December 6, 2024
  • 2 replies
  • 1648 views

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.

2 replies

Amine_Jridi
Technical Moderator
December 13, 2024

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.
LPetr.1
LPetr.1Author
Senior
December 16, 2024

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. 

Amine_Jridi
Technical Moderator
December 26, 2024

STM32CubeCLT contains multiple CLI of ST tools, so in your case keep only the Programmer folder. This will give you a CLI version around 120MB without unnecessary files.

 

 

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
December 13, 2024

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

LPetr.1
LPetr.1Author
Senior
December 16, 2024

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

MM..1
Chief III
December 16, 2024

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