arduino / arduino/ArduinoCore-mbed

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

Open
#940 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/nrf52.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

Info : auto-selecting first available session transport "swd". To override use 'transport select '.
Error: unable to find a matching CMSIS-DAP device

Failed programming: uploading error: exit status 1
```

* `interface/cmsis-dap.cfg` should be `interface/jlink.cfg`

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 tracing how the selected Tools > Programmer value produces the OpenOCD command shown in the report, especially the interface/cmsis-dap.cfg and interface/jlink.cfg entries. Reproduce the upload with a J-Link and confirm that selecting J-Link uses the correct interface configuration and completes programming without the CMSIS-DAP error.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.