Issue with Unknown Device detection on nRF5340 – Flashing works, but Debugging/Recovery fails

I am currently developing a project using an nRF5340DK and a custom board.

For some unknown reason, the device is being identified as an "Unknown device."


The ironic part is that flashing the firmware still works successfully, even though the device ID isn't recognized correctly.




However, when I attempt to start debugging, I encounter the following error:




I suspect that the Application Core is protected (APPROTECT), which prevents the debugger from correctly identifying the nRF5340 IC on my custom board.


I tried to perform a recovery to resolve this, but the recovery process also fails with the following error:




How can I get the debugger to correctly recognize the device as NRF5340_xxAA_REV1 again instead of "Unknown device"?

Parents Reply
  • Your overlay is correct, so if it is being applied it should not be an issue with the regulator settings. If you want to confirm that it is being applied, you can check the final DT configuration in the zephyr.dts file generated for your application in the build folder. You can also try to read the regulator registers with nrfutil (if it doesn't fail to connect).

    Reading VREGMAIN.DCDCEN:

    nrfutil device read --address 0x50004704 --direct

Children
No Data
Related