cancel
Showing results for 
Search instead for 
Did you mean: 

Jumping to random file after pressing Run button

GeneralTao
Associate II

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.

227 REPLIES 227

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.

LT.1
Associate II

Same issue 1.12.0.

Jpail.1
Associate

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.

0693W00000aIs6IQAS.png0693W00000aIs6SQAS.png

PHolt.1
Senior III

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.

There are three possibilities:

  1. You do not run debug mode first.
  2. You are ST employees who never have this issue.
  3. You lie as it never "open loads of file". It just open one random file each time you run it.0693W00000aIvBfQAK.png
PHolt.1
Senior III

I am running in debug (F11).

Maybe there is some other difference.

I don't work for ST : -)

I tried to do that, but the minimized popup window does not disappear automatically (version 1.12.0). Thanks for the idea anyway.

VSánc.2
Associate

Same issue on 1.12.0

NRoth.3
Associate II

Very annoying... please ST.

kshoy.1
Associate II

Unfortunately either ST does not read this thread or they ignore it.

I did open a ticket a while ago ( 00173614), but apparently there are too few requests there - after a while ST confirmed the issue and ... closed the ticket, as they "cannot do much about it" and suggested that "The alternative is always to use other, paid IDEs." :). This kind of customer treatment appears a bit strange to me, though. I also cannot accept a closure of an unresolved ticket, but I can't find any contact to escalate this type of customer service.

Maybe if other affected users would raise a ticket, they might react more.