Whether to connect multiple Jlinks to perform firmware delivery at the same time

command:nrfjprog.exe --snr 69513467 -f UNKNOWN --program "C:\Users\45515\Desktop\_0122_99\EV-06X_V2.1_0122_V3.0.4.99.pro.hex"

When I perform multiple simultaneous deliveries, the probability of an exception is very high. Is multithreading supported

  • 2024-Dec-05 14:05:44  --------------------------------------------------------------------------------
    2024-Dec-05 14:05:44  C:\Users\45515\Desktop\EvSuite241205\nrfjprog\nrfjprog.exe --snr 69513467 -f UNKNOWN --program C:\Users\45515\Desktop\_0122_99\EV-06X_V2.1_0122_V3.0.4.99.pro.hex --log
    2024-Dec-05 14:05:44  nrfjprog version 10.9.0
    2024-Dec-05 14:05:44  --------------------------------------------------------------------------------
    2024-Dec-05 14:05:44  nRF_logger_open
    2024-Dec-05 14:05:44  nRF_logger_open:  nRFJProg logger opened to callback at address 0X90900
    2024-Dec-05 14:05:44  nRF_open_dll
    2024-Dec-05 14:05:44  nRF_open_dll: Load library at "C:\\Users\\45515\\Desktop\\EvSuite241205\\nrfjprog\\JLINKARM_UNKNOWN_NRFJPROG.dll".

    2024-Dec-05 14:05:44  . nRFXX_logger_open
    2024-Dec-05 14:05:44  . nRFXX_logger_open:  nRFJProg logger opened to callback at address 0X753FB850
    2024-Dec-05 14:05:44  . . Segger_logger_open
    2024-Dec-05 14:05:44  . . Segger_logger_open:   nRFJProg logger opened to callback at address 0X6E76E1A0
    2024-Dec-05 14:05:44  . . Segger_open_dll
    2024-Dec-05 14:05:44  . . Segger_open_dll:  No J-Link DLL path was provided. Attempting to auto detect.

    2024-Dec-05 14:05:44  . . Segger_open_dll:  Load library at "C:\\Program Files (x86)\\SEGGER\\JLink\\JLinkARM.dll".
  • 2024-Dec-05 14:05:44  . . . Segger_dll_version
    2024-Dec-05 14:05:44  . . Segger_set_core_data
    2024-Dec-05 14:05:44  nRF_enum_emu_snr
    2024-Dec-05 14:05:44  . nRFXX_enum_emu_snr
    2024-Dec-05 14:05:44  . . Segger_enum_emu_snr
    2024-Dec-05 14:05:44  . . . Segger_enum_emu_snr
    2024-Dec-05 14:05:44  . . . . Segger_get_num_emus
    2024-Dec-05 14:05:44  nRF_connect_to_emu_with_snr
    2024-Dec-05 14:05:44  . nRFXX_connect_to_emu_with_snr
    2024-Dec-05 14:05:44  . . Segger_connect_to_emu_with_snr
    2024-Dec-05 14:05:44  . . . Segger_is_connected_to_emu
    2024-Dec-05 14:05:44  . . . Segger_enum_emu_snr
    2024-Dec-05 14:05:44  . . . . Segger_get_num_emus
    2024-Dec-05 14:05:44  . . . Segger_connect_to_emu_with_snr
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    Segger logging enabled with callback at 0x1853285680.

    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:024.639  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  Firmware: J-Link V9 compiled May  7 2021 16:26:12
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:025.486  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  Decompressing FW timestamp took 137 us
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:031.909  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  Hardware: V9.50
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:032.839  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  S/N: 69513467
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:033.672  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  OEM: SEGGER
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:034.474  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  Feature(s): JFlash, GDB, RDI, FlashBP, FlashDL
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:035.969  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  TELNET listener socket opened on port 19021
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:036.686  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  WEBSRV Starting webserver
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:037.233  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  WEBSRV Webserver running on local port 19080
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:037.835
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 17.562ms returns "O.K."  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:038.856
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:039.707
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_GetHWStatus(...)  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:040.309
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 0.779ms returns 0  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:040.621
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:040.852
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_ExecCommand("SetRestartOnClose = 0", ...).  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:041.109
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 0.340ms returns 0x01  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:041.581
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:041.846
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_ExecCommand("DisableFlashDL", ...).  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:042.402
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 0.123ms returns 0x00  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:042.655
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:043.308
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_ExecCommand("ExcludeFlashCacheRange 0x0-0xFFFFFFFF", ...).  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:043.767
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 0.346ms returns 0x00  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:044.267
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:044.551
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_SetHookUnsecureDialog  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:044.868  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_SetHookUnsecureDialog(...)
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:045.400
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 1.023ms returns 0  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:045.740
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:046.447
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_TIF_Select(JLINKARM_TIF_SWD)  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:048.630
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 2.774ms returns 0x00  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:049.485
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:050.556
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_SetSpeed(2000)  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:051.420
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 1.220ms  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:052.077
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:052.625
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_GetSN()  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:053.081
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  - 0.653ms returns 69513467  
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  T12A8 000:053.626
    2024-Dec-05 14:05:44  . . . . Segger_connect_to_emu_without_snr:    JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:055.198
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  JLINK_ExecCommand("CORESIGHT_SetIndexAHBAPToUse = 0", ...).  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:056.061
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  - 0.333ms returns 0x00  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:056.773
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:057.681
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  JLINK_ExecCommand("device = Cortex-M4", ...).  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:066.844  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  XML file found at: C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:068.506  
    2024-Dec-05 14:05:44  . . . . . Segger_load_core_data:  JLink INFO  C:\Program Files (x86)\SEGGER\JLink\JLinkDevices.xml evaluated successfully.
    2024-Dec-05 14:05:45  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:150.293  
    2024-Dec-05 14:05:45  . . . . . Segger_load_core_data:  JLink INFO  Device "CORTEX-M4" selected.
    2024-Dec-05 14:05:45  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:154.397
    2024-Dec-05 14:05:45  . . . . . Segger_load_core_data:  JLink INFO  - 96.064ms returns 0x00  
    2024-Dec-05 14:05:45  . . . . . Segger_load_core_data:  JLink INFO  T12A8 000:155.249
    2024-Dec-05 14:05:45  . . . . . Segger_load_core_data:  JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:45  nRF_read_connected_emu_snr
    2024-Dec-05 14:05:45  . nRFXX_read_connected_emu_snr
    2024-Dec-05 14:05:45  . . Segger_read_connected_emu_snr
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu: JLink INFO  T12A8 000:158.080
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu: JLink INFO  JLINK_IsOpen()  
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu: JLink INFO  T12A8 000:158.947
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu: JLink INFO  - 1.248ms returns 0x01  
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu: JLink INFO  T12A8 000:159.742
    2024-Dec-05 14:05:45  . . . Segger_is_connected_to_emu: JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:45  nRF_read_device_family
    2024-Dec-05 14:05:45  . nRFXX_read_device_family
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu:   JLink INFO  T12A8 000:161.645
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu:   JLink INFO  JLINK_IsOpen()  
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu:   JLink INFO  T12A8 000:162.483
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu:   JLink INFO  - 1.257ms returns 0x01  
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu:   JLink INFO  T12A8 000:163.607
    2024-Dec-05 14:05:45  . . Segger_is_connected_to_emu:   JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:45  . . : JLink INFO  T12A8 000:164.587
    2024-Dec-05 14:05:45  . . : JLink INFO  JLINK_Lock()  
    2024-Dec-05 14:05:45  . . Segger_read_debug_port_idr
    2024-Dec-05 14:05:45  . . . Segger_read_debug_port_register
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure: JLink INFO  T12A8 000:167.165
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure: JLink INFO  JLINK_CORESIGHT_Configure()  
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure: JLink INFO  T12A8 000:168.541
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure: JLink INFO  - 1.655ms returns 0  
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure: JLink INFO  T12A8 000:169.353
    2024-Dec-05 14:05:45  . . . . . Segger_coresight_configure: JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  T12A8 000:170.389
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  JLINK_CORESIGHT_ReadAPDPReg(DP reg 0x00)  
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  T12A8 000:171.316  
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  Value=0x2BA01477
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  T12A8 000:171.942
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  - 1.828ms returns 0  
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  T12A8 000:172.497
    2024-Dec-05 14:05:45  . . . . Segger_read_debug_port_register:  JLink INFO  JLINK_HasError()  
    2024-Dec-05 14:05:45  . nRFXX_read_device_family:   Discovered device from family NRF52.
  • Hi, 

    The nrfjprog does not natively support multithreading for programming multiple devices simultaneously.

    Regards,
    Amanda H.

  • I have multiple Jlinks, on one computer, using nrfjprog, executing the same command in multiple cmd is not OK? Is there another way to do this?

Related