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.

206 REPLIES 206

I tried on STM32f429 DK and no random file opens. Every time session halts in main () with a short stop in startup_stm32f429zitx.s

I created the project from GfxDesigner 4.21.1, blank screen. Cube IDE 1.17.0

see the video

ferro_0-1748438621070.png

 

ah yes, so there is this one, another was the reset vector

Hello ferro,

look at your screen shot.

Do you open the "startup_stm_32f429zitx.s" file by your self?

Or opened it the IDE by magic?

Thats we are talking about....

remove the breakpiont at main and it open the file nevertheless.

an if you stop debung and run->debug again, mostly it opens an other file.  

padawan

 

you said this

If i open the IDE the first time and Run -> Debug: no randomfile!

If i close Debug and hit Run -> Debug again:  randomfile!

I close the IDE and open it and Run -> Debug: no randomfile!

If i close Debug and hit Run ->Debug again:  randomfile!

If i close Debug and hit Run ->Debug again:  randomfile!

startup_stm_32f429zitx.s is not a random file.

remove the breakpiont at main and it open the file nevertheless.

an if you stop debung and run->debug again, mostly it opens an other file.  

Please record a video of IDE with what you describe here

Ok 3 times test.

at first i has the main_pg.cpp then i get the .s and after this i get the .c

padawan_2-1748441200236.png

 

 I only  Run->Debug and stop it and run->debug again.

there is no edit or change on the source files

After 2 hits more 

padawan_1-1748441071505.png

And this is random.

padawan

 

video please


@ferro wrote:

startup_stm_32f429zitx.s is not a random file.


Flashing has not finished yet, so before debugging has started it opens the startup file for no reason. It doesn't matter if it is a random file or the startup file. The point is it should not open any file.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

"for no reason"
It is a startup file. This might be a reason.

 

"The point is it should not open any file"
Said who ? Why not ? What is expected bahaviour ?

Himzo
Associate II

Seems like we have a troll here.

Anyways, unsubscribing from notifications, I'll just have to live with this bug. Good luck guys.