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

Hm, but I set BP at HAL_Init ()

ferro_0-1748637208617.png

 

"Sorry, but no, close but not quite."

Yes, and i take break from this. Some combo of Debug config settings?. Hm.

 

I know you'll make it in the end!!! I'll vote for them to make you ST's CTO haha

Hi ferro,

you want a vid you, get a vid. see the vid:

I have done before Run-> Remove All Breakpoints.

You see i only click Run-Debug; Stop Debug; several times. Thats all i do.

That we are talking about. 

There are no breakpoints. No Stop or annything.

padawan

Interesting that terminate also opens a file. Clearly synchronization doesn't happen properly here. The IDE receives incorrect breakpoint information after stopping. Bug or undocumented feature? In my opinion a bug. Stopping debug session means no more breakpoints in my opinion.

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.

@unsigned_char_array 

"Interesting that terminate also opens a file."
"The IDE receives incorrect breakpoint information after stopping."
Yes. I tried to find where is list of BP stored and/or how its passed to GDB but no luck.


Thanks @padawan . Much better than describing in words isn't it?
"That we are talking about."
I am not sure you can use 'we' any longer. I wonder if anyone else experiences what you do.
I would like to be more precise in our lingo. We should stop calling startup.s 'a random file'. It is not.


Q1: Is this your work project ? are you working on it for a long time ? Maybe some files got corrupted and IDE is confused.
Q2: is this happening in a plain project created from scratch ?

 

I would suggest to create a separate thread for this craziness with opening files when you press stop, its a rather messy here. What do you think guys?

 

PHolt.1
Senior III

ST are dumping Cube IDE and moving to VS so Cube is not going to get any fixes now anyway.

https://www.eevblog.com/forum/microcontrollers/is-st-cube-ide-a-piece-of-buggy-***/msg5933652/#msg5933652

Hi @PHolt.1 

Did you want to point to a specific msg from that thread ? Because I see this when I click the link

ferro_0-1748873190226.png

 

Go the the end. The problem is that this forum truncates long URLs...

Thanks

"During this transition period, STM32CubeIDE will be maintained. Currently, STM32CubeIDE is the best debugger for STM32 microcontrollers and can be used side-by-side with VS Code."

Luckily, I have no issues with STM32CubeIDE so I agree with "STM32CubeIDE is the best debugger for STM32 microcontrollers".