Skip to main content
Associate II
Sep 12, 2025 10:34 AM UTC
Solved

Optimize stm32cubeprogrammer folder size to use STM32_Programmer_CLI.exe line command only

Hello

I am in the industrialization phase of a product based on STM32G0B0RE.
In order to optimize the flashing process for my manufacturer I made a .bat file programming the product the MCU using the STM32_Programmer_CLI.exe commmand from STM32CubeProgrammer.

 

Since I am not using the GUI of STM32CubeProgrammer is there any folder I can delete in the root to optimize the size of the package I'll provide. The STM32CubeProgrammer size is 1,36 Go if I can reduce it to 500 or 600 mO it could be very usefull.

 

Best Regards

Thibaud 

 

This topic has been closed for replies.
Aziz BRIGUI
Aziz BRIGUIBest answer
ST Technical Moderator
Sep 16, 2025 1:58 PM UTC

Hello @Tiboww,

You can use the STM32CubeProgrammer package bundled in STM32CubeCLT in STM32CubeCLT | Software - STMicroelectronics, after installing, you can find the package in this directory: 

C:\ST\STM32CubeCLT\STM32CubeProgrammer

The package is around 130 MBytes and is CLI only.

Hope this helps,

Aziz

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.

2 replies

Aziz BRIGUI
Aziz BRIGUIBest answer
ST Technical Moderator
Sep 16, 2025 1:58 PM UTC

Hello @Tiboww,

You can use the STM32CubeProgrammer package bundled in STM32CubeCLT in STM32CubeCLT | Software - STMicroelectronics, after installing, you can find the package in this directory: 

C:\ST\STM32CubeCLT\STM32CubeProgrammer

The package is around 130 MBytes and is CLI only.

Hope this helps,

Aziz

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.
TibowwAuthor
Associate II
Sep 29, 2025 10:18 AM UTC

Hello

It is perfect thank you.

Thibaud