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"?

Related