Nordic nRF Command Line Tools

nRF Command Line Tools

To support interaction with Nordic’s nRF Command Line Tools during production, an SBC can be included in the PPC.

to program an nRF52:

Sample Test Plan (nrRF52 firmware)

title: "nRF52 programming with nrfjprog,using Segger J-Link"
suite:
 - title: Defines
   steps:
    - command: define FIRMWARE.hex "pltdemo-zephyr-fw-0.1.2.hex"
    - command: define SBC.vidpid "6666:8001"

 - title: New SBC Session
   steps:
    - command: usb detect
      id: "%SBC.vidpid"
      timeout: 10s
    - command: agentCfg PROGSBC
      with:
       - "%FIRMWARE.hex%"
    - command: agentExec PROGSBC "cd /run/pltagent/mnt"

 - title: Program nRF52 firmware with nrfjprog
   steps:
    - command: agentExec PROGSBC "nrfjprog -f NRF52 --program %FIRMWARE.hex% --verify --reset"
      timeout: 2m

For example, to program the modem of an nRF9160DK using its built-in JLink programmer:

Sample Test Plan (nrRF91 Modem)

title: Program nRF9160DK modem firmware
suite:
 - title: Defines
   steps:
    - command: define FIRMWARE.zip "modem.zip"
 - title: New SBC Session
   steps:
    - command: agentCfg PROGSBC
      with:
      - "%FIRMWARE.zip%"
    - command: agentExec PROGSBC "cd /run/pltagent/mnt"
 - title: Program nRF9160 modem with pynrfjprog
   steps:
    - command: agentExec PROGSBC "prog-nrf9160-modem.py %FIRMWARE.zip%"
      timeout: 2m

References