[sdiy] Some Audio DSP prototypes

sleepy_dog at gmx.de sleepy_dog at gmx.de
Wed Apr 20 22:57:10 CEST 2022

> On Wed, Apr 20, 2022 at 09:10:04PM +0200, Steve via Synth-diy wrote:
>> I've only done a couple projects now with the newer CubeIDE, only had a
>> couplke minor issues. I wonder what you mean by "GDB won't work". What
>> does that look like when it happens?
> I'm not sure what you'd even need gdb on a little microcontroller for, anyway.  It's not like it's going to tell you much.

No idea what you call a "little microcontroller", all these things still
dubbed "MCU" these days, with different buses, memories, rich peripherals.
Even on a Cortex M0 it's rather nice to have a proper call stack to dig
around in, look at variables incl function args, memory blocks and
register contents and such.
Breakpoints are helpful. Unless there's code running that doesn't suffer
those easily, or that's already disturbed by the latencies / stalls
introduced by the debug core.
I've seen people script GDB for more complicated analyses, but this kind
of bread and butter stuff mentioned, has worked , to some extent, on all
the ARM Cortex M I tried so far, and I wouldn't want to miss it - well I
did once miss it on a PIC, which had unlimited (flash grinding) but
useless SW breakpoints, as it had no call stack. Debugging was a lot
more cumbersome there.

What do you do with GDB that isn't feasible on a "little MCU" ?

More information about the Synth-diy mailing list