2025-10-03 1:41 AM
Here are some threads which describe the problems
Basically, if you want to do Statistical Profiling, you have to enable PC Sampling and then Cube leaks memory at around 100kbytes/sec. Eventually it crashes, obviously. The SWV ITM debug mode does not need PC Sampling and is thus a lot more reliable, but only in the OpenOCD debugger mode.
Instead of adding more stuff which nobody uses, ST should fix this program properly, starting with the famous "random file opening" issue which about 100 people have complained about.
Another way to crash Cube is to use a STLINK debugger with some unspecified fault on the USB side. Cube just leaks lots of memory and bombs. Poor error detection...
2025-10-03 1:58 AM - edited 2025-10-03 1:59 AM
> Basically, if you want to do Statistical Profiling, you have to enable PC Sampling and then Cube leaks memory at around 100kbytes/sec. Eventually it crashes, obviously.
You might have a look at Segger Ozone, a freestanding debugger.
AFAIK it's free for non-commercial use.
PS: and not related to my moniker here ... ;)
2025-10-03 2:07 AM
>Cube IDE poor reliability when debugging
You forgot to tell:
- IDE version
- PC system
- st-link type/version
- target cpu
btw
I use actual MxLinux, IDE 1.18.1 , debug openOCD and GDBmultiarch ,
st-link V2 ("stick", mod. for SWO ) , or V3 mods and miniE ;
targets: F103, F303 , F411, H563, H7A3, H743 , H7S3 .
About "poor reliability when debugging" i admit: (seldom) there is a problem, sometimes debug not starting, so i just click on debug again..then it starts usually, as it should. And "live expressions" i dont use/recommend to use, strange behaviour, sometimes working fine, most times not. But anyway no important feature for me, so no drama.
2025-10-03 2:54 AM
Various versions over past 5 years.
Win7-64, win10, 24GB, i7
STLINK V3 ISOL, V3 MINIE
32F407/417
I don't use live expressions. Normally Cube works for the usual cycle of download, breakpoints etc.
The fun starts if you want to use SWV / SWO stuff.
Yes everybody says Seggers are good but a) they are 1k+ and b) I much prefer to Cube-integrated system. I played with the cheap Edu one and saw no difference at all versus STLINK V3.
Didn't know the STLINK V2 does SWO. I used the V2 ISOL for a long time; works ok.
2025-10-03 3:23 AM
-- still no info:
- IDE version
you use.
+
>Didn't know the STLINK V2 does SWO
see manual:
on cheap V2 "clones" you have to solder it yourself, to get swv :