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

Đang mở
#64 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
raspberry-pi
Lĩnh vực
embedded-iot, tooling

Hướng nghiên cứu

Bắt đầu với đường dẫn gói PlatformIO OpenOCD tại ~/.platformio/packages/tool-openocd-rp2040-earlephilhower/share/openocd/scripts/interface/ và kiểm tra cách các tệp cấu hình interface được đóng gói. Sử dụng platformio.ini được cung cấp cùng với PicoProbe để tái hiện lỗi thiếu tệp, sau đó xác minh rằng cấu hình hiện diện và quá trình upload hoạt động.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
96
Fork
142
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của platformio/platform-raspberrypi

Tất cả issue của platformio/platform-raspberrypi

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.