Skip to main content
GeneralTao
Associate II
June 25, 2020
Question

Jumping to random file after pressing Run button

  • June 25, 2020
  • 105 replies
  • 56096 views

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.

105 replies

Lukasz Nowak
Associate III
September 4, 2023

Just to verify a couple of things, I did a fresh install of Linux Mint 21 and a fresh install of STM32CubeIDE 1.13.1. And the problem happens there as well. So it is not a Windows thing. And it is nothing left-over from any older version previously installed.

And as mentioned earlier, the first Run after starting up the IDE does not show the problem. Only after the first Debug session it starts happening until the IDE is restarted.

Visitor II
January 7, 2024

Same issue, version: 1.14.0. New notebook, new Win11 installation, new CubeIDE installation. Problem started at the very first project (I started to learn programming MCUs recently) . 

PHolt.1
Senior
January 30, 2024

They claim to have fixed something...

https://wiki.st.com/stm32mcu/wiki/STM32CubeIDE:STM32CubeIDE_errata_1.13.x

PHolt1_0-1706614768575.png

 

I am running 1.14.1 under win7-64 and on a quick test it seems ok. It does open the startup.s file at the 1st line where SP is loaded, but that is ok (well, it's dumb). Afterwards whenever I press e.g. the stop button it opens tasks.c at void vApplicationIdleHook (void) which is correct because that is where the CPU spends by far most of its time in my project (and probably in most RTOS-based projects).

BTW the system requirements, which now say win10 or higher, is BS. It works perfectly under win7-64. I know official M$ updates stopped years ago but there is a way to fully update win7-64 because M$-contract customers still get it.

padawan
Senior
January 30, 2024

Hi,

sorry that is not true.

The issue is not solved in 1.14.0 nor in 1.14.1

https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-14-0-gt-old-issue/m-p/612850

They mark a issue as "solved" as soon they generate a ticket.

 

Padawan

 

 

 

Graduate II
June 28, 2024

Just updated to 1.15.1, and this bug is still present. Especially annoying when exiting debug mode to update the code, a random *.s file would open and instead in main, I would start typing in the *.s file.

Please ST, you have been aware of this for years!

Lead II
July 3, 2024

@GeneralTaoCan you please unmark the answer as an answer. I finally thought the issue was solved, but you incorrectly marked it as solved.

"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."
Lukasz Nowak
Associate III
July 6, 2024

STM32CubeIDE 1.16.0 still has the same problem - 100% reproducible.

Hey, ST - will this ever be fixed?

I cannot believe you can just keep ignoring this problem for years now...

Gaston_78
Graduate II
July 6, 2024

And do you know what is even more "funny" ??..  using STM32 extension in VScode it has same behaviour after build/compile or run the project ! :flushed_face::face_with_rolling_eyes:

Associate
September 28, 2024

Can confirm that the problem is still current! 1.16.0

padawan
Senior
September 30, 2024

And it's still there in 1.16.1.

that's “asap”, so to speak :(

padawan

ferro
Lead
November 6, 2024

Hi,

In my case this worked:

I started debug session and 'random' file opened in the editor

ferro_2-1730898596089.png

 

 

I pressed 'Preferences' and

[Window > Preferences > Debug ]

ferro_1-1730898473908.png

 

Now, I do not see the 'random' file again.

 

padawan
Senior
November 6, 2024

It is no the 0x800128 file it is the startup*.s file or other random 

existing .c files.

If you have only open your "app_main.cpp" and you press "debug" 

it opens  the "startup*.s" file or other files. And this is what we talking about.

paddawan 

ferro
Lead
November 6, 2024

>> If you have only open your "app_main.cpp" and you press "debug" 

it opens  the "startup*.s" file or other files.

 

It does not.