I'm looking to enable the flash protection for an nRF52 application running on Zephyr RTOS:
- Basically looking to disable flash reads from the JTAG/SWD interface: Only erase or reprogram should be possible.
My understanding is that this can be achieved by configuring the APPPROTECT in the UICR register and restarting the device (NVMC need to be enabled).
Any insight into how to achieve this on Zephyr RTOS would be greatly appreciated.