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

JFlash Error Flashing New Chip

I am trying to flash my custom board that uses the Raytac nRF52840 via SWD.  I am trying to flash a custom bootloader onto the chip; however, JFlash is giving me an error.  I'm running Windows 10 and I'm using a SEGGER EDU (https://www.adafruit.com/product/3571). If anyone could help me figure out what's going that would be great!

I've attached my log file from running nrfjprog via command line.  Thank you!

2019-Jun-11 15:44:55  --------------------------------------------------------------------------------
2019-Jun-11 15:44:55  nrfjprog -f nrf52 --eraseall --log
2019-Jun-11 15:44:55  nrfjprog version 9.8.1
2019-Jun-11 15:44:55  --------------------------------------------------------------------------------
2019-Jun-11 15:44:55  nRF_open_dll
2019-Jun-11 15:44:55  . nRF52_open_dll
2019-Jun-11 15:44:55  . . nRF52_dll_version
2019-Jun-11 15:44:55  nRF_enum_emu_snr
2019-Jun-11 15:44:55  . nRF52_enum_emu_snr
2019-Jun-11 15:44:55  . . nRF52_enum_emu_snr
2019-Jun-11 15:44:55  nRF_enum_emu_snr
2019-Jun-11 15:44:55  . nRF52_enum_emu_snr
2019-Jun-11 15:44:55  . . nRF52_enum_emu_snr
2019-Jun-11 15:44:55  nRF_connect_to_emu_with_snr
2019-Jun-11 15:44:55  . nRF52_connect_to_emu_with_snr
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu
2019-Jun-11 15:44:55  . . nRF52_enum_emu_snr
2019-Jun-11 15:44:55  . . nRF52_connect_to_emu_with_snr
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 Firmware: J-Link EDU Mini V1 compiled May 17 2019 09:52:16
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 Hardware: V1.00
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 S/N: 801007519
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 Feature(s): FlashBP, GDB
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 TELNET listener socket opened on port 19021
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	WEBSRV  Starting webserver
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0053ms, 0055ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	WEBSRV Webserver running on local port 19080
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0056ms, 0058ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns O.K.
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0059ms, 0061ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_GetHWStatus(...)
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x00
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0004ms, 0066ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	There is no generic nRF52 device in J-Link, so we select NRF52832_xxAA.

2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand("Device = NRF52832_xxAA", ...). 
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	XML file found at: C:\Program Files (x86)\SEGGER\JLink_V644i\JLinkDevices.xml
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0002ms, 0072ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	C:\Program Files (x86)\SEGGER\JLink_V644i\JLinkDevices.xml evaluated successfully.
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	Device "NRF52832_XXAA" selected.
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	Device "NRF52832_XXAA" selected.
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x00
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0116ms, 0186ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand("SetRestartOnClose = 0", ...). 
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x01
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0001ms, 0190ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand("DisableFlashDL", ...). 
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x00
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0002ms, 0194ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand("SetDbgPowerDownOnClose = 1", ...). 
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x01
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0001ms, 0197ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...). 
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x00
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0001ms, 0201ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_TIF_Select(JLINKARM_TIF_SWD)
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	  returns 0x00
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0004ms, 0206ms total)  
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	JLINK_SetSpeed(2000)
2019-Jun-11 15:44:55  . . . nRF52_connect_to_emu_without_snr:	JLink:	 (0001ms, 0209ms total)  
2019-Jun-11 15:44:55  nRF_read_device_version
2019-Jun-11 15:44:55  . nRF52_read_device_version
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu:	JLink:	JLINK_IsOpen()
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu:	JLink:	  returns 0x01
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu:	JLink:	 (0002ms, 0213ms total)  
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_device
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_device:	JLink:	JLINK_IsConnected()
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_device:	JLink:	  returns FALSE
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_device:	JLink:	 (0003ms, 0218ms total)  
2019-Jun-11 15:44:55  . . nRF52_readback_status
2019-Jun-11 15:44:55  . . . nRF52_is_ctrl_ap_available
2019-Jun-11 15:44:55  . . . . nRF52_read_access_port_register
2019-Jun-11 15:44:55  . . . . . nRF52_coresight_configure
2019-Jun-11 15:44:55  . . . . . nRF52_coresight_configure:	JLink:	JLINK_CORESIGHT_Configure()
2019-Jun-11 15:44:55  . . . . . nRF52_coresight_configure:	JLink:	  returns 0
2019-Jun-11 15:44:55  . . . . . nRF52_coresight_configure:	JLink:	 (0103ms, 0322ms total)  
2019-Jun-11 15:44:55  . . . . . nRF52_power_debug_and_system_regions
2019-Jun-11 15:44:55  . . . . . . nRF52_write_debug_port_register
2019-Jun-11 15:44:55  . . . . . . nRF52_write_debug_port_register:	JLink:	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
2019-Jun-11 15:44:55  . . . . . . nRF52_write_debug_port_register:	JLink:	  returns -1
2019-Jun-11 15:44:55  . . . . . . nRF52_write_debug_port_register:	JLink:	 (0004ms, 0328ms total)  
2019-Jun-11 15:44:55  . . . . . . nRF52_write_debug_port_register:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

2019-Jun-11 15:44:55  . . . . . nRF52_power_debug_and_system_regions:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.

2019-Jun-11 15:44:55  nRF_close_dll
2019-Jun-11 15:44:55  . nRF52_close_dll
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu:	JLink:	JLINK_IsOpen()
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu:	JLink:	  returns 0x01
2019-Jun-11 15:44:55  . . nRF52_is_connected_to_emu:	JLink:	 (0003ms, 0332ms total)  
2019-Jun-11 15:44:55  . . nRF52_disconnect_from_emu
2019-Jun-11 15:44:55  . . . nRF52_is_connected_to_device
2019-Jun-11 15:44:55  . . . nRF52_is_connected_to_device:	JLink:	JLINK_IsConnected()
2019-Jun-11 15:44:55  . . . nRF52_is_connected_to_device:	JLink:	  returns FALSE
2019-Jun-11 15:44:55  . . . nRF52_is_connected_to_device:	JLink:	 (0002ms, 0335ms total)  
2019-Jun-11 15:44:55  . . . nRF52_unpower_debug_and_system_regions
2019-Jun-11 15:44:55  . . nRF52_disconnect_from_emu:	JLink:	JLINK_Close()

Parents Reply Children
No Data
Related