From ebb3c4f82ef1391e5ea90ea583368bf46520fc14 Mon Sep 17 00:00:00 2001 From: pingufreak <66285053+pingufreak@users.noreply.github.com> Date: Wed, 26 Oct 2022 00:18:59 +0200 Subject: [PATCH 1/4] Update launch.json-fast Fixed missing delay between "continue" and "clear main". --- .vscode/launch.json-fast | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json-fast b/.vscode/launch.json-fast index 2acecef..0b26dcf 100644 --- a/.vscode/launch.json-fast +++ b/.vscode/launch.json-fast @@ -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" ] From 2809ec0a314872f9e424cf3284917c6e4d488d7f Mon Sep 17 00:00:00 2001 From: pingufreak <66285053+pingufreak@users.noreply.github.com> Date: Wed, 26 Oct 2022 00:25:42 +0200 Subject: [PATCH 2/4] Update launch.json-fast /dev/ttyACM2 is not correct, it should be /dev/ttyACM0 --- .vscode/launch.json-fast | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/launch.json-fast b/.vscode/launch.json-fast index 0b26dcf..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", From 591dcdc885c341a80b5a8c8ff040f285f2ff34d2 Mon Sep 17 00:00:00 2001 From: pingufreak <66285053+pingufreak@users.noreply.github.com> Date: Wed, 26 Oct 2022 00:34:11 +0200 Subject: [PATCH 3/4] Update README.md Added FAQ with first question for adding udev-rules. --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 3014294..9adc778 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 +``` From 939f14ed24f38b6f7aa93631028737adf20c5fc6 Mon Sep 17 00:00:00 2001 From: pingufreak <66285053+pingufreak@users.noreply.github.com> Date: Wed, 26 Oct 2022 00:34:41 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9adc778..1940550 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Any comments welcome ... but please bear in mind I do this for fun, I'm not an e ## FAQ -# Permission denied on /dev/ttyACM0,ttyACM1,ttyACM2 +### 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: ```