Skip to main content
SShak.2
Visitor II
October 24, 2022
Question

Stm32 program execution after pressing the RUN button in stm32Cube ide

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 ?

This topic has been closed for replies.

1 reply

mattias norlander
ST Technical Moderator
November 15, 2022

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.