This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52832 custom board programming

I tried some steps and falling back to support. I received my custom nRF52832 board and wanted to kickoff programming the board to meet my requirements. I used nRF52840 DK to connect DebugIn port to my custom board and started nRF connect software. I can understand that the software wanted to communicate with my target nRF52832 board, but getting response as unknown. The most probable reason for this is lack of bootloader on custom board. 

First of all, I wanted to know the steps the programming the bootloader on nRF52832 custom board. I tried to give the path from following SDk: C:\NordicSDK\nRF5_SDK_15.2.0_9412b96\components\softdevice\mbr\nrf52832\hex

However, it is not getting programmed as expected. Full log as shows below:

22:22:49.442	. Debug_Probe-683137154_updateDeviceInfo:	code_ram_present = true
22:22:49.442	. Debug_Probe-683137154_updateDeviceInfo:	code_ram_address = 8388608
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	data_ram_address = 536870912
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	ram_size = 24576
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	qspi_present = false
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	xip_address = 0
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	xip_size = 0
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	qspi_long_frame_support = false
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	pin_reset_pin = 21
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	pin_reset_enable_supported = true
22:22:49.443	. Debug_Probe-683137154_updateDeviceInfo:	=============================
22:22:49.443	HighLevel_programDebug_Probe-683137154_getReadbackProtectionStatus. nRF52_readback_status. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0174ms total) . . nRF52_readback_status. . . nRF52_is_ctrl_ap_available. . . . nRF52_read_access_port_register. . . . . nRF52_is_debug_and_system_regions_powered. . . . . . nRF52_read_debug_port_register. . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0174ms total) . . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0174ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0). . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0001ms, 0175ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x02880000. . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0175ms total) . . . . nRF52_read_access_port_register. . . . . nRF52_is_debug_and_system_regions_powered. . . . . . nRF52_read_debug_port_register. . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0175ms total) . . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0001ms, 0176ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0). . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0176ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x02880000. . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0176ms total) . . . . nRF52_read_access_port_register. . . . . nRF52_is_debug_and_system_regions_powered. . . . . . nRF52_read_debug_port_register. . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0001ms, 0177ms total) . . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0177ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0). . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0177ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x02880000. . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0177ms total) . . . . nRF52_read_access_port_register. . . . . nRF52_is_debug_and_system_regions_powered. . . . . . nRF52_read_debug_port_register. . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0001ms, 0178ms total) . . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0178ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x010000F0). . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0178ms total) . . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x02880000. . . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . . nRF52_read_access_port_register:	JLink INFO	(0001ms, 0179ms total) . . . nRF52_read_access_port_register. . . . nRF52_is_debug_and_system_regions_powered. . . . . nRF52_read_debug_port_register. . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0179ms total) . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0179ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000). . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0001ms, 0180ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x00000001. . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0180ms total) . . . nRF52_read_access_port_register. . . . nRF52_is_debug_and_system_regions_powered. . . . . nRF52_read_debug_port_register. . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0180ms total) . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0180ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000). . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0181ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x00000001. . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0181ms total) . . . nRF52_read_access_port_register. . . . nRF52_is_debug_and_system_regions_powered. . . . . nRF52_read_debug_port_register. . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0001ms, 0182ms total) . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0182ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000). . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0182ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x00000001. . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0001ms, 0183ms total) . . . nRF52_read_access_port_register. . . . nRF52_is_debug_and_system_regions_powered. . . . . nRF52_read_debug_port_register. . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000). . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0000ms, 0183ms total) . . . . . nRF52_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x01). . . . . nRF52_read_debug_port_register:	JLink INFO	-- Value=0xF0000040. . . . . nRF52_read_debug_port_register:	JLink INFO	returns 0. . . . . nRF52_read_debug_port_register:	JLink INFO	(0001ms, 0184ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x01000000). . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0184ms total) . . . nRF52_read_access_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(AP reg 0x03). . . nRF52_read_access_port_register:	JLink INFO	-- Value=0x00000001. . . nRF52_read_access_port_register:	JLink INFO	returns 0. . . nRF52_read_access_port_register:	JLink INFO	(0000ms, 0184ms total) . . nRF52_readback_status:	Protection status read as NONE
22:22:49.443	Debug_Probe-683137154_programDebug_Probe-683137154_program:	PROGRAM OPTIONS:
22:22:49.443	Debug_Probe-683137154_program:	=============================
22:22:49.443	Debug_Probe-683137154_program:	verify = 1
22:22:49.443	Debug_Probe-683137154_program:	chip_erase_mode = 2
22:22:49.443	Debug_Probe-683137154_program:	qspi_erase_mode = 0
22:22:49.443	Debug_Probe-683137154_program:	reset = 1
22:22:49.443	Debug_Probe-683137154_program:	=============================
22:22:49.443	. nRF52_disable_bprot. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0184ms total) . . nRF52_is_connected_to_device. . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0184ms total) . . nRF52_halt. . nRF52_halt:	JLink INFO	JLINK_Halt(). . nRF52_halt:	JLink INFO	returns 0x00. . nRF52_halt:	JLink INFO	(0000ms, 0184ms total) . . nRF52_read_device_version. . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0184ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000130, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000130). . . nRF52_read_u32:	JLink INFO	- Data: 0E 00 00 00. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0001ms, 0185ms total) . . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0185ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000134, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000134). . . nRF52_read_u32:	JLink INFO	- Data: 06 00 00 00. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0000ms, 0185ms total) . . . nRF52_decode_device_version. . . . nRF52_read_u32. . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . nRF52_read_u32:	JLink INFO	(0000ms, 0186ms total) . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000110, 0x0001 Items, ...). . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000110). . . . nRF52_read_u32:	JLink INFO	- Data: 00 06 00 00. . . . nRF52_read_u32:	JLink INFO	returns 1. . . . nRF52_read_u32:	JLink INFO	(0000ms, 0186ms total) . . nRF52_write_u32. . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x40000608, 0x00000001). . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x40000608). . nRF52_write_u32:	JLink INFO	returns 0. . nRF52_write_u32:	JLink INFO	(0001ms, 0187ms total) . . nRF52_sys_reset. . nRF52_sys_reset:	JLink INFO	JLINK_SetResetType(JLINKARM_CM3_RESET_TYPE_CORE_AND_PERIPHERALS). . nRF52_sys_reset:	JLink INFO	returns JLINKARM_CM3_RESET_TYPE_NORMAL. . nRF52_sys_reset:	JLink INFO	(0000ms, 0187ms total) . . nRF52_sys_reset:	JLink INFO	JLINK_Reset(). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	Reset: Halt core after reset via DEMCR.VC_CORERESET.. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	Reset: Reset device via AIRCR.SYSRESETREQ.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000ED0C). . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE0002000). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE0001000). . nRF52_sys_reset:	JLink INFO	(0071ms, 0258ms total) Debug_Probe-683137154_program:	Allocate program buffers.
22:22:49.443	Debug_Probe-683137154_program:	Erase device.
22:22:49.444	. Debug_Probe-683137154_erase. . Debug_Probe-683137154_eraseSectors. . . nRF52_read_region_0_size_and_source. . . nRF52_erase_page. . . . nRF52_is_connected_to_emu. . . . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . . . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . . . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0258ms total) . . . . nRF52_is_connected_to_device. . . . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . . . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . . . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0258ms total) . . . . nRF52_halt. . . . nRF52_halt:	JLink INFO	JLINK_Halt(). . . . nRF52_halt:	JLink INFO	returns 0x00. . . . nRF52_halt:	JLink INFO	(0000ms, 0258ms total) . . . . nRF52_nvmc_config_control. . . . . nRF52_write_u32. . . . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x4001E504, 0x00000002). . . . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x4001E504). . . . . nRF52_write_u32:	JLink INFO	returns 0. . . . . nRF52_write_u32:	JLink INFO	(0001ms, 0259ms total) . . . . nRF52_nvmc_wait_for_ready. . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0259ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 01 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0259ms total) . . . . nRF52_write_u32. . . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x4001E508, 0x00000000). . . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x4001E508). . . . nRF52_write_u32:	JLink INFO	returns 0. . . . nRF52_write_u32:	JLink INFO	(0000ms, 0260ms total) . . . . nRF52_nvmc_wait_for_ready. . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0260ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 00 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0261ms total) . . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0261ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 00 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0262ms total) . . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0262ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 01 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0263ms total) . . . . nRF52_nvmc_config_control. . . . . nRF52_write_u32. . . . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x4001E504, 0x00000000). . . . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x4001E504). . . . . nRF52_write_u32:	JLink INFO	returns 0. . . . . nRF52_write_u32:	JLink INFO	(0000ms, 0263ms total) . . . . nRF52_nvmc_wait_for_ready. . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0263ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 01 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0264ms total) . . . . nRF52_read_u32. . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . nRF52_read_u32:	JLink INFO	(0000ms, 0264ms total) . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000FFC, 0x0001 Items, ...). . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000FFC). . . . nRF52_read_u32:	JLink INFO	returns -1. . . . nRF52_read_u32:	JLink INFO	(0002ms, 0266ms total) . . . . nRF52_read_u32:	JLinkARM.dll ReadMemU32 returned error -1.
22:22:49.444	. . Debug_Probe-683137154_eraseSectors:	Failed while erasing page at 0.
22:22:49.444	. Debug_Probe-683137154_erase:	Error while erasing chip.
22:22:49.444	Debug_Probe-683137154_program:	ERROR: Failed while erasing device!
22:22:49.444	HighLevel_program:	Failed programming the device.
22:22:49.444	HighLevel_resetDebug_Probe-683137154_resetDebug_Probe-683137154_reset:	Perform system reset.
22:22:49.444	. nRF52_sys_reset. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0266ms total) . . nRF52_is_connected_to_device. . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0266ms total) . . nRF52_halt. . nRF52_halt:	JLink INFO	JLINK_Halt(). . nRF52_halt:	JLink INFO	returns 0x00. . nRF52_halt:	JLink INFO	(0000ms, 0266ms total) . . nRF52_sys_reset. . nRF52_sys_reset:	JLink INFO	JLINK_SetResetType(JLINKARM_CM3_RESET_TYPE_CORE_AND_PERIPHERALS). . nRF52_sys_reset:	JLink INFO	returns JLINKARM_CM3_RESET_TYPE_CORE_AND_PERIPHERALS. . nRF52_sys_reset:	JLink INFO	(0000ms, 0266ms total) . . nRF52_sys_reset:	JLink INFO	JLINK_Reset(). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	Reset: Halt core after reset via DEMCR.VC_CORERESET.. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	Reset: Reset device via AIRCR.SYSRESETREQ.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000ED0C). . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	Reset: SYSRESETREQ has confused core.. . nRF52_sys_reset:	JLink INFO	>0x10B TIF>. . nRF52_sys_reset:	JLink INFO	Found SW-DP with ID 0x2BA01477. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	AP map detection skipped. Manually configured AP map found.. . nRF52_sys_reset:	JLink INFO	AP[0]: AHB-AP (IDR: Not set). . nRF52_sys_reset:	JLink INFO	>0x42 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x42 TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	AP[0]: Core found. . nRF52_sys_reset:	JLink INFO	AP[0]: AHB-AP ROM base: 0xE00FF000. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	CPUID register: 0x410FC241. Implementer code: 0x41 (ARM). . nRF52_sys_reset:	JLink INFO	Found Cortex-M4 r0p1, Little endian.. . nRF52_sys_reset:	JLink INFO	Reset: Using fallback: VECTRESET.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	Reset: Halt core after reset via DEMCR.VC_CORERESET.. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	Reset: Reset device via AIRCR.VECTRESET.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000ED0C). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE0002000). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE0001000). . nRF52_sys_reset:	JLink INFO	(0203ms, 0469ms total) . nRF52_go. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0469ms total) . . nRF52_is_connected_to_device. . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0469ms total) . . nRF52_is_halted. . nRF52_is_halted:	JLink INFO	JLINK_IsHalted(). . nRF52_is_halted:	JLink INFO	returns TRUE. . nRF52_is_halted:	JLink INFO	(0000ms, 0469ms total) . . nRF52_go. . nRF52_go:	JLink INFO	JLINK_Go(). . nRF52_go:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE0001000). . nRF52_go:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE0001004). . nRF52_go:	JLink INFO	(0002ms, 0471ms total) HighLevel_probe_uninitHighLevel_probe_uninit:	Deleting probe at location 658E6080
22:22:49.445	:	Uninitializing probe with serial number: 683137154
22:22:49.445	. nRF52_close_dll. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0471ms total) . . nRF52_disconnect_from_emu. . . nRF52_is_connected_to_device. . . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . . nRF52_is_connected_to_device:	JLink INFO	(0001ms, 0472ms total) . . . nRF52_write_u32. . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0xE000EDFC, 0x00000000). . . nRF52_write_u32:	JLink INFO	-- CPU is running. . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . . nRF52_write_u32:	JLink INFO	returns 0. . . nRF52_write_u32:	JLink INFO	(0000ms, 0472ms total) . . nRF52_disconnect_from_emu:	JLink INFO	JLINK_Close(). . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x35 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. nRF52_close_dll:	Freeing Library.
22:22:49.445	:	Freeing library "nrfjprogdll\\highlevel\\debug\\683137154\\s5rg.z".
22:22:49.445	:	Freeing library "C:\\Users\\prasa\\AppData\\Local\\Temp\\nrfjprogdll\\highlevel\\debug\\683137154\\s5rg.y".
22:22:49.445	HighLevel_probe_uninit:	Done.
22:22:49.445	HighLevel_dll_closeHighLevel_dll_close:	closing and freeing sub dlls.
22:22:49.445	. nRFXX_close_dll. . nRFXX_is_connected_to_emu. nRFXX_close_dll:	Freeing Library.
22:22:49.445	HighLevel_dll_close:	Freeing Library.
22:22:49.446	

 I have Thingy52 with me which is based on nRF52832. I have an understanding that reprogramming process for thingy52 will for for custom board programming, but I am facing similar issue while trying to update the firmware.

22:42:35.268	. nRF52_disable_bprot. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0203ms total) . . nRF52_is_connected_to_device. . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0203ms total) . . nRF52_halt. . nRF52_halt:	JLink INFO	JLINK_Halt(). . nRF52_halt:	JLink INFO	returns 0x00. . nRF52_halt:	JLink INFO	(0000ms, 0203ms total) . . nRF52_read_device_version. . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0204ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000130, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000130). . . nRF52_read_u32:	JLink INFO	- Data: FF FF FF FF. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0000ms, 0204ms total) . . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0204ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000134, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000134). . . nRF52_read_u32:	JLink INFO	- Data: FF FF FF FF. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0001ms, 0205ms total) . . . nRF52_decode_device_version. . . . nRF52_read_u32. . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . nRF52_read_u32:	JLink INFO	(0000ms, 0205ms total) . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000110, 0x0001 Items, ...). . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000110). . . . nRF52_read_u32:	JLink INFO	- Data: 00 06 00 00. . . . nRF52_read_u32:	JLink INFO	returns 1. . . . nRF52_read_u32:	JLink INFO	(0001ms, 0206ms total) . . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0206ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0xF0000FE0, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xF0000FE0). . . nRF52_read_u32:	JLink INFO	- Data: 0E 00 00 00. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0001ms, 0207ms total) . . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0207ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0xF0000FE4, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xF0000FE4). . . nRF52_read_u32:	JLink INFO	- Data: 40 00 00 00. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0001ms, 0208ms total) . . . nRF52_read_u32. . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . nRF52_read_u32:	JLink INFO	(0000ms, 0208ms total) . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0xF0000FE8, 0x0001 Items, ...). . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xF0000FE8). . . nRF52_read_u32:	JLink INFO	- Data: 7C 00 00 00. . . nRF52_read_u32:	JLink INFO	returns 1. . . nRF52_read_u32:	JLink INFO	(0001ms, 0209ms total) . . . nRF52_decode_device_version. . . . nRF52_read_u32. . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . nRF52_read_u32:	JLink INFO	(0000ms, 0209ms total) . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000110, 0x0001 Items, ...). . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000110). . . . nRF52_read_u32:	JLink INFO	- Data: 00 06 00 00. . . . nRF52_read_u32:	JLink INFO	returns 1. . . . nRF52_read_u32:	JLink INFO	(0001ms, 0210ms total) . . nRF52_write_u32. . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x40000608, 0x00000001). . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x40000608). . nRF52_write_u32:	JLink INFO	returns 0. . nRF52_write_u32:	JLink INFO	(0001ms, 0211ms total) . . nRF52_sys_reset. . nRF52_sys_reset:	JLink INFO	JLINK_SetResetType(JLINKARM_CM3_RESET_TYPE_CORE_AND_PERIPHERALS). . nRF52_sys_reset:	JLink INFO	returns JLINKARM_CM3_RESET_TYPE_NORMAL. . nRF52_sys_reset:	JLink INFO	(0000ms, 0211ms total) . . nRF52_sys_reset:	JLink INFO	JLINK_Reset(). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	Reset: Halt core after reset via DEMCR.VC_CORERESET.. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	Reset: Reset device via AIRCR.SYSRESETREQ.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000ED0C). . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE0002000). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE0001000). . nRF52_sys_reset:	JLink INFO	(0073ms, 0284ms total) Debug_Probe-683137154_program:	Allocate program buffers.
22:42:35.268	Debug_Probe-683137154_program:	Erase device.
22:42:35.268	. Debug_Probe-683137154_erase. . Debug_Probe-683137154_eraseSectors. . . nRF52_read_region_0_size_and_source. . . nRF52_erase_page. . . . nRF52_is_connected_to_emu. . . . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . . . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . . . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0284ms total) . . . . nRF52_is_connected_to_device. . . . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . . . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . . . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0284ms total) . . . . nRF52_halt. . . . nRF52_halt:	JLink INFO	JLINK_Halt(). . . . nRF52_halt:	JLink INFO	returns 0x00. . . . nRF52_halt:	JLink INFO	(0000ms, 0284ms total) . . . . nRF52_nvmc_config_control. . . . . nRF52_write_u32. . . . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x4001E504, 0x00000002). . . . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x4001E504). . . . . nRF52_write_u32:	JLink INFO	returns 0. . . . . nRF52_write_u32:	JLink INFO	(0001ms, 0285ms total) . . . . nRF52_nvmc_wait_for_ready. . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0285ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 01 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0286ms total) . . . . nRF52_write_u32. . . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x4001E508, 0x00000000). . . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x4001E508). . . . nRF52_write_u32:	JLink INFO	returns 0. . . . nRF52_write_u32:	JLink INFO	(0001ms, 0287ms total) . . . . nRF52_nvmc_wait_for_ready. . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0287ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 00 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0288ms total) . . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0288ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 00 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0288ms total) . . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0289ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 01 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0289ms total) . . . . nRF52_nvmc_config_control. . . . . nRF52_write_u32. . . . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0x4001E504, 0x00000000). . . . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0x4001E504). . . . . nRF52_write_u32:	JLink INFO	returns 0. . . . . nRF52_write_u32:	JLink INFO	(0001ms, 0290ms total) . . . . nRF52_nvmc_wait_for_ready. . . . . nRF52_read_u32. . . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . . nRF52_read_u32:	JLink INFO	(0000ms, 0290ms total) . . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x4001E400, 0x0001 Items, ...). . . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x4001E400). . . . . nRF52_read_u32:	JLink INFO	- Data: 01 00 00 00. . . . . nRF52_read_u32:	JLink INFO	returns 1. . . . . nRF52_read_u32:	JLink INFO	(0001ms, 0291ms total) . . . . nRF52_read_u32. . . . nRF52_read_u32:	JLink INFO	JLINK_ExecCommand("InvalidateCache", ...). . . . . nRF52_read_u32:	JLink INFO	returns 0x00. . . . nRF52_read_u32:	JLink INFO	(0000ms, 0291ms total) . . . . nRF52_read_u32:	JLink INFO	JLINK_ReadMemU32(0x10000FFC, 0x0001 Items, ...). . . . nRF52_read_u32:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0x10000FFC). . . . nRF52_read_u32:	JLink INFO	returns -1. . . . nRF52_read_u32:	JLink INFO	(0002ms, 0293ms total) . . . . nRF52_read_u32:	JLinkARM.dll ReadMemU32 returned error -1.
22:42:35.269	. . Debug_Probe-683137154_eraseSectors:	Failed while erasing page at 0.
22:42:35.269	. Debug_Probe-683137154_erase:	Error while erasing chip.
22:42:35.269	Debug_Probe-683137154_program:	ERROR: Failed while erasing device!
22:42:35.269	HighLevel_program:	Failed programming the device.
22:42:35.269	HighLevel_resetDebug_Probe-683137154_resetDebug_Probe-683137154_reset:	Perform system reset.
22:42:35.270	. nRF52_sys_reset. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0293ms total) . . nRF52_is_connected_to_device. . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0293ms total) . . nRF52_halt. . nRF52_halt:	JLink INFO	JLINK_Halt(). . nRF52_halt:	JLink INFO	returns 0x00. . nRF52_halt:	JLink INFO	(0000ms, 0293ms total) . . nRF52_sys_reset. . nRF52_sys_reset:	JLink INFO	JLINK_SetResetType(JLINKARM_CM3_RESET_TYPE_CORE_AND_PERIPHERALS). . nRF52_sys_reset:	JLink INFO	returns JLINKARM_CM3_RESET_TYPE_CORE_AND_PERIPHERALS. . nRF52_sys_reset:	JLink INFO	(0000ms, 0293ms total) . . nRF52_sys_reset:	JLink INFO	JLINK_Reset(). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	Reset: Halt core after reset via DEMCR.VC_CORERESET.. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	Reset: Reset device via AIRCR.SYSRESETREQ.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000ED0C). . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	Reset: SYSRESETREQ has confused core.. . nRF52_sys_reset:	JLink INFO	>0x10B TIF>. . nRF52_sys_reset:	JLink INFO	Found SW-DP with ID 0x2BA01477. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	AP map detection skipped. Manually configured AP map found.. . nRF52_sys_reset:	JLink INFO	AP[0]: AHB-AP (IDR: Not set). . nRF52_sys_reset:	JLink INFO	>0x42 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x42 TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	AP[0]: Core found. . nRF52_sys_reset:	JLink INFO	AP[0]: AHB-AP ROM base: 0xE00FF000. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x0D TIF>. . nRF52_sys_reset:	JLink INFO	>0x28 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	CPUID register: 0x410FC241. Implementer code: 0x41 (ARM). . nRF52_sys_reset:	JLink INFO	Found Cortex-M4 r0p1, Little endian.. . nRF52_sys_reset:	JLink INFO	Reset: Using fallback: VECTRESET.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	Reset: Halt core after reset via DEMCR.VC_CORERESET.. . nRF52_sys_reset:	JLink INFO	>0x35 TIF>. . nRF52_sys_reset:	JLink INFO	Reset: Reset device via AIRCR.VECTRESET.. . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000ED0C). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDF0). . nRF52_sys_reset:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE0002000). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE000EDFC). . nRF52_sys_reset:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE0001000). . nRF52_sys_reset:	JLink INFO	(0205ms, 0498ms total) . nRF52_go. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0498ms total) . . nRF52_is_connected_to_device. . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0498ms total) . . nRF52_is_halted. . nRF52_is_halted:	JLink INFO	JLINK_IsHalted(). . nRF52_is_halted:	JLink INFO	returns TRUE. . nRF52_is_halted:	JLink INFO	(0000ms, 0498ms total) . . nRF52_go. . nRF52_go:	JLink INFO	JLINK_Go(). . nRF52_go:	JLink INFO	-- CPU_ReadMem(4 bytes @ 0xE0001000). . nRF52_go:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE0001004). . nRF52_go:	JLink INFO	(0003ms, 0501ms total) HighLevel_probe_uninitHighLevel_probe_uninit:	Deleting probe at location 658E6080
22:42:35.270	:	Uninitializing probe with serial number: 683137154
22:42:35.270	. nRF52_close_dll. . nRF52_is_connected_to_emu. . nRF52_is_connected_to_emu:	JLink INFO	JLINK_IsOpen(). . nRF52_is_connected_to_emu:	JLink INFO	returns 0x01. . nRF52_is_connected_to_emu:	JLink INFO	(0000ms, 0501ms total) . . nRF52_disconnect_from_emu. . . nRF52_is_connected_to_device. . . nRF52_is_connected_to_device:	JLink INFO	JLINK_IsConnected(). . . nRF52_is_connected_to_device:	JLink INFO	returns TRUE. . . nRF52_is_connected_to_device:	JLink INFO	(0000ms, 0501ms total) . . . nRF52_write_u32. . . nRF52_write_u32:	JLink INFO	JLINK_WriteU32(0xE000EDFC, 0x00000000). . . nRF52_write_u32:	JLink INFO	-- CPU is running. . . nRF52_write_u32:	JLink INFO	-- CPU_WriteMem(4 bytes @ 0xE000EDFC). . . nRF52_write_u32:	JLink INFO	returns 0. . . nRF52_write_u32:	JLink INFO	(0001ms, 0502ms total) . . nRF52_disconnect_from_emu:	JLink INFO	JLINK_Close(). . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x35 TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x0D TIF>. . nRF52_disconnect_from_emu:	JLink INFO	>0x28 TIF>. nRF52_close_dll:	Freeing Library.
22:42:35.270	:	Freeing library "nrfjprogdll\\highlevel\\debug\\683137154\\sbe0.1c".
22:42:35.270	:	Freeing library "C:\\Users\\prasa\\AppData\\Local\\Temp\\nrfjprogdll\\highlevel\\debug\\683137154\\sbe0.1b".
22:42:35.270	HighLevel_probe_uninit:	Done.
22:42:35.270	HighLevel_dll_closeHighLevel_dll_close:	closing and freeing sub dlls.
22:42:35.270	. nRFXX_close_dll. . nRFXX_is_connected_to_emu. nRFXX_close_dll:	Freeing Library.
22:42:35.270	HighLevel_dll_close:	Freeing Library.
22:42:35.270	

I am comfortable with Segger IDE for development. Please help me with the steps.

Parents Reply
  • I tried using nrfjprog command and I can see that chip got fully erased. However, my question is how to setup environment for custom nrf52 board. I was fully comfortable working with nRF52840 and most of the sample codes in SDK are available for these boards PCA10056 & PCA10059.

    As per my understanding, nRF52832 has PCA20020 but nowhere SDK having these configuration in examples. How to compile code for my custom board and use segger studio for downloading and debugging the program?

Children
  • nRF52832 has PCA20020 but nowhere SDK having these configuration in examples.

    PCA20020, aka Thingy:52, has it's own SDK, found here.

    As per my understanding, nRF52832 has PCA20020 but nowhere SDK having these configuration in examples. How to compile code for my custom board and use segger studio for downloading and debugging the program?

    If you have custom board with nRF52832, use the pca10040 project, but modify and create your own board file. See this link.  Simply copy the existing board file (e.g. pca10040.h), rename it, and modify it after your requirements (change pin configuration, etc). Then modify boards.h to include and support your new file, e.g.

    ..
    #elif defined(BOARD_CUSTOM)
      #include "custom_board.h"
    ..

    Then remove BOARD_PCA10040 preprocessor symbol/define, and add your own(BOARD_CUSTOM).

  • Thanks, I just made changes in PCA10040 and used nRF52DK for uploading a blink program. It started working as expected.

  • Though, I am able to fully program my custom board using nRF52 DK, there is one unusual thing happening. nRF52 DK is also getting programmed same as my custom DK. 

    For example, I run BLE_APP_BLINKY on board and then nRF Connect mobile app shows two different advertisers, one from my custom board and another from nRF DK. I don't think it is usual behavior as I program other devices such as nRF52 dongle using DK and it perfectly dumps the program in dongle only. Please let me know if I am missing something in segger setup.

Related