Skip to main content
Associate III
January 9, 2026
Solved

STM32_Programmer_CLI.exe doesn't give result about the process.

  • January 9, 2026
  • 1 reply
  • 229 views

carleslsregner_0-1767967136516.png

My goal is to use the STM32_Programmer_CLI.exe  from an application, but, for the moment, I just write down command lines in the Command Prompt (cmd.exe).

However, the commands of writting the flash ( -w yourbinfile.bin )and erasing it completely (-e all) does not return any kinf of results. I just delivers a "STM32CubeProgrammer v2.21.0" response. Why?

carleslsregner_1-1767967597947.png

 

 

 

 

 

 

Best answer by Aziz BRIGUI

Hi @carleslsregner

You have to connect to the MCU first, if you're using ST-Link try:

STM32_Programmer_CLI -c port=SWD -w YourBinary.bin 0x08000000

Aziz 

1 reply

Aziz BRIGUI
Aziz BRIGUIBest answer
Technical Moderator
January 9, 2026

Hi @carleslsregner

You have to connect to the MCU first, if you're using ST-Link try:

STM32_Programmer_CLI -c port=SWD -w YourBinary.bin 0x08000000

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.
Associate III
January 12, 2026

That's correct:

writting is impossible without connection and verification is impossible without writting.