nrf-command-line-tools: connect to multiple j-link's devices in parallel

Hi dear, 

It is possible to establish parallels multi connection to different J-LINK's devices serial numbers via nrfjprog.dll, or any other automated way ?



We successfully establish connection (read and write) between one (1) J-LINK device and one (1) PCB device via NRFJPROG using "nRF Command Line Tools" version 10.16.0 on C# .NET application. 

While trying to have a concurrent connection to another J-LINK Device SN and PCB, we receive error type : INVALID_OPERATION = -2

Method used: NRFJPROG_connect_to_emu_with_snr

Please advice

BR,

Adrian

  • Hey .I have changed Msgcallback  accordingly. I also changed the first parameter to void* C# equivalent (IntPtr)

    IntPtr handle = IntPtr.Zero;
                var openDllReturnValue =
                    NativeMethods.NRFJPROG_open_dll_inst(                     
                        ref handle,
                        JLinkPath,
                        Marshal.GetFunctionPointerForDelegate(new MsgCallback(OnMsgCallback)),
                        Device_family_t.NRF52_FAMILY);


    Still same result. The log is:

    open
    Jlinkarm nRF Worker ready. Handling sequence 0a24bcf2-8825-45ce-9800-3cc3bdff36f5.
    Crashed with signal 11.
    Crashed with signal 22.
    process exited with code: 3
    process exited with code: 3
    Worker process dies while processing command open
    Command open executed for 103 milliseconds with result -254
    terminate
    terminate


    Please advice,
    BR

  • Hi Adrian,

    I'll be taking over this case from Stian. Were you able to find a solution for your issue?

    regards

    Jared 

Related