I'm working on a custom board with NRF52805.
I have no problem when downloading flash from C segger project.
Connecting ‘J-Link’ using ‘USB’
Connecting to target using SWD
Loaded C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.20a/bin/JLink_x64.dll
Firmware Version: J-Link V11 compiled Nov 12 2020 10:07:08
DLL Version: 6.88a
Hardware Version: V11.00
Target Voltage: 3.322
Device "NRF52805_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: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
Loading target script file nRF_Target.js
Preparing target for download
Executing Reset script Reset();
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘Executable_1.elf’ to J-Link
Programming 3.2 KB of addresses 00000000 — 00000d29
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Download successful
When I try to download nordic project (zephyr) there are "Failed to write memory" errors from jlink.
Connecting ‘J-Link’ using ‘USB’
Connecting to target using SWD
Loaded C:/Users/rpier/ncs/v1.4.99-dev1/toolchain/segger_embedded_studio/bin/JLink_x64.dll
Firmware Version: J-Link V11 compiled Nov 12 2020 10:07:08
DLL Version: 6.88b
Hardware Version: V11.00
Target Voltage: 3.325
Device "CORTEX-M4" selected.
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: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
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 80.6 KB of addresses 00000000 — 0001428f
Download failed
Failed to write memory.
Programming 1.1 KB of addresses 00014290 — 0001474b
Failed to write memory.
I have no problem when downloading flash from C segger project.
Connecting ‘J-Link’ using ‘USB’
Connecting to target using SWD
Loaded C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 5.20a/bin/JLink_x64.dll
Firmware Version: J-Link V11 compiled Nov 12 2020 10:07:08
DLL Version: 6.88a
Hardware Version: V11.00
Target Voltage: 3.322
Device "NRF52805_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: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
Loading target script file nRF_Target.js
Preparing target for download
Executing Reset script Reset();
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.
Downloading ‘Executable_1.elf’ to J-Link
Programming 3.2 KB of addresses 00000000 — 00000d29
J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match
Download successful
When I try to download nordic project (zephyr) there are "Failed to write memory" errors from jlink.
Connecting ‘J-Link’ using ‘USB’
Connecting to target using SWD
Loaded C:/Users/rpier/ncs/v1.4.99-dev1/toolchain/segger_embedded_studio/bin/JLink_x64.dll
Firmware Version: J-Link V11 compiled Nov 12 2020 10:07:08
DLL Version: 6.88b
Hardware Version: V11.00
Target Voltage: 3.325
Device "CORTEX-M4" selected.
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: 000BB000 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
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 80.6 KB of addresses 00000000 — 0001428f
Download failed
Failed to write memory.
Programming 1.1 KB of addresses 00014290 — 0001474b
Failed to write memory.