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.
2023-03-06 04:01 AM
This decision depends on various factors.
If you work alone, then you can use the same IDE and it doesn't matter much what it is. For example I design circuits with ORCAD SDT/386 and PCBs with protel PCB 2.8, both from about 1995! And both work perfectly, in a winXP VM. The great advantage is that I can open a project from years ago, do mods, generate new gerbers, etc. You can't do that with most licensed products after a certain time.
But let's say you are working on a project where others are contributing parts, and it is to be run on a PC at home, PC at work, laptop while travelling, etc, then you don't want anything that is licensed, and especially not anything using any kind of floating license which involves an inline check.
Cube does work (I've been using it for over 2 years) and one can just install it on any machine, win7-64 or later, or in a VMWARE VM for a totally standalone solution, and it is totally free. And if you disable the update check then it should just keep working for ever, with no internet connection.
Paid-for products tend to stop working past a certain age. Look at what happened with Adobe. There was such an uproar when they pulled the license server function for CS3, that they were forced to give away perpetual keys for CS2. And the Adobe bootleg scene (CS6 and later, which Adobe rent out now) went into overdrive.
ST should fix that random file opening bug. As I posted, it is dangerous because it switches the input focus from whatever app you are typing in, to Cube, and Cube consumes the next few characters before you realise you have just corrupted some .c files... This focus switch doesn't always happen but I have not investigated why and how.
2023-03-07 12:16 AM
I experience the same behavior of CubeIDE. My findings are that the random file shows up only for Debug command, not for Run. However, if I do Debug in the current session, the random file will pop up for both Debug and Run commands from now on. Then I have to restart the IDE to make the Run command stop popping up a file.
2023-03-08 12:33 PM
Same issue 1.12.0.
2023-03-13 07:55 PM
I finally have a work-around:
Open your editing perspective, click "Run" with you device connected of course. Right click and detach the random window that pops up. The click drag the window via the window tab circled in red and drag to the right side of the screen. When the gray separation line appears in the middle of the window as shown in the first picture, release click. Then minimize the window as shown in the second picture circled in green. Now, select "Debug", and change window perspective to debug. Repeat the same steps above in this debug perspective.
Now when either running/debugging your program, a small, minimized version of the startup_stmxxx file pops up briefly, but then re-minimizes once the run/debug initial startup is complete.
2023-03-14 04:08 AM
Are you running Cube v1.12 ?
I have just loaded that and I am seeing either no issue or a lot less of it.
It used to open loads of files but I am not seeing that right now.
2023-03-14 04:41 AM
There are three possibilities:
2023-03-14 07:30 AM
I am running in debug (F11).
Maybe there is some other difference.
I don't work for ST : -)
2023-03-20 01:25 AM
I tried to do that, but the minimized popup window does not disappear automatically (version 1.12.0). Thanks for the idea anyway.
2023-04-15 08:15 PM
Same issue on 1.12.0
2023-04-27 06:35 AM
Very annoying... please ST.