Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

openocd 0.11.0-arduino2 does not know target/rp2040.cfg #704

Open
@josefwegner

Description

@josefwegner

Hi,

Set up a spare Raspberry PI Pico as a Picoprobe (as described inhttps://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf Chapter A) and tried to upload a sketch using a programmer instead of using picotool:

arduino-cli board attach -p /dev/ttyACM0 -b arduino:mbed_rp2040:pico arduino-cli compilearduino-cli upload -P cmsis-dap -v

Sadly, it fails as openocd is trying to load a non-existing config:

"/home/pi/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2/bin/openocd" -d2 -s "/home/pi/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2/share/openocd/scripts/" -f interface/cmsis-dap.cfg  -f target/rp2040.cfg -c "telnet_port disabled; init; reset init; halt; adapter speed 10000; program {/tmp/arduino/sketches/CF5F9525C622B4069B93C96C38646A84/neopixel.ino.elf}; reset run; shutdown"Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:55)Licensed under GNU GPL v2For bug reports, read        http://openocd.org/doc/doxygen/bugs.htmldebug_level: 2embedded:startup.tcl:26: Error: Can't find target/rp2040.cfgin procedure 'script'at file "embedded:startup.tcl", line 26Fehlgeschlagene Programmierung: Hochladefehler: exit status 1

boards.txt is using a wrong target:

pico.bootloader.tool=openocdpico.bootloader.tool.default=openocdpico.bootloader.config=-f target/rp2040.cfgpico.bootloader.programmer=-f interface/cmsis-dap.cfg

The bundled openocd-0.11.0-arduino2 does only have the following target:
~/.arduino15/packages/arduino/tools/openocd/0.11.0-arduino2/share/openocd/scripts/target/rp2040-core0.cfg

Please either rename the file to rp2040.cfg, or update boards.txt to point to the correct file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp