Skip to main content
Associate
October 16, 2024
Solved

Blank check with STM32_Programmer_CLI.exe

  • October 16, 2024
  • 2 replies
  • 741 views

I make a blankcheck of a device with this command:

STM32_Programmer_CLI.exe" "-c port=swd UR -blankcheck"

This command returns ERRORLEVEL == 0 if the device is blank, but also if the devices is programmed.

How can I, from the command line, find out if a device is programmed or not?

 

Best answer by UW_it

Hi Aziz,

thanks for Your answer, although it is not satisfying my need.

I had to modify my software so that it scans the output of the blank check command.

 

Regards, Urs

2 replies

Aziz BRIGUI
Technical Moderator
October 22, 2024

Hello @UW_it,

The ERRORLEVEL is set only when the command returns an error. You can test on the output string to check if the flash is empty or not. For now, blank check returns only a warning when flash is not empty. 

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.
UW_itAuthorBest answer
Associate
October 28, 2024

Hi Aziz,

thanks for Your answer, although it is not satisfying my need.

I had to modify my software so that it scans the output of the blank check command.

 

Regards, Urs