nrf52840 解锁
nrf52840 解锁
一般遇到下面这种情况,都是锁住了
Target connection not established yet but required for command.
Device "NRF52840_XXAA" selected.Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Could not power-up debug power domain.
Scanning AP map to find all available APs
AP[0]: Stopped AP scan as end of AP map has been reached
Iterating through AP map to find AHB-AP to use****** Error: Could not find core in Coresight setup
参考
https://devzone.nordi
csemi.com/f/nordic-q-a/44544/solved-could-not-power-up-debug-power-domain—what-causes-this
解锁条件
- 官网下载安装
nrf-command-line-tools_10_1_1_installer_64.exe
- jlink一个,可以使用stm8f103c8t6 烧录jlink ob,添加序列号,JLinkLicenseManager.exe注册。
- 并联两个470电阻到reset pin到vcc,提供上拉电流,后续解锁需要用到rest pin,注意检查rest pin 电压。
- 连接jlink swd io, rest io 到 nrf52840
- cmd 命令行运行 recover_loop_script.bat
:loop
nrfjprog --recover -f nrf52
goto loop
遇到问题 可以使用
nrfjprog --recover -f nrf52 --log
看log解决,
排查方向,jlink 接线问题,jlink 注册号问题,rest pin 问题
解锁后
正常的是
J-Link>connect
Device "NRF52840_XXAA" selected.Connecting to target via SWD
Found SW-DP with ID 0x2BA01477
Found SW-DP with ID 0x2BA01477
Scanning AP map to find all available APs
AP[2]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x24770011)
AP[1]: JTAG-AP (IDR: 0x02880000)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
Found Cortex-M4 r0p1, Little endian.
FPUnit: 6 code (BP) slots and 2 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
Cortex-M4 identified.