Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5011

SDK • Breakpoints on Exceptions

$
0
0
Hi all

After switching from the windows v1.5.1 setup-kit to the latest VS-Code + Plugin and SDK V2.0 im struggle with debugging my project with the picoprobe. The reason for the update were some strange random exceptions (most based on some bad-alloc within c++ strings).
Now I'm missing some "general" Breakpoint settings:
- Pause/hit on all exceptions
- Pause/hit on unhandled exceptions
- asserts?

My first assumtion is some memory leak problem. The Mem-Printout at compiletime reports only 35% FLASH (-10% compared to the SDK V1.5.1) 23% RAM and no Scratch usage, but I have no idea whow the memory looks at the runtime. All my added UART Trace-Outpus are currently useless - I don't know the source.

1) The first 2 were configured out of the box within the V1.5.1 Tool-Chain -> what do I have to add manually?

2) Is there a way to add also a general Assert-Breakpoint?
I've modified the runtime.c file with the weak-attribute to get my own __assert_func as target and output the assert-message to a global logger-sink. but this is just one possible assert

Thanks and best regards
P51D

Statistics: Posted by P51D — Sat Nov 09, 2024 11:34 am



Viewing all articles
Browse latest Browse all 5011

Trending Articles