Skip to main content
GeneralTao
Associate II
Jun 25, 2020 1:27 PM UTC
Question

Jumping to random file after pressing Run button

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.

230 replies

ferro
Lead
Nov 6, 2024 2:27 PM UTC
unsigned_char_array
Lead III
Nov 6, 2024 2:56 PM UTC

@ferro wrote:

This helped with my reset not working, could help resolving your problem

https://community.st.com/t5/stm32cubeide-mcus/reset-configuration-quot-set-pc-xxxxxxx-quot-possible-to-use/m-p/732051

 


It now seems to consistently jump to the reset handler (though it's impossible to rule it out). However the problem is that it jumps there before flashing is finished and it also enables the continue button. If I click continue then the flashing crashes. So it only solves half the problem for me. I don't want the IDE to jump to any file and disable clicking on continue before flashing has finished and before it has started. If I set it to break in main I don't want the s file opened at all.

"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."
ferro
Lead
Nov 7, 2024 12:24 PM UTC

>> "I haven't seen the window"

You will with this option off:

[Debug Configurations > Common]

ferro_0-1730982232377.png

 

unsigned_char_array
Lead III
Nov 7, 2024 2:29 PM UTC
"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."
Lukasz Nowak
Associate III
Nov 27, 2024 1:51 PM UTC

The problem still exists in 1.17.0

As this case is incorrectly marked as solved, I opened a new one for 1.17.0:

https://community.st.com/t5/stm32cubeide-mcus/run-program-opens-a-random-file-after-a-debuggin-session/td-p/747848

I will keep doing it for every new release, until it is fixed, or I drop dead - whichever comes first.

AAlis.23
Associate III
Mar 8, 2025 12:48 PM UTC

Has the problem been solved? I’ve known about this issue for years, and I'm currently using version 1.18, yet the problem persists... it's incredible.

Ciuffoly
Senior
Mar 8, 2025 6:39 PM UTC

Yes, the same problem on 1.18

Associate
Mar 9, 2025 9:31 AM UTC

Try disable load symbols:

Main menu -> Run -> Run Configurations...

In left panel select default configuration then select page "Startup".

In group "Load Image and Symbols" unselect "Load symbols" at ELF file.

If both Run and Debug functions are required then the default configuration should be duplicated (there's option "Duplicate" above config name, this create new *.launch file).

AAlis.23
Associate III
Mar 9, 2025 2:44 PM UTC

Not working... If you do that, the only difference is that Eclipse still opens random files but without loading them, only showing a gray screen with:

AAlis23_0-1741531387858.png

Better than opening random files (since you can't accidentally change anything while writing), but it's not a solution.

 

Visitor II
Apr 2, 2025 12:21 PM UTC

Same problem on OSX:

Version: 1.18.0
Build: 24413_20250227_1633 (UTC)

I can resolve this issue by disabling Live Expression in the Debugger settings (Misc).

CubeIDE_Debugger.png

Graduate
Apr 28, 2025 11:43 AM UTC

It still opens some random files on Debug, even when no exceptions happens. Very annoying. 

padawan
Senior II
Apr 28, 2025 12:32 PM UTC

The annoying thing is that the thread has been displayed as ‘solved’ for 5 years.

But it's not solved.

They wanted to solve it ‘asap’. (asap> never)
Padawan

AAlis.23
Associate III
Apr 29, 2025 8:13 AM UTC

Yes, it's the worst bug in Eclipse and also "dangerous" because sometimes while you're editing, it randomly opens a file, puts the focus on it, and you end up editing it by mistake. Usually you notice it, but it has happened to me that I didn't, and then I got compile errors because I had typed something random in that file. They MUST fix it NOW!

Graduate
Apr 29, 2025 12:32 PM UTC

I guess its time to give JetBrains Clion IDE a shot. VS Code also has STM32 plugin now.

Gaston_78
Graduate II
Apr 30, 2025 9:24 AM UTC

We could open more Tickets around this topic. or send emails to support...
VScode us working but still it has any other kind of problems, so there's no any comfortable IDE platform for working with ST.. Everything around ST looks full of software bugs, ashame

AAlis.23
Associate III
Apr 30, 2025 9:43 AM UTC

Yes, just like when using the IDE or any other ST software product, it's easy to find a bug or a poor solution to a problem every few hours of use. Honestly, I sometimes can't understand how I spot things that are poorly done and no one has noticed or fixed them yet.

Gaston_78
Graduate II
Apr 30, 2025 10:00 AM UTC

I ve opened a new Ticket .. tight now.. please support it. Maybe with a new one without "solution" somebody start to do something.
https://community.st.com/t5/stm32cubeide-mcus/opens-random-tabs-during-run-programming-in-stm32cubeide/td-p/798139