Quantcast
Viewing latest article 4
Browse Latest Browse All 5587

General • Re: Pico2 does not reboot properly when flashing via SWD

Hi, sorry for the delay.

I added multicore_reset_core1() from the beginning. That didn't help.
Now I tried to implement the mentioned openocd workaround, but openocd complains about unknown command rp2040.core1. Since I use an RP2350; I also tried rp2350.core1 but that does not work either.

Then I tried debugging the program. As expected it stops at main() and when I press "continue" everythings works fine.

So maybe the workaround would work, but the Core select command seems to be wrong.

EDIT:
The core select command now is named rp2350.dap.coreX

With that the workaround works. Here is the commandline:

Code:

program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset;init; reset halt; rp2350.dap.core1 arp_reset assert 0; rp2350.dap.core0 arp_reset assert 0; exit
If you use the current VSC SDK 2.1.1 you can alter the flash command in the file .vscode\task.json
Complete entry there is:

Code:

{            "label": "Flash",            "type": "process",            "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe",            "args": [                "-s",                "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts",                "-f",                "interface/cmsis-dap.cfg",                "-f",                "target/${command:raspberry-pi-pico.getTarget}.cfg",                "-c",                "adapter speed 5000; program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset;init; reset halt; rp2350.dap.core1 arp_reset assert 0; rp2350.dap.core0 arp_reset assert 0; exit"            ],            "problemMatcher": [],            "windows": {                "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe",            }        }

Statistics: Posted by Bluescreen2001 — Mon May 12, 2025 6:28 pm



Viewing latest article 4
Browse Latest Browse All 5587

Trending Articles