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
  • Hello,

    Yes, as you say, nrfutil will not be able to correctly identify the chip when approtect is enabled. To unlock approtect on the nRF5340, you must perform the recovery procedure on the network core before you recover the application core. Please try this and see if the problem persists.

    nrfutil device recover --core network
    nrfutil device recover
    

    Best regards,

    Vidar

Reply
  • Hello,

    Yes, as you say, nrfutil will not be able to correctly identify the chip when approtect is enabled. To unlock approtect on the nRF5340, you must perform the recovery procedure on the network core before you recover the application core. Please try this and see if the problem persists.

    nrfutil device recover --core network
    nrfutil device recover
    

    Best regards,

    Vidar

Children
Related