Memory readback protection on the nrf5340

Hi,

What is the process for locking the app and network cores on the nrf5340 from allowing someone to read the internal flash memories using a debugger via SWD?  Then what would be the process for "unlocking" the part should we want to reprogram it.

Thanks.

Parents Reply
  • Not at all, you can always recover the device by performing an ERASEALL, after which the debug access port is opened. The only consequence is that you lose the firmware image on the device. The main purpose of this APProtect is to prevent unwanted firmware readout of devices in the field.

    In practice, when you encounter a locked device in NCS (through for example the VS Code extension), you'll have to option to perform a "recover" operation, which erases all firmware ("ERASEALL") and opens the access port. Then, when you flash new firmware to the device, this firmware can be configured to keep the debug access port open (useful during development) or let it remain closed (which is strongly recommended for production).

    This blog post has more information on the new "hardened" access port protection, which can also be found in the nRF5340:  Working with the nRF52 Series' improved APPROTECT

    Best regards,

    Raoul

Children
Related