2022-10-24 05:04 AM
Hello everyone
I am using stm32f103ze with jlink plus debug probe and stm32CubeIde
1.When I generate the necessary code for my controller and press the RUN button in STM32CubeIde , the program is loaded to flash but does not start running(for example led does not start blinking)
But when I power down the controller and power on again the program starts executing(led starts blinking)
2. When after programming the program does not start executing , and I press the program button again, The program starts executing
My Question is why is this behavior when the behavior should be identical each time I press the RUN button
Is it necessary to power down the controller.can we not get the program executing just after flashing it ?
2022-11-15 03:02 AM
Hi,
Which version of CubeIDE? Are you on Windows?
There used to be a bug in the CDT framework for Windows builds only which we fixed in CubeIDE 1.9.0 if I remember well?
The bug was related to terminating debug sessions. A race condition occurred and you could end up with having the MCU or debugger in a bad state. This _could_ be the cause.
Kind regards, Mattias