nrfjprog: --ids is empty over remote IP connection

When using nrfjprog over an IP connection, `--ids` never returns a value.
This is frustrating as the Zephyr nrfjprog runner uses this command to determine if there is a board connected.

jordan@comp:~$ nrfjprog --iface ip --ip 192.168.20.7 --port 19020 --ids
jordan@comp:~$

Other commands work as expected, I am able to flash and reset boards manually over the IP connection, as well as listen to RTT output:

jordan@comp:~$ nrfjprog --iface ip --ip 192.168.20.7 --port 19020 -r
Applying system reset.
Run.
jordan@comp:~$

Versions:

jordan@comp:~$ nrfjprog --version
nrfjprog version: 10.16.0 external
JLinkARM.dll version: 7.64c
jordan@comp:~$ uname -a
Linux comp 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Parents
  • Hi Jordan,

    As you know nrfjprog is built on top of Jlink. Jlink remote server cannot be discovered using --ip, you have to set up and remember the debugger server IP first. Jlink does not have a specific command to check the JLink debugger sn number through an IP connection, so the command with "--id" does not give a response.
    Right now you would have to check the logs right after IP connection is built using JLINK commands to get the sn number, as shown below.
    $ JLinkExe IP 192.168.24.1
    SEGGER J-Link Commander V7.66b (Compiled May 30 2022 14:12:34)
    DLL version V7.66b, compiled May 30 2022 14:12:19
    
    Connecting to J-Link via IP...O.K.
    Firmware: J-Link OB-K22-NordicSemi compiled Dec  3 2021 15:46:55
    Hardware version: V1.00
    S/N: 960061xxx
    License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    VTref=3.300V
    
    
    Type "connect" to establish a target connection, '?' for help
    
    Best regards,
    Charlie
Reply
  • Hi Jordan,

    As you know nrfjprog is built on top of Jlink. Jlink remote server cannot be discovered using --ip, you have to set up and remember the debugger server IP first. Jlink does not have a specific command to check the JLink debugger sn number through an IP connection, so the command with "--id" does not give a response.
    Right now you would have to check the logs right after IP connection is built using JLINK commands to get the sn number, as shown below.
    $ JLinkExe IP 192.168.24.1
    SEGGER J-Link Commander V7.66b (Compiled May 30 2022 14:12:34)
    DLL version V7.66b, compiled May 30 2022 14:12:19
    
    Connecting to J-Link via IP...O.K.
    Firmware: J-Link OB-K22-NordicSemi compiled Dec  3 2021 15:46:55
    Hardware version: V1.00
    S/N: 960061xxx
    License(s): RDI, FlashBP, FlashDL, JFlash, GDB
    VTref=3.300V
    
    
    Type "connect" to establish a target connection, '?' for help
    
    Best regards,
    Charlie
Children
No Data
Related