diff --git a/.vscode/launch.json-fast b/.vscode/launch.json-fast index 2acecef..e61bb8f 100644 --- a/.vscode/launch.json-fast +++ b/.vscode/launch.json-fast @@ -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", @@ -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 @@ -38,6 +41,7 @@ // "monitor get_to_main" "break main", "continue", + "shell sleep 1", "clear main" ] diff --git a/README.md b/README.md index 3014294..1940550 100644 --- a/README.md +++ b/README.md @@ -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 +```