cancel
Showing results for 
Search instead for 
Did you mean: 

Jumping to random file after pressing Run button

GeneralTao
Associate II

Hello. When I press to Run (Run main.c) button, STM32CubeIDE opens random file, possibly, from current repository, for example: startup_stm32l452xx.s, core_cm4.h etc...

Code is loading successful, but this side effect bothers me.

I would like to disable this function. How can I do it?

If you need more information about this behavior please, ask.

Thank you for reading.

214 REPLIES 214

Cube IDE is about 7 years old !!

It's the birthday of this bug-threat ;)

padawan

Haha, thanks!


I wanted to post exactly that, but I guess it wouldn’t be considered PC.
We should organize a team-building meetup.

Haha, thanks!


I wanted to post exactly that, but I guess it wouldn’t be considered PC.
We should organize a team-building meetup. 'Coalition Of the Willing'

>>"That's right; it is not a random file. It is the file whose code was executing when the program starts or when you hit a breakpoint, etc."

Thanks for stating that.

And the 'random' file that opens when terminating the debug session is actually the file containing the code currently being executed by the CPU, as reported to GDB at the moment 'Stop' is pressed. A similar behavior occurs when you press 'Pause' or 'Suspend' - a 'random' file opens then as well.