2020-06-25 06: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.
Solved! Go to Solution.
2022-07-21 02:40 PM
Same problems. Radom open of files. Any suggestions? Thank you
2022-08-13 01:26 PM
Same issue.
Version: 1.10.1
2022-08-14 09:10 AM
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.
2022-08-29 01:32 PM
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.
2022-09-01 11:28 AM
I also have random file open automatically after run. But:
Please try Mac version as Mac versions have a lot more bugs than Windows.
Another very annoying issue and on Mac only:
When MX file is active and you would like to open other C or header file, after clicking any C or header file, the MX file will be open and active again. But if you clicking other file again, the MX file will not be active again. This happens from 1.8 to 1.10.1 and on Mac only. Windows versions do not have this issue.
These 2 bugs are very very annoying! Please fix them!!!
2022-09-08 10:23 AM
Hi, I also faced exact the same issue and I found this.
Detach and then drag those files to the bottom corner, and even hide it if you want.
Next time the cursor will remain in main.c file.
2022-09-09 03:41 AM
I can't replicate this.
I can Detach the file, but where is this "bottom corner"?
And do you have to do that with every file which pops up spuriously, and eventually you will have gone through all the .c files in the project?
2022-09-09 08:23 AM
A more simple way that I usually do is that detach and drag all of those files to my second screen. It will take you sometime at first, but after that the cursor won't randomly jump to another file.
2022-09-09 08:26 AM
Sadly say that you have to do this with all of those files.
2022-09-09 08:29 AM
Sorry but I struggle to work out what your "second screen" is. It is almost like you are running Cube on a phone, which you obviously aren't.
I have the standard Cube install setup i.e. the project hierarchy down the left, the edit screen in the middle, and the screen for stuff like breakpoints on the right. On the bottom is a screen for stuff like Console.
So there is no obvious place for me to drag the Detached file to.