Quantcast
Viewing all articles
Browse latest Browse all 5415

SDK • Debug Probe, Windows, Uploadng .elf files

I recently bought a Debug Probe (instead of using 2 Picos). I am trying to follow the documentation here: https://www.raspberrypi.com/documentati ... probe.html

I've copied openocd.exe and libusb-1.0.dll into a folder within my PATH. (I went through the process of building OpenOCD with MSYS).

When I try to upload, I get the following error:

Code:

C:\pico\pico-projects\PIOCount\build>openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program counter_pio.elf verify reset exit"Open On-Chip Debugger 0.12.0-g4d87f6d (2023-12-12-17:15)Licensed under GNU GPL v2For bug reports, read        http://openocd.org/doc/doxygen/bugs.htmlembedded:startup.tcl:28: Error: Can't find interface/cmsis-dap.cfgin procedure 'script'at file "embedded:startup.tcl", line 28
I feel like the Windows documentation is full of holes - it tells you how to install software and the only example usage under the Serial Wire Debug (SWD) is for Linux/Mac and it doesn't say anything about adding openocd.exe to your path, or what folder to run the command line from.

Maybe we need a "sticky" post for a "Windows Debug Probe FAQ" - unless this post becomes that sticky post?

Help would be much appreciated, thank you.

Statistics: Posted by SparkyNZ — Tue Dec 12, 2023 4:46 am



Viewing all articles
Browse latest Browse all 5415

Trending Articles