STM32L4 The firmware does not start automatically after being programmed if ST-LINK_CLI.exe is used, unless...
I use ST-Link/V2 with ST-LINK_CLI.exe to program my firmware into a STM32L452.
The command I use is: ST-LINK_CLI.exe -P Myfile.hex -V -Rst
Programming works fine, no error. But at the end I’m expecting my firmware to start running automatically and as soon as ST-LINK_CLI finishes its job, especially because of the -Rst parameter (I’ve also tried with -HardRst and I got the same result).
Pin BOOT0 of my STM32L452 is always tied low through a pulldown resistor.
The only way to get my firmware running is by doing a power-off reset of my board. Strangely if I re-program the same board (after the power-up reset), then it will start running automatically after ST-LINK_CLI.exe finishes its job (no need to do any more power-up reset).
The pattern is repeatable, meaning if I program a board for its very first time, I must do a power-up reset for my firmware to start running. The same board, if re-programmed, will then automatically start running as soon as ST-LINK_CLI finishes.
Why and what can I do to make any board programmed for its very first time to start running automatically after ST-LINK_CLI finishes?
Thanks in advance for your help.
Ben
