Skip to main content
chriskuku
Senior II
November 9, 2022
Question

STM32CubeIDE program flow, Arrow->

  • November 9, 2022
  • 3 replies
  • 1551 views

I understand, that, when the arrow symbol appears in front of a source line, that means, that the program flow has stopped at that point.

But tin fact he case is, that the program is running. Only when I click pause, the arrow jumps to the "while(1)" statement and reflects the actual point where the program is running around.

I's confusing that the -> is sticking in the wrong place right after start.

This topic has been closed for replies.

3 replies

Bob S
Super User
November 9, 2022

Perhaps the arrow there is left from when the debugger started. Since that is the first line inside main(), that may have been where the debugger "stopped" after running the "C" startup code and before you hit "run". Bottom line, when the CPU is running, ignore the source code display.

Piranha
Principal III
November 11, 2022

Normal IDEs do not show the arrow while the code is running and it is intuitive. In my opinion it is a CubeIDE bug.

chriskuku
chriskukuAuthor
Senior II
November 11, 2022

@Piranha​ The effect is intermittent. At the moment it's working as expected (Arrow disappears). Will watch it further. Could the problem also lie in the debug probe that's being used?

Piranha
Principal III
November 12, 2022

> The effect is intermittent.

That's even worse and rises the suspicion of it being a bug.