Skip to main content
GeneralTao
Associate II
June 25, 2020
Question

Jumping to random file after pressing Run button

  • June 25, 2020
  • 105 replies
  • 56096 views

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.

105 replies

ferro
Lead
November 6, 2024
Lead II
November 6, 2024

@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
November 6, 2024

>> "it jumps there before flashing is finished and it also enables the continue button"
So CubeIDE (can) randomly interrupt the flashing process ?

>> "If I click continue then the flashing crashes."
Why would you want to run the program when it is not fully flashed yet. I miss some part of the picture.

>>"I don't want the IDE to jump to any file"
There are few places in IDE where you set 'jump to function'. Maybe these should be empty.

>>"and disable clicking on continue before flashing has finished."
Dont understand this part.

Lead II
November 7, 2024
"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
November 27, 2024

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
March 8, 2025

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
March 8, 2025

Yes, the same problem on 1.18

Associate
March 9, 2025

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
March 9, 2025

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
April 2, 2025

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
April 28, 2025

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

padawan
Senior
April 28, 2025

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
April 29, 2025

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
April 29, 2025

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

Gaston_78
Graduate II
April 30, 2025

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
April 30, 2025

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
April 30, 2025

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