This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Trouble programming nrf5340dk

I am following the guide on this page: https://github.com/project-chip/connectedhomeip/tree/master/examples/lock-app/nrfconnect

I can build the firmware, but having trouble to program the nRF5340DK. 

west flash --recover

ERROR: The --family option given with the command (or the default from nrfjprog.ini) does not match the device connected.

FATAL ERROR: command exited with status 18: nrfjprog --recover -f NRF53 --coprocessor CP_NETWORK --snr 960138681

nrfjprog version: 10.13.0 

JLinkARM.dll version: 7.50a

- OS: macOS (11.5) darwin x64

- Versions
- kernel: 20.6.0
- git: 2.30.1
- node: 12.13.0
- python: 2.7.16
- python3: 3.8.2

- Connected devices:
- /dev/tty.usbmodem0009601386815: 000960138681 PCA10095

Parents
  • nrfjprog --recover --coprocessor CP_NETWORK -f NRF53

    ERROR: The --family option given with the command (or the default from nrfjprog.ini) does not match the device connected.

    nrfjprog --recover -f NRF53 --log

    ERROR: [  nRF53] - Debug probe is not connected to an NRF53 series device.

    ERROR: The --family option given with the command (or the default from nrfjprog.ini) does not match the device connected.

    The sticker on the board:

    PCA10095

    0.11.0

    2020.51

    960138681

    FYI, I was able to program nRF52840 Dongle on the same laptop setup

  • It got even worse. Now I can't even detect the usb serial port.I start to suspect the board is bad. How can I get a replacement? I bought it from DigiKey.

  • Hongfeng said:
    I start to suspect the board is bad.

    It might be.

    Hongfeng said:
    Now I can't even detect the usb serial port.

    In that case does "nrfjprog -i" return anything now? Is LED5 on the DK is still flashing?

    Could you also provide me the logfile produced from the nrfjprog --eraseall --log command, or did it not manage to produce one? There should be a .txt file in the folder you were using.

    Best regards,

    Elfving

Reply
  • Hongfeng said:
    I start to suspect the board is bad.

    It might be.

    Hongfeng said:
    Now I can't even detect the usb serial port.

    In that case does "nrfjprog -i" return anything now? Is LED5 on the DK is still flashing?

    Could you also provide me the logfile produced from the nrfjprog --eraseall --log command, or did it not manage to produce one? There should be a .txt file in the folder you were using.

    Best regards,

    Elfving

Children
No Data
Related