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
  • Is there a way to set the UICR->APPROTECT address to 0 using JLINK commander script?  We tried using the  following script "loadfile approtect.bin, 0x00FF8000" after writing all images into the flash.  The approtect.bin just contains the 32-bit value (0x00000000) to enable protection.  The entire flash memory appears to be erased by calling the above script.

    We can write all the images using JLINK script, then use nrfjprog to write 0 to UICR->APPROTECT (nrfjprog -f NRF53 --memwr 0x00ff8000 --val 0 -- force) and it does work.  However, we would prefer to do everything through JLINK Commander if possible.

    Thanks!

Children
Related