Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4118

Troubleshooting • How to immediately start Pi pico program w/ debugprobe

$
0
0
I use a Raspberry Pi Pico W as a debug probe for a Raspberry Pi Pico.

I am using raspberry pi's openocd on github & following the instructions from the "Getting started" guide.

I compiled the examples from "pico-examples" GitHub repo

I run the following command:

Code:

sudo src/openocd -s tcl -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program <path>/blink.elf verify reset exit"
this works, however, the LED is stuck ON.

I have to manually run

Code:

gdb <path>/blink.elfcontinue
to get the "blinking" process to start. otherwise it stays ON.

or if i simply powercycle the entire setup, the led blinks as expected.

why is this happening? and how to get it running immediately after upload? I was under the impression that `reset` inside openocd command would just reset and start the program?

Statistics: Posted by ladiesman6969 — Tue Feb 11, 2025 8:46 pm



Viewing all articles
Browse latest Browse all 4118

Trending Articles