Debugging
Log Output
Logs are accessible via the Raspberry Pi Pico’s default UART pins
with 115200 bauds.
picocom -b 115200 /dev/tty<DEVICE>
Debugging
The Raspberry Pi Pico can be debugged via it’s SWD interface and
a suitable debug adapter e.g. a Blackmagic Debug Probe.
Connect the Blackmagic Debug Probe to the Pi Pico’s SWD header.
Connect to a GDB session via
west debug --runner blackmagicprobe.Set breakpoints using
break <full/source/code/path>:<linenumber>.Step through or step in to the code via GDB commands like
nextorstep in.
See the Zephyr Documentation for a closer look into Raspberry Pi Pico debug options.