Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .vscode/launch.json-fast
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"servertype": "external",
// This may need to be arm-none-eabi-gdb depending on your system
"gdbPath" : "gdb-multiarch",
"gdbTarget" : "/dev/ttyACM2",
"gdbTarget" : "/dev/ttyACM0",
"device": "RP2040",
"configFiles": [
"interface/picoprobe.cfg",
Expand All @@ -29,7 +29,10 @@
// immediately after flashing. This means that by the time any ram based
// breakpoints are applied the relevant stuff is in RAM.
"postLaunchCommands": [
"break main", "continue", "clear main",
"break main",
"continue",
"shell sleep 1",
"clear main",
// "monitor get_to_main"
],
// With breakAfterReset we have a consistent approach so can use the same
Expand All @@ -38,6 +41,7 @@
// "monitor get_to_main"
"break main",
"continue",
"shell sleep 1",
"clear main"
]

Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,21 @@ I'll try to keep a reasonably up-to-date pico-debug.uf2 file around, but I'll on
The other project I'm working on already has nice and stable ethernet (rmii) and PoE, and I think a debugger with ethernet and poe would be really nice ... so I may look at that, although I do need to get back to that first project ... that's why I created this!

Any comments welcome ... but please bear in mind I do this for fun, I'm not an expert, lots of things will be wrong.

## FAQ

### Permission denied on /dev/ttyACM0,ttyACM1,ttyACM2

You can add a udev-rule for this with like /etc/udev/rules.d/99-pico-debug.rules:
```
ACTION!="add|change", GOTO="pico_debug_end"
SUBSYSTEM!="usb|tty|hidraw", GOTO="pico_debug_end"

# fast picoprobe
ATTRS{idVendor}=="3333", ATTRS{idProduct}=="1111", MODE="664", GROUP="plugdev"
```

Reload the config with:
```
udevadm control -R
```