I loaded up the zephyr sample blinky example, compiled ok, and went to download to the nrf5340-pdk...
I got the following error dialog plus some more misc. errors (see output attachment). If I compile the same zephyr blinky example for the nrf52840-dk, it downloads fine, with no errors -- same pc and toolchain install. I have included outputs from both the nrf5340-pdk and nrf52840-dk. I am using ncs v1.2.0
I emailed Segger about this but they said JLINK-OB support would have to come from Nordic in this case.
Thanks for any help on this. The code does seem to download, but the error dialog is there each time I hit download. I did try power cycling everything and observed the same results.
Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/sandbox/arm_segger_embedded_studio_v442a_win_x64_nordic/bin/JLink_x64.dll Firmware Version: J-Link OB-K22-NordicSemi compiled Jan 21 2020 17:33:01 DLL Version: 6.62a Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF5340_XXAA_APP" selected. ConfigTargetSettings() start ConfigTargetSettings() end Found SW-DP with ID 0x6BA02477 DPIDR: 0x6BA02477 AP map detection skipped. Manually configured AP map found. AP[0]: AHB-AP (IDR: Not set) AP[1]: AHB-AP (IDR: Not set) AP[2]: MEM-AP (IDR: Not set) AP[3]: MEM-AP (IDR: Not set) AP[0]: Core found AP[0]: AHB-AP ROM base: 0xE00FF000 CPUID register: 0x410FD214. Implementer code: 0x41 (ARM) Found Cortex-M33 r0p4, Little endian. FPUnit: 8 code (BP) slots and 0 literal slots Security extension: implemented Secure debug: enabled CoreSight components: ROMTbl[0] @ E00FF000 ROMTbl[0][0]: E000E000, CID: B105900D, PID: 000BBD21 Cortex-M33 ROMTbl[0][1]: E0001000, CID: B105900D, PID: 000BBD21 DWT ROMTbl[0][2]: E0002000, CID: B105900D, PID: 000BBD21 FPB ROMTbl[0][3]: E0000000, CID: B105900D, PID: 000BBD21 ITM ROMTbl[0][5]: E0041000, CID: B105900D, PID: 002BBD21 ETM ROMTbl[0][6]: E0042000, CID: B105900D, PID: 000BBD21 CTI Identifying Device ID: 0x6BA02477 Preparing target for download Executing Reset script TargetInterface.resetAndStop() Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ. Reading register 29 failed: Unspecified error Reading register 30 failed: Unspecified error Reading register 31 failed: Unspecified error Downloading ‘zephyr.elf’ to J-Link Programming 12.0 KB of addresses 00000000 — 00003013 Programming 0.1 KB of addresses 00003014 — 000030bf J-Link: Flash download: Bank 1 @ 0x00000000: 1 range affected (4096 bytes) J-Link: Flash download: Total time needed: 0.193s (Prepare: 0.036s, Compare: 0.012s, Erase: 0.088s, Program: 0.045s, Verify: 0.001s, Restore: 0.008s) Download successful
Connecting ‘J-Link’ using ‘USB’ Connecting to target using SWD Loaded C:/sandbox/arm_segger_embedded_studio_v442a_win_x64_nordic/bin/JLink_x64.dll Firmware Version: J-Link OB-SAM3U128-V2-NordicSemi compiled Jan 21 2020 17:30:48 DLL Version: 6.62a Hardware Version: V1.00 Target Voltage: 3.300 Device "NRF52840_XXAA" selected. InitTarget() start InitTarget() end Found SW-DP with ID 0x2BA01477 DPIDR: 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 Preparing target for download Executing Reset script TargetInterface.resetAndStop() Reset: Halt core after reset via DEMCR.VC_CORERESET. Reset: Reset device via AIRCR.SYSRESETREQ. Downloading ‘zephyr.elf’ to J-Link Programming 14.1 KB of addresses 00000000 — 0000386f Programming 0.3 KB of addresses 00003870 — 000039f3 J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (4096 bytes) J-Link: Flash download: Total time needed: 0.543s (Prepare: 0.353s, Compare: 0.016s, Erase: 0.085s, Program: 0.077s, Verify: 0.000s, Restore: 0.009s) Download successful