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-30 1:26 PM - edited 2025-05-30 1:29 PM
"Is it safe to conclude there is a bug in setting the breakpoint automatically at main?"
Hm, not sure what it is.Uninvetable Side-effect?
Debug server needs MCU core to set up parameters user asks from it. Some of requested action from the server must happen even before flashing user SW. And DebugServer therefore calls startup.s. This is my theory confirmed by CubeIDE behaviour when try-error changing its settings.
And it seems that we know how to stop that startup.s to open. Maybe unfortunate default CubeIDE settings. Not sure.
[Edit] Seems I was too fast, does not work according to @AAlis.23 . Back to square one.
2025-05-30 1:35 PM - edited 2025-05-30 1:43 PM
Hm, but I set BP at HAL_Init ()
"Sorry, but no, close but not quite."
Yes, and i take break from this. Some combo of Debug config settings?. Hm.
2025-05-30 1:51 PM
I know you'll make it in the end!!! I'll vote for them to make you ST's CTO haha
2025-06-02 5:28 AM
2025-06-02 5:51 AM
Interesting that terminate also opens a file. Clearly synchronization doesn't happen properly here. The IDE receives incorrect breakpoint information after stopping. Bug or undocumented feature? In my opinion a bug. Stopping debug session means no more breakpoints in my opinion.
2025-06-02 6:55 AM - edited 2025-06-02 7:04 AM
"Interesting that terminate also opens a file."
"The IDE receives incorrect breakpoint information after stopping."
Yes. I tried to find where is list of BP stored and/or how its passed to GDB but no luck.
Thanks @padawan . Much better than describing in words isn't it?
"That we are talking about."
I am not sure you can use 'we' any longer. I wonder if anyone else experiences what you do.
I would like to be more precise in our lingo. We should stop calling startup.s 'a random file'. It is not.
Q1: Is this your work project ? are you working on it for a long time ? Maybe some files got corrupted and IDE is confused.
Q2: is this happening in a plain project created from scratch ?
I would suggest to create a separate thread for this craziness with opening files when you press stop, its a rather messy here. What do you think guys?
2025-06-02 6:58 AM
ST are dumping Cube IDE and moving to VS so Cube is not going to get any fixes now anyway.
2025-06-02 7:06 AM
Hi @PHolt.1
Did you want to point to a specific msg from that thread ? Because I see this when I click the link
2025-06-02 7:48 AM
Go the the end. The problem is that this forum truncates long URLs...
2025-06-02 7:51 AM