Electronics > Microcontrollers
Is ST Cube IDE a piece of buggy crap?
paulca:
You can disable the whole feature. The issue then becomes, it won't open or switch to any files automatically on break points. You can still click the stack trace though.
peter-h:
Where is this config?
Not switching to the file where the breakpoint was is useless, however.
peter-h:
I finally found the config for disabling the automatic breakpoint in main().
Until a few versions ago it used to be under Debugger but then they moved it. In the new location, it was however grayed-out. But somebody found how to do it:
https://stackoverflow.com/questions/66566866/stm32cubeide-run-configurations-how-to-disable-set-breakpoint-at-main-if-gra
If you go into the config via this other route (which is totally not obvious) the option is not grayed-out.
Project / Debug As / Debug Configurations / Startup
And it works. F11 takes me straight to a running project. No more breakpoint at main().
peter-h:
One thing I find, which may or may not be specific to Cube and/or STLINK debuggers, is this:
If something happens on the PC with USB, say you plug in a USB drive and the PC does some sort of re-enumeration, it can mess up the debugger (via its USB cable) which then crashes or just reboots the target.
And Windoze sometimes does "funny USB stuff" on its own, without you doing anything.
A bit hard to deal with if you want to run debug mode for hours...
If you just want to run code, best to exit Cube and that seems to prevent the debugger getting screwed up. Better still unplug the USB cable. Unplugging the debugger from the target may be harder, depending on the connection.
And this is with STLINK V3 ISOL i.e. isolated, so it doesn't appear to be just a "spike", but who knows?
rsjsouza:
--- Quote from: peter-h on May 30, 2023, 08:33:29 pm ---If something happens on the PC with USB, say you plug in a USB drive and the PC does some sort of re-enumeration, it can mess up the debugger (via its USB cable) which then crashes or just reboots the target.
--- End quote ---
I don't have much experience with ST, but I haven't seen this happen with other manufacturers (TI, FSC, etc.)
--- Quote from: peter-h on May 30, 2023, 08:33:29 pm ---And Windoze sometimes does "funny USB stuff" on its own, without you doing anything.
A bit hard to deal with if you want to run debug mode for hours...
--- End quote ---
That can happen with anyone, especially if Windows is set to use weird power modes that, among other things, may put the USB subsystem to sleep.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version