cancel
Showing results for 
Search instead for 
Did you mean: 

Blank check with STM32_Programmer_CLI.exe

UW
Associate

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?

 

1 ACCEPTED SOLUTION

Accepted Solutions
UW
Associate

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

View solution in original post

2 REPLIES 2
Aziz BRIGUI
ST Employee

Hello @UW,

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
Associate

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