Hello, I have been using the SPM to read the UICR->OTP[0] register in SDK1.2.1, 1.4.2, and 1.5.1 but it's not able to when I'm using version 1.9.1.
I have patched the \1.9.1\nrf\subsys\spm\secure_services.c with:
{.start = NRF_UICR_S_BASE,
.size = sizeof(NRF_UICR_Type)},
Using this function: spm_request_read(&result, 0x00FF8108, 4);
I see when using a debuger that it copies the content of 0x00f f8108, but the result is not 0x00000002 but 0xdeaddead.
What is locking the access, and how to unlock it?
I use this command to program the value from Windows command prompt: nrfjprog --memwr 0x00FF8108 --val 2 -f nrf91
I verify that the value is correct with this command: nrfjprog --memrd 0x00FF8108 -f nrf91