Calling DLL functions

nRF Command Line Tools

The nrfjprog DLL functions must be called in a specific order.

This is the recommended sequence of calling the nrfjprog DLL functions:

  1. NRFJPROG_open_dll_inst()
  2. Connect with or without specifying the serial number:
  3. NRFJPROG_connect_to_device_inst()
  4. NRFJPROG_halt_inst()
  5. Other desired functions such as NRFJPROG_read_inst() or NRFJPROG_write_inst()
  6. NRFJPROG_close_dll_inst()