cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32 program execution after pressing the RUN button in stm32Cube ide

SShak.2
Associate

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 ?

1 REPLY 1
mattias norlander
ST Employee

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