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-11-19 12:08 AM
Hi
Now im using version 2.0 but get same issue when the project run , got multiple files opening on IDE sometime even i cant find the main file , how to avoid this in new version , anybody knows please help.
Thanks.
2025-11-19 12:18 AM - edited 2025-11-20 6:24 AM
The sad news is that apparently there i no solution to this! Not even with PHD students or professional developers in 2025, we can avoid one file to be opened randomly! Stranagli enough that's the state of the software industry in 2025 and beyond!
2025-11-19 6:17 AM
Have you tried disabling live variables? I got the exact same behavior in Visual Studio Code when I enabled live variables there.
2025-11-19 6:44 AM
Problem is that a lot of people want live variables...
2025-11-20 9:27 PM
Live variables are live calculations, as I understand it. To write a + b in the field. But if you need it, write the variable c = a + b in the code and view it using standard methods. No problem. Or just printf to the SWV console.
2025-11-26 4:32 AM
This worked well
2025-11-27 12:39 AM
If you have to workaround a bug, there is still a bug.
And
its a bug not a feature...
padawan
2025-11-27 4:08 AM
This BUG is so annoying.
Been doing a lot of editing and ALWAYS it opens start startupxxx.s file. Yes I know there was a hack posted to prevent a specific file opening, but it isn't generally useful because if running in an RTOS environment, Cube always also opens some RTOS file like tasks.c.
The real problem is that if you are doing any keyboard input when this happens, this file(s) obtains focus and receives the keystrokes. You need to carefully close these files, saying NO to the Save? invitation, otherwise you corrupt your project.
STM are leaving this bug in for a reason, absolutely deliberately, but they are not saying WHY.