custom nrf9160 board JLink/SWD programer

Hi, we tri to develop a custom board base on nRF9160 SICA B0 and  can't flash the board via SEGGER JLink/SWD programmer. On nRF Connect for desktop programmer on selectdevice i don't see ani device.

my schematic:

  

the log from nrfjprog:

[2023-Aug-15 08:09:34] [debug] --------------------------------------------------------------------------------
[2023-Aug-15 08:09:34] [debug] D:\Dev\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.exe --reset --log
[2023-Aug-15 08:09:34] [debug] nrfjprog version 10.19.0 external
[2023-Aug-15 08:09:34] [debug] --------------------------------------------------------------------------------
[2023-Aug-15 08:09:34] [ info] Load library at D:\Dev\Nordic Semiconductor\nrf-command-line-tools\bin\nrfjprog.dll.
[2023-Aug-15 08:09:34] [ info] Library loaded, loading member functions.
[2023-Aug-15 08:09:34] [ info] Member functions succesfully loaded.
[2023-Aug-15 08:09:35] [debug] [ Client] - open
[2023-Aug-15 08:09:35] [debug] [ Client] - start
[2023-Aug-15 08:09:35] [ info] [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 72c0f4c8-5c38-423d-9e13-5d5190e96d53.
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - Logger sink registered in Segger backend logger
[2023-Aug-15 08:09:35] [debug] [ JLink] - Logger sink registered in JLink logger
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - open
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - just_check_family
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - open_dll
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[2023-Aug-15 08:09:35] [ info] [SeggerBackend] - Load library at C:\Program Files\SEGGER\JLink\JLinkARM.dll.
[2023-Aug-15 08:09:35] [ info] [SeggerBackend] - Library loaded, loading member functions.
[2023-Aug-15 08:09:35] [ info] [SeggerBackend] - Member functions succesfully loaded.
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - Set batch mode
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - dll_version
[2023-Aug-15 08:09:35] [ info] [SeggerBackend] - Segger dll version 7.90.a loaded.
[2023-Aug-15 08:09:35] [trace] [ Worker] - Command open executed for 16 milliseconds with result 0
[2023-Aug-15 08:09:35] [trace] [ Client] - Command open executed for 77 milliseconds with result 0
[2023-Aug-15 08:09:35] [debug] [ Client] - config
[2023-Aug-15 08:09:35] [trace] [ Client] - Command config executed for 14 milliseconds with result 0
[2023-Aug-15 08:09:35] [debug] [ Client] - enum_emu_snr
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - config
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - enum_emu_snr
[2023-Aug-15 08:09:35] [trace] [ Worker] - Command config executed for 5 milliseconds with result 0
[2023-Aug-15 08:09:35] [trace] [ Client] - Command enum_emu_con_info executed for 15 milliseconds with result 0
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - enum_emu_con_info
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - enum_emu_con_info
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [debug] [ Client] - connect_to_emu_with_snr
[2023-Aug-15 08:09:35] [trace] [ Worker] - Command enum_emu_con_info executed for 5 milliseconds with result 0
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - connect_to_emu_with_snr
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - connect_to_emu_with_snr
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - ---just_enum_emu_snr
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - ---just_get_num_emus
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - ---just_connect_to_emu_with_snr
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - ---just_connect_to_emu_without_snr
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - Segger logging enabled.
[2023-Aug-15 08:09:35] [trace] [ JLink] - Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
[2023-Aug-15 08:09:35] [trace] [ JLink] - Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
[2023-Aug-15 08:09:35] [trace] [ JLink] - Hardware: V8.00
[2023-Aug-15 08:09:35] [trace] [ JLink] - S/N: 4294967295
[2023-Aug-15 08:09:35] [trace] [ JLink] - OEM: SEGGER
[2023-Aug-15 08:09:35] [trace] [ JLink] - Feature(s): RDI,FlashDL,FlashBP,JFlash,GDB
[2023-Aug-15 08:09:35] [trace] [ JLink] - Bootloader: (Could not read)
[2023-Aug-15 08:09:35] [trace] [ JLink] - TELNET listener socket opened on port 19021
[2023-Aug-15 08:09:35] [trace] [ JLink] - WEBSRV WEBSRV_Init(): Starting webserver thread(s)
[2023-Aug-15 08:09:35] [trace] [ JLink] - WEBSRV Webserver running on local port 19080
[2023-Aug-15 08:09:35] [trace] [ JLink] - Looking for J-Link GUI Server exe at: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe
[2023-Aug-15 08:09:35] [trace] [ JLink] - Forking J-Link GUI Server: C:\Program Files\SEGGER\JLink\JLinkGUIServer.exe
[2023-Aug-15 08:09:35] [trace] [ JLink] - J-Link GUI Server info: "J-Link GUI server V7.90a "
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 62.958ms returns "O.K."
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_Lock()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_ExecCommand("SetRestartOnClose = 0", ...).
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.001ms returns 0x01
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_ExecCommand("DisableFlashDL", ...).
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.000ms returns 0x00
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.004ms returns 0x00
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_SetHookUnsecureDialog
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_SetHookUnsecureDialog(...)
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.019ms returns 0
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_TIF_Select(JLINKARM_TIF_SWD)
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 1.249ms returns 0x00
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_GetSpeedInfo()
[2023-Aug-15 08:09:35] [trace] [ JLink] - 4000000 Hz / n, n >= 1
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.015ms
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - Connected emulator supports SWD speeds up to 4000kHz
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_SetSpeed(2000)
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.099ms
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_GetSpeed()
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.006ms returns 2000
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - SWD clock set to 2000kHz
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_GetSN()
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.006ms returns -1
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_HasError()
[2023-Aug-15 08:09:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2023-Aug-15 08:09:35] [trace] [ JLink] - - 0.034ms
[2023-Aug-15 08:09:35] [trace] [ JLink] - JLINK_Close()
[2023-Aug-15 08:09:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2023-Aug-15 08:09:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2023-Aug-15 08:09:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2023-Aug-15 08:09:35] [error] [SeggerBackend] - JLinkARM.dll reported "-1", "An unknown error.".
[2023-Aug-15 08:09:35] [trace] [ Client] - Command connect_to_emu_with_snr executed for 279 milliseconds with result -102
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [trace] [ Worker] - Command connect_to_emu_with_snr executed for 267 milliseconds with result -102
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - close
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - close
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - disconnect_from_emu
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - is_connected_to_emu
[2023-Aug-15 08:09:35] [debug] [SeggerBackend] - Segger Backend closed.
[2023-Aug-15 08:09:35] [debug] [ nRFXX] - nRF family DLL closed
[2023-Aug-15 08:09:35] [trace] [ Worker] - Command close executed for 31 milliseconds with result 0
[2023-Aug-15 08:09:35] [trace] [ Client] - Command close executed for 49 milliseconds with result 0
[2023-Aug-15 08:09:35] [debug] [ Client] - terminate
[2023-Aug-15 08:09:35] [trace] [ Client] - Command terminate executed for 0 milliseconds with result 0
[2023-Aug-15 08:09:35] [trace] [ Worker] - Command terminate executed for 0 milliseconds with result 0
[2023-Aug-15 08:09:35] [trace] [ Worker] - Executed 6 commands for 324 milliseconds
[2023-Aug-15 08:09:35] [debug] [ Client] - Worker process exited with code: 0
[2023-Aug-15 08:09:35] [debug] [ Client] - Worker process exited with code: 0
[2023-Aug-15 08:09:35] [debug] [ Client] - Child process terminated with result 0
[2023-Aug-15 08:09:35] [trace] [ Client] - Executed 6 commands for 434 milliseconds
[2023-Aug-15 08:09:35] [debug] [ Client] - terminate

from L-Link commander:

SEGGER J-Link Commander V7.90a (Compiled Aug 9 2023 15:02:13)
DLL version V7.90a, compiled Aug 9 2023 15:00:35

Connecting to J-Link via USB...O.K.
Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
Hardware version: V8.00
J-Link uptime (since boot): N/A (Not supported by this model)
S/N: -1
License(s): RDI,FlashDL,FlashBP,JFlash,GDB
VTref=3.325V


Type "connect" to establish a target connection, '?' for help
J-Link>connect
Please specify device / core. <Default>: CORTEX-M4
Type '?' for selection dialog
Device>?
Please specify target interface:
J) JTAG (Default)
S) SWD
T) cJTAG
TIF>S
Specify target interface speed [kHz]. <Default>: 4000 kHz
Speed>
Device "NRF9160_XXAA" selected.


Connecting to target via SWD
ConfigTargetSettings() start
---Setting ROM table---
ConfigTargetSettings() end - Took 2.24ms
Found SW-DP with ID 0x6BA02477
DPv0 detected
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[7]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x84770001)
AP[1]: AHB-AP (IDR: 0x24770011)
AP[2]: JTAG-AP (IDR: 0x12880000)
AP[3]: APB-AP (IDR: 0x54770002)
AP[4]: JTAG-AP (IDR: 0x12880000)
AP[5]: JTAG-AP (IDR: 0x12880000)
AP[6]: MEM-AP (IDR: 0x128800A1)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410FD212. Implementer code: 0x41 (ARM)
Feature set: Mainline
Cache: No cache
Found Cortex-M33 r0p2, Little endian.

****** Error: Specific core setup failed.
Cannot connect to target.
J-Link>

What can be wrong? any suggestion appreciated.

Parents Reply Children
No Data
Related