Skip to main content
GeneralTao
Associate II
Jun 25, 2020 1:27 PM UTC
Question

Jumping to random file after pressing Run button

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.

230 replies

Lukasz Nowak
Associate III
Sep 4, 2023 3:21 PM UTC

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
Jan 7, 2024 7:53 PM UTC

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
Jan 30, 2024 11:39 AM UTC

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 II
Jan 30, 2024 3:04 PM UTC

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
Jun 28, 2024 4:12 PM UTC

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!

unsigned_char_array
Lead III
Jul 3, 2024 11:40 AM UTC

@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
Jul 6, 2024 8:35 PM UTC

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
Jul 6, 2024 10:00 PM UTC

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
Sep 28, 2024 4:54 AM UTC

Can confirm that the problem is still current! 1.16.0

padawan
Senior II
Sep 30, 2024 6:29 AM UTC

And it's still there in 1.16.1.

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

padawan

ferro
Lead
Nov 6, 2024 1:10 PM UTC

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 II
Nov 6, 2024 1:26 PM UTC

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
Nov 6, 2024 1:29 PM UTC

>> 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.