Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PicoProbe: Interface/picoprobe.cfg missing (+ how to fix it) #64

Open
michael9dk opened this issue May 22, 2024 · 0 comments
Open

PicoProbe: Interface/picoprobe.cfg missing (+ how to fix it) #64

michael9dk opened this issue May 22, 2024 · 0 comments

Comments

@michael9dk
Copy link

Connected a Pi Pico through a PicoProbe.
Installed VSCode + PlatformIO using this simple tutorial (https://www.schaerens.ch/pico-developing-for-raspberry-pi-pico-w-with-platformio-and-c-c/).

On Upload, OpenOCD complains about:
embedded:startup.tcl:28: Error: Can't find interface/picoprobe.cfg

Digging through folders I can see picoprobe.cfg is missing in
/home//.platformio/packages/tool-openocd-rp2040-earlephilhower/share/openocd/scripts/interface/

Solution:
Create a new file named picoprobe.cfg in the folder, with the following text

# Adapter section
adapter driver cmsis-dap
adapter speed 5000

Notice adapter driver picoprobe is replaced with adapter driver cmsis-dap.


For completeness, my content of platformio.ini is now:

[env]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
framework = arduino
; uncomment this to use Arduino-Pico
; keep commented to use ArduinoCore-mbed (official RP2040 core)
;board_build.core = earlephilhower
;board_build.filesystem_size = 0.5m

[env:pico]
board = pico
; if using picoprobe SWD upload / debugging
upload_protocol = picoprobe
debug_tool = picoprobe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant