arduino / arduino/ArduinoCore-mbed

Nano RP2040 - Sketch > Upload Using Programmer with Tools > Programmer ‘J-Link’ fails

Open
#939 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
411
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Calling Sketch > Upload Using Programmer with Tools > Programmer ‘J-Link’ fails.

```
"C:\Users\USER\AppData\Local\Arduino15\packages\arduino\tools\openocd\0.11.0-arduino2/bin/openocd.exe" -d2 -s "C:\Users\USER\AppData\Local\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 {C:\Users\USER\AppData\Local\Temp\arduino\sketches\8FE9FD5B6B5F64C506A06759674DFACF/Blink_Serial.ino.elf}; reset run; shutdown"
Open On-Chip Debugger 0.11.0+dev-gab95bac57-dirty (2021-05-11-10:45)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

embedded:startup.tcl:26: Error: Can't find target/rp2040.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 26
Failed programming: uploading error: exit status 1
```

* `interface/cmsis-dap.cfg` should be `interface/jlink.cfg`
* `target/rp2040.cfg` is unknown, use `target/rp2040-core0.cfg` instead

Environment

* Arduino IDE 2.3.2
* Arduino Mbed OS Npno Boards 4.1.5
* Segger J-Link Plus 11.0
* Windows 11 23H2

Thank you!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the shown OpenOCD invocation for the Nano RP2040 with the J-Link programmer on the listed Arduino IDE and Mbed OS versions. Compare the referenced interface/cmsis-dap.cfg and interface/jlink.cfg settings, then inspect the target/rp2040.cfg and target/rp2040-core0.cfg scripts. Done means Upload Using Programmer completes successfully with the J-Link.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.