VisualStudioCode+ncs开发nRF54L15下载问题
开发环境默认使用J-Link下载,前期开发nrf52840/52832时使用J-Link-OB以及J-Link V8一直没啥问题,在nrf54L15样板就绪之前,vsc下开发52840一切正常,切换到54L15时,遇到下载问题,提示如下:
Flashing blinky to 123456
west flash -d c:\ncs\v3.1.1\zephyr\samples\basic\blinky\build --domain blinky --dev-id 123456
-- west flash: rebuilding
[0/5] Performing build step for 'blinky'
ninja: no work to do.
[4/5] cmd.exe /C "cd /D C:\ncs\v3.1.1\zephyr\samples\basic\blinky\build\_sysbuild && C:\ncs\toolchains\c1a76fddb2\opt\bin\cmake.exe -E true"
-- west flash: using runner nrfutil
-- runners.nrfutil: reset after flashing requested
-- runners.nrfutil: Flashing file: C:\ncs\v3.1.1\zephyr\samples\basic\blinky\build\merged.hex
Error: One or more batch tasks failed:
* 123456: Device error: Emulator error: Failed to connect to device: Feature is not supported (Generic)
FATAL ERROR: command exited with status 1: nrfutil --json device x-execute-batch --batch-path 'C:\ncs\v3.1.1\zephyr\samples\basic\blinky\build\generated_nrfutil_batch.json' --serial-number 123456
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
经查是J-Link -OB不支持cortex-M33烧录,整理支持的J-Link版本如下:
J-Link 调试器对 nRF54 (ARMv8-M, Cortex-M33) 的支持情况
调试器型号 / 版本 | 是否支持 nRF54 | 说明 |
---|---|---|
J-Link V8 | ❌ 不支持 | 停产多年,仅支持 ARMv7-M (M0/M3/M4/M7),不支持 Cortex-M33 |
J-Link OB (STM32F103) | ❌ 不支持 | 用在 nRF52840 DK 等老板子上,固件不更新,不支持 ARMv8-M |
J-Link V9 (独立) | ⚠️ 部分支持 | 需要升级到最新固件 (≥ v7.9x),才能连 Cortex-M33;旧固件会报 “Unsupported CPU” |
Mini J-Link V9 | ✔️ 支持 (升级后) | 与 V9 类似,升级固件后可支持 ARMv8-M,确认能调试 nRF9160、STM32L5、nRF54 |
J-Link V10 (独立) | ✔️ 正式支持 | 全面支持 ARMv8-M (M23/M33),推荐 |
J-Link EDU Mini | ✔️ 正式支持 | 最便宜的选择,非商用场景可用 |
J-Link BASE / PLUS | ✔️ 正式支持 | 商用可用,稳定推荐 |
J-Link ULTRA+ / PRO | ✔️ 正式支持 | 高速下载/调试,适合复杂项目 |
J-Link WiFi / Ethernet | ✔️ 正式支持 | 网络调试版本 |
J-Link OB-RA4M2 | ✔️ 正式支持 | 新一代板载调试器 (Renesas RA4M2, M33 内核),已用于 nRF54L15 DK |
nRF54L15 DK 板载调试器 | ✔️ 正式支持 | 板载 J-Link OB 已更新为 RA4M2 方案,原生支持 nRF54 |
拟升级J-Link测试,待更新