summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-17 21:52:41 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-11-19 20:22:31 -0700
commitcee2fbc19346a1dc68ca1777d29871bb75809884 (patch)
tree378ec009da02c1a61ab6967ed55a2613c52665d3
parentb307a7038fed1afa52fc9b246bab61d1af2ed2ec (diff)
README: GDB notes
-rw-r--r--.gitignore1
-rw-r--r--README.md6
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