Programming with J-Link does not work

nRF Connect for Desktop

tags
nRF Connect for Desktop

If you select a device that uses the nRF5340 SoC as the interface MCU and attempt to program it, you might get an issue related to device type being unknown.

This issue is related to readback protection of the nRF5340 MCU. To solve the issue, complete the following steps:

  1. Download nRF Util from Nordic Semiconductor.
  2. Install the nrfutil device command.
  3. Connect the DK to the serial port.
  4. Open a command line terminal.
  5. Run the following command:

    nrfutil device recover
    
  6. Disconnect and connect the DK to the serial port again.

  7. Select the device.
  8. When prompted about programming, select Yes.

The app will program the DK and the connection will successfully open with a related log entry.