From cee2fbc19346a1dc68ca1777d29871bb75809884 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sun, 17 Nov 2024 21:52:41 -0700 Subject: README: GDB notes --- .gitignore | 1 + README.md | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ee30cb2..2fd72bb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *.log *.tmp .mypy_cache/ +.gdb_history /build/ /build-aux/sources.mk diff --git a/README.md b/README.md index 2be841f..501689e 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,15 @@ UART: - `picocom --baud=115200 /dev/ttyUSB0` - `picocom --baud=115200 /dev/ttyACM0` -- `openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000"` +- `openocd -f interface/cmsis-dap.cfg -c set 'USE_CORE 0' -f target/rp2040.cfg -c "adapter speed 5000"` + (Explanation of `USE_CORE`: https://github.com/raspberrypi/debugprobe/issues/45) - `arm-none-eabi-gdb ./build/rp2040/cmd/sbc_harness/sbc_harness.elf` ``` - target remote localhost:3333 + target extended-remote localhost:3333 monitor reset init continue ``` + https://openocd.org/doc/html/General-Commands.html SWD: - https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html -- cgit v1.2.3-2-g168b