Programming Thingy:53 with Bluetooth Mesh sensor_server example

I have successfully built the Bluetooth Mesh sensor_server example, using the thingy53_nrf5340_cpuspp_ns build configuration.

But when I come to try and program the Thingy:53, it does not appear in the Connected Devices list, when connected to an nRF5340-DK board with a standard 10-pin cable (I used one from a STLink-V3). The RGB LED on the Thingy:53 illuminates on power up and cycles through the three colours a couple of times before going out, as it does when not connected via the 10-pin cable. When the Thingy:53 is connected via the 10-pin cable to the nRF5340-DK, the LEDs on the latter are not illuminated and neither appear in the Connected Devices list.

When I unplug and replug the USB cable to the nRF5340-DK board without the Thingy:53 connected, then the nRF5340-DK is detected and does appear in the Connected Devices list.

What else do I need to do for the Thingy:53 to be detected please?

I am using nRF Connect SDK v2.3.0 on Windows 11.

Parents
  • alwalker said:
    I do not see NRF5340_xxAA_ENGD on the Connected Devices list when the Thingy:53 is switched off and/or disconnected from the nRF5340DK.

    So you do not see this exact part on the connected devices list, but I assume the rest of the section belonging to that DK is still there? Could you show me a screenshot of how this looks?

    What is the version of your Thingy:53? You should be able to see this number underneath the NFC tag, right below "PCA20053".

    alwalker said:
    and also to check using the same hardware setup?

    I haven't tried using your exact versions, but yeah I have tried it. The interface chip on the DK should read the UICR of the chip its programming and give it to you there. NRF5340_xxAA_ENGD should be referring to the SoC on the Thingy. I do not know exactly what you mean by selecting it though, would you mind expanding a bit on that?

    You could in a way select something using the symbol in the image on the left, or after flashing when there are multiple options available. Though when making this selection you choose an id of the interface chips, not the name of the SoC.

     

    Regards,

    Elfving

  • Hi Elfving,

    This is what I see on the list of Connected Devices without the Thingy:53 connected/powered on:

    This is what I get with the Thingy:53 connected via the 10-pin cable and powered on:

    I select the NRF5340_xxAA_ENGD option in the normal way using the mouse pointer and right-clicking.

  • Could you please try copy the whole nrf-command-line-tools folder to another folder (drive) to test ? 

  • Hi Hung Bui,

    I added a system path for nrfjprog.exe and tried running it from the c: drive root directory. It did so but with the same result as shown in the above screen capture and did not generate a log file for the non-working board. I was however able obtain the log file for the non-working board by running it from a USB thumb drive labelled E:. Log file attached.

    Kind regards,

    Al

    [2023-May-11 23:27:45] [ info] --------------------------------------------------------------------------------
    [2023-May-11 23:27:45] [ info] C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --recover --family NRF53 --log 
    [2023-May-11 23:27:45] [ info] nrfjprog version 10.16.0 external
    [2023-May-11 23:27:45] [ info] --------------------------------------------------------------------------------
    [2023-May-11 23:27:45] [ info] Load library at C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
    [2023-May-11 23:27:45] [ info] Library loaded, loading member functions.
    [2023-May-11 23:27:45] [ info] Member functions succesfully loaded.
    [2023-May-11 23:27:45] [debug] [ Client] - open
    [2023-May-11 23:27:45] [debug] [ Client] - start
    [2023-May-11 23:27:45] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 48088012-4f5f-44a0-81c8-abc47f71cb06.
    
    [2023-May-11 23:27:45] [trace] [ Client] - Command open executed for 39 milliseconds with result 0
    [2023-May-11 23:27:45] [debug] [ Client] - enum_emu_snr
    [2023-May-11 23:27:45] [trace] [ Client] - Command enum_emu_con_info executed for 9 milliseconds with result 0
    [2023-May-11 23:27:45] [debug] [ Client] - connect_to_emu_with_snr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
    [2023-May-11 23:27:45] [debug] [  JLink] - Logger sink registered in JLink logger
    [2023-May-11 23:27:45] [debug] [  nRF53] - open
    [2023-May-11 23:27:45] [debug] [  nRF53] - just_check_family
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - open_dll
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
    [2023-May-11 23:27:45] [ info] [SeggerBackend] - Load library at C:\Program Files (x86)\SEGGER\JLink\JLink_x64.dll.
    [2023-May-11 23:27:45] [ info] [SeggerBackend] - Library loaded, loading member functions.
    [2023-May-11 23:27:45] [ info] [SeggerBackend] - Member functions succesfully loaded.
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - dll_version
    [2023-May-11 23:27:45] [ info] [SeggerBackend] - Segger dll version 7.86.e loaded.
    [2023-May-11 23:27:45] [trace] [ Worker] - Command open executed for 4 milliseconds with result 0
    [2023-May-11 23:27:45] [debug] [  nRF53] - enum_emu_con_info
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - enum_emu_con_info
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-May-11 23:27:45] [trace] [ Worker] - Command enum_emu_con_info executed for 3 milliseconds with result 0
    [2023-May-11 23:27:45] [debug] [  nRF53] - connect_to_emu_with_snr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - connect_to_emu_with_snr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - ---just_enum_emu_snr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - ---just_get_num_emus
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - Segger logging enabled.
    [2023-May-11 23:27:45] [trace] [  JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Nov  7 2022 16:22:01
    [2023-May-11 23:27:45] [trace] [  JLink] - Firmware: J-Link OB-nRF5340-NordicSemi compiled Nov  7 2022 16:22:01
    [2023-May-11 23:27:45] [trace] [  JLink] - Hardware: V1.00
    [2023-May-11 23:27:45] [trace] [  JLink] - S/N: 1050006835
    [2023-May-11 23:27:45] [trace] [  JLink] - OEM: SEGGER
    [2023-May-11 23:27:45] [trace] [  JLink] - Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
    [2023-May-11 23:27:45] [trace] [  JLink] - USB speed mode: Full speed (12 MBit/s)
    [2023-May-11 23:27:45] [trace] [  JLink] - TELNET listener socket opened on port 19021
    [2023-May-11 23:27:45] [trace] [  JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
    [2023-May-11 23:27:45] [trace] [  JLink] - WEBSRV Webserver running on local port 19080
    [2023-May-11 23:27:45] [trace] [  JLink] - - 35.915ms returns "O.K."  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_Lock()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).   
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.009ms returns 0x01  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_ExecCommand("DisableFlashDL", ...).   
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.007ms returns 0x00  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).   
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.012ms returns 0x00  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_SetHookUnsecureDialog  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_SetHookUnsecureDialog(...)
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.092ms returns 0  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    [2023-May-11 23:27:45] [trace] [  JLink] - - 1.153ms returns 0x00  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_GetSpeedInfo()  
    [2023-May-11 23:27:45] [trace] [  JLink] - 128000000 Hz / n, n >= 64
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.026ms  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 2000kHz
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_SetSpeed(2000)  
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.164ms  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_GetSpeed()  
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.013ms returns 2000  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - SWD clock set to 2000kHz
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_GetSN()  
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.015ms returns 1050006835  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - read_debug_port_idr
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - read_debug_port_register
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-May-11 23:27:45] [debug] [SeggerBackend] - coresight_configure
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_GetHWStatus(...)  
    [2023-May-11 23:27:45] [trace] [  JLink] - - 0.299ms returns 0  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:45] [trace] [  JLink] - JLINK_CORESIGHT_Configure()  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 101.233ms returns 0  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 1.437ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.990ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.976ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 1.248ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 1.210ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 1.003ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.959ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.940ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 1.288ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 1.266ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.949ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.948ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.890ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.991ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.887ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.976ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.929ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.969ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.946ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.907ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.948ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.905ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.893ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.893ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.959ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.815ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.790ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.693ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.789ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.824ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.065ms  
    [2023-May-11 23:27:46] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 202 milliseconds with result -102
    [2023-May-11 23:27:46] [trace] [ Client] - Command connect_to_emu_with_snr executed for 217 milliseconds with result -102
    [2023-May-11 23:27:46] [debug] [  nRF53] - close
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - is_connected_to_emu
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_IsOpen()  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.021ms returns 0x01  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_Lock()  
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - close
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - disconnect_from_emu
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_disconnect_from_emu
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - is_connected_to_device
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_IsConnected()  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.012ms returns FALSE  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_is_debug_region_powered
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_read_debug_port_register
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_select_debug_port_register
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Select AP 255, DP Bank 0, AP Bank 255
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.720ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.729ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.662ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.707ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.660ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.689ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.683ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.737ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.614ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.680ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.613ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.608ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.628ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.576ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.571ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.654ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.607ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.684ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.648ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.658ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.631ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.611ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.640ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.613ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.547ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - ---just_abort_debug_action
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Attempting to clear any configuration errors in debug port before closing connection. 
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.537ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.492ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.556ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.604ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x00, 0x0000001F)  
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.455ms returns -1  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_HasError()  
    [2023-May-11 23:27:46] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
    [2023-May-11 23:27:46] [trace] [  JLink] - - 0.013ms  
    [2023-May-11 23:27:46] [trace] [  JLink] - JLINK_Close()  
    [2023-May-11 23:27:46] [trace] [ Client] - Command close executed for 68 milliseconds with result 0
    [2023-May-11 23:27:46] [debug] [ Client] - terminate
    [2023-May-11 23:27:46] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
    [2023-May-11 23:27:46] [debug] [SeggerBackend] - Segger Backend closed.
    [2023-May-11 23:27:46] [debug] [  nRF53] - nRF family DLL closed
    [2023-May-11 23:27:46] [trace] [ Worker] - Command close executed for 68 milliseconds with result 0
    [2023-May-11 23:27:46] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
    [2023-May-11 23:27:46] [trace] [ Worker] - Executed 5 commands for 277 milliseconds
    [2023-May-11 23:27:46] [debug] [ Client] - Worker process exited with code: 0
    [2023-May-11 23:27:46] [debug] [ Client] - Worker process exited with code: 0
    [2023-May-11 23:27:46] [debug] [ Client] - Child process terminated with result 0
    [2023-May-11 23:27:46] [trace] [ Client] - Executed 5 commands for 333 milliseconds
    [2023-May-11 23:27:46] [debug] [ Client] - terminate
    

  • Hi Hung Bui,

    I also produced a log file that same way on the E: drive for the working board. Please see attached.

    Kind regards,

    Al

    230511 Working.log

  • Hi Al,

    I have forwarded the log to our R&D team and they said that it looks like the chip was not powered hence the programmer can not program the chip. 

    Could you please check what's the voltage on the VDD pins ? Also please check the voltage on the 5V pin. 

    Is there any chance that you were flashing anything that change the VREGHVOUT ? 


    With the other board that works, have you managed to program the Thingy 53 with that board (make sure to turn Thingy53 on when you flash) ?

  • Hi Hung Bui,

    I checked the 5V and VDD rails on both working and non-working boards using an oscilloscope, includng when running nrfjprog (with the same results per the supplied log files). There is no difference in the measured voltages between the two baords:

    5V Rail: +5.0V

    VDD Rail: +3.0V

    I am not sure where to measure VREGHVOUT, could you confirm please?

    I have not tried programming the Thingy:53 using another nRF5340DK for the specific reason that I want to understand why the board previously used is now no longer works, and do not want to risk damage to any other nRF5340DK boards without identifying the problem with this non-working board.  

    Kind regards,

    Al

Reply
  • Hi Hung Bui,

    I checked the 5V and VDD rails on both working and non-working boards using an oscilloscope, includng when running nrfjprog (with the same results per the supplied log files). There is no difference in the measured voltages between the two baords:

    5V Rail: +5.0V

    VDD Rail: +3.0V

    I am not sure where to measure VREGHVOUT, could you confirm please?

    I have not tried programming the Thingy:53 using another nRF5340DK for the specific reason that I want to understand why the board previously used is now no longer works, and do not want to risk damage to any other nRF5340DK boards without identifying the problem with this non-working board.  

    Kind regards,

    Al

Children
Related