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.

206 REPLIES 206

Hi

I usually have the “nucleo” boards from STM here. But it makes no difference whether I have updated the programmer an it or not.
Fun fact: with a new project, the first debugging process runs through without a file opening. The second time it runs into the bug. I have also removed the breakpoint in “Main”. And did not set any other breakpoints. Nevertheless, the IDE does what it wants.

padawan

So if you set a BP at main, your debugger never get there ?


@padawan wrote:

Fun fact: with a new project, the first debugging process runs through without a file opening. The second time it runs into the bug. 


Something has to be cached somewhere. If we can find out where then perhaps clearing this cache would fix the problem.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Ok

@unsigned_char_array: It looks like you're on to something there.

I played around:

If i open the IDE the first time and Run -> Debug: no randomfile!

If i close Debug and hit Run -> Debug again:  randomfile!

I close the IDE and open it and Run -> Debug: no randomfile!

If i close Debug and hit Run ->Debug again:  randomfile!

If i close Debug and hit Run ->Debug again:  randomfile!

so there is something in the water....

padawan

 

i found my post/sulution

ferro_0-1748432435495.png

 

padawan
Senior II

This points to the an other adress.

We are talking about the .s file in your screenshot on the right.

my setting 

padawan_0-1748433661194.png

and it jumps.....

padawan

 

I think guys here are having problem with beginning of a debug session. What you are describing is pausing debug already running.

No i end the debugseesion  by hittung the red square.

padawan_0-1748437065301.png

If i edit a file, compile and hit debug again (F11)

 

padawan_2-1748437167849.png

it jumps

padawan

 

This solution only prevents non-existent source files from being opened. The s-file or some other files do open frequently.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

Hello unsigned_char_array

yes i know. 

this was/should be a reply for ferro, to show him, that his solution have nothing,

to do with the bug, we are talking about over 5 years. 

padawan