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

burning bootloader and uploading program

Hello,

I have been trying to upload a program and continually get the error; Timed out waiting for acknowledgement from device. Failed to upgrade target. No data received on serial port.

I have tried burning Bootloader but get the same above error message. I have tried this procedure on 2 - nRF52832-DK boards, an Adafruit Bluefruit Feather nRF52832 and a personal project using an nRF52832 MDBT42Q-512KV2. I have tried with both a Mac and PC. I am using Bootloader "0.3.0 SoftDevice s132 6.1.1. Furthermore I have made attempts with J-Link for Bluefruit nRF52, Bootloader DFU for Bluefruit nRF52 using Arduino 1.8.12. I have used various versions of Adafruit nRF52 versions through Board manager. Furthermore I have tried programing using a command prompt on both the PC and Mac. I have used multiple Serial to USB cables.

That about sums it up. The only thing I can get to intermittently work is burning the bootloader to a nRF52832-DK board that will the only accept one upload of a program. The I try to upload another program I get the same above error until I burn the bootloader again. It will then accept a program but only once. How strange!!! - this process only works on one DK board.

Anything suggestions on what to do next to get things moving ahead?

I appreciate any feedback you may have.

Parents
  • I have been trying to upload a program and continually get the error; Timed out waiting for acknowledgement from device. Failed to upgrade target. No data received on serial port.

     Where do you get this error, and how do you try to upload your program? Do you use a debugger? Or BLE? Or Serial (nrfutil) or USB(nrfutil)?

    NB: We are really short staffed due to Summer Holidays in Norway. You must expect some extra delay in technical questions these days, I am afraid. I am sorry for the inconvenience.

    BR

    Edvin

  • Hi Edvin,

    I get it. Things are far from normal anywhere on the globe. In answer to your question, I have tried the following methods you have described. I ave used nrf52832-dk, JLink programmer, and USB. Have not tried serial or BLE. Last night I did have success burning to an Adafruit Feather nrf52832 using JLink to first run msddisable then burn Bootloader followed by USB uploading program. Unfortunately, I can also use this method to upload to the nrf52832-DK. Hope this gives you some insight. I know I must be close but I just can't seem to uncover the missing link. Stay well,

Reply
  • Hi Edvin,

    I get it. Things are far from normal anywhere on the globe. In answer to your question, I have tried the following methods you have described. I ave used nrf52832-dk, JLink programmer, and USB. Have not tried serial or BLE. Last night I did have success burning to an Adafruit Feather nrf52832 using JLink to first run msddisable then burn Bootloader followed by USB uploading program. Unfortunately, I can also use this method to upload to the nrf52832-DK. Hope this gives you some insight. I know I must be close but I just can't seem to uncover the missing link. Stay well,

Children
  • I have never seen an Adafruit Feather before, and I don't know how they work, just so that we are on the same page here. Does this have an on board debugger? Or how would you usually program it?

    I am still not sure if this is a question on "How do I implement my own custom bootloader?" or "How do I program my adafruit feather?".

     

    I am using Bootloader "0.3.0 SoftDevice s132 6.1.1.

     What is this?

    Is this at all related to the nRF5 SDK? Or are you using the Arduino IDE?

  • Hi Edvin,

    The Adafruit Feather Is a breakout board for the nRF52832 which is very useful for prototyping.

    http://www.adafruit.com/product/3406

    I have my own project using the Adafruit module.

    http://www.adafruit.com/product/4077

    My problem is, I can't seem to burn boot loaders or upload programs. 

    The error I get for all devices including the Nordic nRF52832-DK is "Timed out waiting for acknowledgement from device. Failed to upgrade target. No data received on serial port."

    I have check all connections to the nRF52832s which seem to be OK. I am trying to gain insight on what causes the above stated error and how to overcome it.

    I appreciate your help.

    Craig H

  • Hello Craig,

     

    Edvin said:

    I am using Bootloader "0.3.0 SoftDevice s132 6.1.1.

     What is this?

    Is this at all related to the nRF5 SDK? Or are you using the Arduino IDE?

     What is bootloader version 0.3.0? Where did you find this?

    If you have a JLink programmer, can you please try to download and install nrf command line tools, and use the command:

    nrfjprog --program bootloader.hex --verify

    What does it say then?

  • Hello Edvin,

    I am able to burn bootloader and upload Blink sketch to the Adafruit Feather nRF52832 breakout board. I am able to accomplish this using Arduino v1.8.13 IDE through the USB port.  Please see the following:

    USB.pdf

    When I try with the Jlink using a 10 pin connector, I get the following error:

    JLink.pdf

    When I run nrfjprog I get an error asking to run log.log.

    Attached is log.log

    2020-Jul-13 15:57:24  --------------------------------------------------------------------------------
    2020-Jul-13 15:57:24  nrfjprog --program bootloader.hex --verify --log 
    2020-Jul-13 15:57:24  nrfjprog version 10.9.0 
    2020-Jul-13 15:57:24  --------------------------------------------------------------------------------
    2020-Jul-13 15:57:24  nRF_logger_open
    2020-Jul-13 15:57:24  nRF_logger_open:	nRFJProg logger opened to callback at address 0X103248C80
    2020-Jul-13 15:57:24  nRF_open_dll
    2020-Jul-13 15:57:24  nRF_open_dll:	Load library at "/Applications/Nordic Semiconductor/nrfjprog/libjlinkarm_unknown_nrfjprogdll.dylib".
    
    2020-Jul-13 15:57:24  . nRFXX_logger_open
    2020-Jul-13 15:57:24  . nRFXX_logger_open:	nRFJProg logger opened to callback at address 0X1032C4310
    2020-Jul-13 15:57:24  . . Segger_logger_open
    2020-Jul-13 15:57:24  . . Segger_logger_open:	nRFJProg logger opened to callback at address 0X1032F6A20
    2020-Jul-13 15:57:24  . . Segger_open_dll
    2020-Jul-13 15:57:24  . . Segger_open_dll:	No J-Link DLL path was provided. Attempting to auto detect.
    
    2020-Jul-13 15:57:24  . . Segger_open_dll:	Load library at "/Applications/SEGGER/JLink/libjlinkarm.dylib".
    
    2020-Jul-13 15:57:24  . . . Segger_dll_version
    2020-Jul-13 15:57:24  . . Segger_set_core_data
    2020-Jul-13 15:57:24  nRF_enum_emu_snr
    2020-Jul-13 15:57:24  . nRFXX_enum_emu_snr
    2020-Jul-13 15:57:24  . . Segger_enum_emu_snr
    2020-Jul-13 15:57:24  . . . Segger_enum_emu_snr
    2020-Jul-13 15:57:24  . . . . Segger_get_num_emus
    2020-Jul-13 15:57:24  nRF_connect_to_emu_with_snr
    2020-Jul-13 15:57:24  . nRFXX_connect_to_emu_with_snr
    2020-Jul-13 15:57:24  . . Segger_connect_to_emu_with_snr
    2020-Jul-13 15:57:24  . . . Segger_is_connected_to_emu
    2020-Jul-13 15:57:24  . . . Segger_enum_emu_snr
    2020-Jul-13 15:57:24  . . . . Segger_get_num_emus
    2020-Jul-13 15:57:24  . . . Segger_connect_to_emu_with_snr
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	Segger logging enabled with callback at 0x4348408144.
    
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:011.609   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Firmware: J-Link V10 compiled Apr 23 2020 16:49:14
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:012.249   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Decompressing FW timestamp took 159 us
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:023.464   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Hardware: V10.10
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:023.920   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	S/N: 260109678
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:024.309   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	OEM: SEGGER-EDU
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:024.780   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	Feature(s): FlashBP, GDB
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:029.250   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TELNET listener socket opened on port 19021
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:029.600   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Starting webserver
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:029.729   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	WEBSRV Webserver running on local port 19080
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:029.824 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 25.816ms returns O.K.  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:030.085 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_GetHWStatus(...)  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:031.710 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 1.719ms returns 0x00  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:031.957 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.121 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.070ms returns 0x01  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.238 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("DisableFlashDL", ...).   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.376 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.061ms returns 0x00  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.504 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.643 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.059ms returns 0x00  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.742   
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetHookUnsecureDialog(...)
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.833 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.135ms returns 0  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:032.923 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:033.741 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.895ms returns 0x00  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:033.945 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	JLINK_SetSpeed(2000)  
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	TA3E3DC0 000:034.083 
    2020-Jul-13 15:57:24  . . . . Segger_connect_to_emu_without_snr:	JLink INFO	- 0.207ms  
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:034.274 
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).   
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:034.371 
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	- 0.050ms returns 0x00  
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:034.464 
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	JLINK_ExecCommand("device = Cortex-M4", ...).   
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:038.554   
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	XML file found at: /Applications/SEGGER/JLink_V680a/JLinkDevices.xml 
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:039.497   
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	/Applications/SEGGER/JLink_V680a/JLinkDevices.xml evaluated successfully. 
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:056.992   
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	Device "CORTEX-M4" selected.
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	TA3E3DC0 000:057.585 
    2020-Jul-13 15:57:24  . . . . . Segger_load_core_data:	JLink INFO	- 23.084ms returns 0x00  
    2020-Jul-13 15:57:24  nRF_read_connected_emu_snr
    2020-Jul-13 15:57:24  . nRFXX_read_connected_emu_snr
    2020-Jul-13 15:57:24  . . Segger_read_connected_emu_snr
    2020-Jul-13 15:57:24  . . . Segger_is_connected_to_emu
    2020-Jul-13 15:57:24  . . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:058.206 
    2020-Jul-13 15:57:24  . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Jul-13 15:57:24  . . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:058.383 
    2020-Jul-13 15:57:24  . . . Segger_is_connected_to_emu:	JLink INFO	- 0.270ms returns 0x01  
    2020-Jul-13 15:57:24  nRF_read_device_family
    2020-Jul-13 15:57:24  . nRFXX_read_device_family
    2020-Jul-13 15:57:24  . . Segger_is_connected_to_emu
    2020-Jul-13 15:57:24  . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:058.833 
    2020-Jul-13 15:57:24  . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Jul-13 15:57:24  . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:058.984 
    2020-Jul-13 15:57:24  . . Segger_is_connected_to_emu:	JLink INFO	- 0.228ms returns 0x01  
    2020-Jul-13 15:57:24  . . :	JLink INFO	TA3E3DC0 000:059.142 
    2020-Jul-13 15:57:24  . . :	JLink INFO	JLINK_Lock()  
    2020-Jul-13 15:57:24  . . Segger_read_debug_port_idr
    2020-Jul-13 15:57:24  . . . Segger_read_debug_port_register
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register
    2020-Jul-13 15:57:24  . . . . . Segger_coresight_configure
    2020-Jul-13 15:57:24  . . . . . Segger_coresight_configure:	JLink INFO	TA3E3DC0 000:059.728   
    2020-Jul-13 15:57:24  . . . . . Segger_coresight_configure:	JLink INFO	JLINK_CORESIGHT_Configure()  
    2020-Jul-13 15:57:24  . . . . . Segger_coresight_configure:	JLink INFO	TA3E3DC0 000:160.509   
    2020-Jul-13 15:57:24  . . . . . Segger_coresight_configure:	JLink INFO	- 101.141ms returns 0  
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLink INFO	TA3E3DC0 000:162.626   
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLink INFO	TA3E3DC0 000:163.923     
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLink INFO	failed
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLink INFO	TA3E3DC0 000:164.478   
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLink INFO	- 2.143ms returns -1  
    2020-Jul-13 15:57:24  . . . . Segger_read_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 
    
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action:	JLink INFO	TA3E3DC0 000:165.705   
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action:	JLink INFO	TA3E3DC0 000:166.801   
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action:	JLink INFO	- 1.439ms returns -1  
    2020-Jul-13 15:57:24  . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Jul-13 15:57:24  . . :	JLink INFO	TA3E3DC0 000:167.717 
    2020-Jul-13 15:57:24  . . :	JLink INFO	JLINK_Unlock()  
    2020-Jul-13 15:57:24  nRF_close_dll
    2020-Jul-13 15:57:24  . nRFXX_close_dll
    2020-Jul-13 15:57:24  . . Segger_close
    2020-Jul-13 15:57:24  . . . Segger_disconnect_from_emu
    2020-Jul-13 15:57:24  . . . . Segger_is_connected_to_emu
    2020-Jul-13 15:57:24  . . . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:169.726 
    2020-Jul-13 15:57:24  . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Jul-13 15:57:24  . . . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:170.159 
    2020-Jul-13 15:57:24  . . . . Segger_is_connected_to_emu:	JLink INFO	- 0.737ms returns 0x01  
    2020-Jul-13 15:57:24  . . . . Segger_disconnect_from_emu
    2020-Jul-13 15:57:24  . . . . . Segger_is_connected_to_device
    2020-Jul-13 15:57:24  . . . . . Segger_is_connected_to_device:	JLink INFO	TA3E3DC0 000:171.004 
    2020-Jul-13 15:57:24  . . . . . Segger_is_connected_to_device:	JLink INFO	JLINK_IsConnected()  
    2020-Jul-13 15:57:24  . . . . . Segger_is_connected_to_device:	JLink INFO	TA3E3DC0 000:171.433 
    2020-Jul-13 15:57:24  . . . . . Segger_is_connected_to_device:	JLink INFO	- 0.667ms returns FALSE  
    2020-Jul-13 15:57:24  . . . . . Segger_is_debug_region_powered
    2020-Jul-13 15:57:24  . . . . . . Segger_read_debug_port_register
    2020-Jul-13 15:57:24  . . . . . . . Segger_is_connected_to_emu
    2020-Jul-13 15:57:24  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:172.458 
    2020-Jul-13 15:57:24  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	JLINK_IsOpen()  
    2020-Jul-13 15:57:24  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	TA3E3DC0 000:172.812 
    2020-Jul-13 15:57:24  . . . . . . . Segger_is_connected_to_emu:	JLink INFO	- 0.501ms returns 0x01  
    2020-Jul-13 15:57:24  . . . . . . Segger_read_debug_port_register:	JLink INFO	TA3E3DC0 000:173.157 
    2020-Jul-13 15:57:24  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Lock()  
    2020-Jul-13 15:57:24  . . . . . . . Segger_write_debug_port_register
    2020-Jul-13 15:57:24  . . . . . . . Segger_write_debug_port_register:	JLink INFO	TA3E3DC0 000:173.654   
    2020-Jul-13 15:57:24  . . . . . . . Segger_write_debug_port_register:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    2020-Jul-13 15:57:24  . . . . . . . Segger_write_debug_port_register:	JLink INFO	TA3E3DC0 000:174.626   
    2020-Jul-13 15:57:24  . . . . . . . Segger_write_debug_port_register:	JLink INFO	- 1.183ms returns -1  
    2020-Jul-13 15:57:24  . . . . . . . Segger_write_debug_port_register:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action:	Attempting to clear any configuration errors in debug port before closing connection. 
    
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action:	JLink INFO	TA3E3DC0 000:175.584   
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action:	JLink INFO	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action:	JLink INFO	TA3E3DC0 000:176.494   
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action:	JLink INFO	- 1.043ms returns -1  
    2020-Jul-13 15:57:24  . . . . . . . . Segger_abort_debug_action:	JLinkARM.dll reported "-1", an unknown error.
    
    2020-Jul-13 15:57:24  . . . . . . Segger_read_debug_port_register:	JLink INFO	TA3E3DC0 000:176.986 
    2020-Jul-13 15:57:24  . . . . . . Segger_read_debug_port_register:	JLink INFO	JLINK_Unlock()  
    2020-Jul-13 15:57:24  . . . . Segger_disconnect_from_emu:	JLink INFO	TA3E3DC0 000:184.920 
    2020-Jul-13 15:57:24  . . . . Segger_disconnect_from_emu:	JLink INFO	JLINK_Close()  
    2020-Jul-13 15:57:24  . . Segger_close:	Freeing Library.
    
    2020-Jul-13 15:57:24  nRF_close_dll:	Freeing Library.
    
    

    Please advise on what I can provide to aid in the diagnosis.

    I remain unable to 

  • Arduino doesn't use a programmer, but a serial/usb bootloader (not sure what). This can be used to update the application running on the device. However, if you try to upload a bootloader, perhaps this bootloader doesn't want to replace itself. You have to ask Arduino about details regarding this. 

     

    Craig Hoffman said:
    When I try with the Jlink using a 10 pin connector, I get the following error:

     So now we are trying to do this directly with a programmer. Is the breakout board powered correctly? What is the voltage on your VDD? Does your JLink programmer support that voltage? It is a known issue that some evaluation boards use a low voltage, and that not all jlink programmers support this voltage.

    Can you show me a picture of your JLink setup, and verify that your board is powered externally (not via the programmer)?

    Best regards,

    Edvin

Related