Hello,
My application runs in non-secure mode on the nRF9160, and I would like to disable external access to CPU, RAM and Flash.
I understand this is done by setting the APPROTECT bit in the UICR register. Ideally it will be done in production, with the nrfjprog tool.
However, can my non-secure application set this bit if it is not set ? Or must it be done in a secure context, e.g. the by SPM application ?
If it can be done by the SPM, can you share an example of how it can be done ?