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

Jumping to random file after pressing Run button

  • June 25, 2020
  • 105 replies
  • 56095 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

ICaba.1
Visitor II
June 5, 2022

Here, one more.

It just start happening this last week after setting a new workspace.

I vaguely remember brushing aside some pop-up notification when running the fist debugging/running sessions. I guess I accepted some kind of configuration and after that it become so annoying to be required to close or change file so frequently.

There is probably some way around this problem in the CubeIDE settings. Help.

I guess Im starting a new work environment as someone suggested earlier. u.u

Brian H
Senior
June 15, 2022

Yep, me too. It happens with both debugging and running. Building on what others have said, I'm betting some quasi-random PC value is getting examined, and a line in a source file found to match, and that source file opened. Even though no user-initiated halt has taken place. I also notice, when starting a debugging session, when that file opens, the call stack area momentarily displays "Suspended: User request" even though I've done no such thing. I suppose something in the debug startup process looks like a user-requested suspend and causes Eclipse to make its attempt to display the line where execution is halted.

So, yeah, it's pretty annoying, especially when iterating rapidly...

qua
Associate III
June 21, 2022

Two years and this hasn't been fixed.

Brian H
Senior
June 22, 2022

I wonder if it's an issue with Eclipse itself when changing perspectives. STM may have little power to fix it if that's the case. Still, a response from STM on this thread one way or the other would be an appreciated gesture...

Loic1
Associate II
June 30, 2022

I may have found something interesting about this behavior.

As long as I just run a code (by clicking the "Run" button to upload a program), no other window opens. But, once I use the debug mode, it starts to jump to random files windows. Then the behavior happens every time I try to run or debug a code, until I restart the IDE. Pretty annoying since I use it everyday...

frankfrank956
Associate
July 10, 2022

It is indeed annoying.

As @Loic says, restarting the IDE appears to reset this behaviour. A single Debug run starts it up again. In my case, the file opened is mostly the startup_stm32f411ceux.s and the active line is the reset handler. But not always.

lukin
Associate III
July 21, 2022

Same problems. Radom open of files. Any suggestions? Thank you

jamesbaber
Visitor II
August 13, 2022

Same issue.

Version: 1.10.1

PHolt.1
Senior
August 14, 2022

All versions of Cube have always done this.

It is stupid, annoying, and dangerous because keystrokes are directed to the file that has been randomly opened so if you are typing something into another window, those keystrokes go into the newly opened file.

After doing say 20 debug runs you have 20 randomly picked files open.

Of course it has been reported many times.

Vertinhol
Associate III
August 29, 2022

I have an idea of the origin of this issue, in my case I started encountering it after I tried the debug function for the first time, and since then a random tab will appear after every run, this is driving me crazy especially when I'm stuck trying to solve a project problem.