2020-06-25 6:27 AM
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.
2025-05-28 2:03 AM
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
2025-05-28 2:38 AM
So if you set a BP at main, your debugger never get there ?
2025-05-28 3:26 AM
@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.
2025-05-28 4:30 AM
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
2025-05-28 4:41 AM
i found my post/sulution
2025-05-28 5:01 AM
This points to the an other adress.
We are talking about the .s file in your screenshot on the right.
my setting
and it jumps.....
padawan
2025-05-28 5:46 AM
I think guys here are having problem with beginning of a debug session. What you are describing is pausing debug already running.
2025-05-28 6:01 AM
No i end the debugseesion by hittung the red square.
If i edit a file, compile and hit debug again (F11)
it jumps
padawan
2025-05-28 6:02 AM
This solution only prevents non-existent source files from being opened. The s-file or some other files do open frequently.
2025-05-28 6:07 AM
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