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
  • Update:

    I think I have found the problem, I put the power source switch to "USB" position, now I moved it to "VDD" and it started working properly and I could program the device.

    It didn't look very obvious to me, I thought it's the USB powering the board, so I should put it at "USB" position. I also tried the "VDD" option, but it didn't work earlier. Anyway, now I can move forward.

    Thanks for all the help!

Reply
  • Update:

    I think I have found the problem, I put the power source switch to "USB" position, now I moved it to "VDD" and it started working properly and I could program the device.

    It didn't look very obvious to me, I thought it's the USB powering the board, so I should put it at "USB" position. I also tried the "VDD" option, but it didn't work earlier. Anyway, now I can move forward.

    Thanks for all the help!

Children
Related