Skip to main content
SProb.2
Associate
May 10, 2023
Question

Verify failes after programing with STM32_Programmer_CLI due to controller start

  • May 10, 2023
  • 2 replies
  • 2378 views

I´m programming a STM32F103RCT6 via command line via:

STM32_Programmer_CLI.exe --connect port=SWD --erase all

STM32_Programmer_CLI.exe --connect port=SWD mode=UR reset=HWrst --download Output.hex --verify

While erasing and programming works flawlessly I´m facing the issue that the verify is failing. This is because after programming Output.hex the controller will start the programmed application.

This is an issue, because the application will write to flash memory at address starting at 0x08037800 on startup, making the succeeding verify process failing of course.

Is there a way to prevent STM32_Programmer_CLI from starting the controller after programming ?

This topic has been closed for replies.

2 replies

Senior III
May 11, 2023

I'm not sure but if you download hex file , you must pass address :

Example from manual, page 104:

-c port=COM4 -w RefSMI_MDK/All_Flash_0x1234_256K.bin 0x08008000 This command programs the binary file “All_Flash_0x1234_256K.bin�? at address​ 0x08008000

SProb.2
SProb.2Author
Associate
May 12, 2023

Hi Kamil, Sorry, I do not understand how this will help with my verify issue, because the example doesn´t use verify at all. Do you refer to a different post, maybe ? BTW: Hex files normally have a extended segment address record, so the additional start address parameter shouldn´t be needed.

Senior III
May 12, 2023

Yes, sorry. I'm confused yesterday. Try add -halt flag at the end.

Generally it's weird because I can't reproduce your issue on F7 related to "Verify"

Douglas MILLER
ST Employee
May 12, 2023

This forum thread was marked by the moderator as needing a little more investigation, so a Support case was created in your name and will be handled off-line.