Hello,
is it possible to read UICR at address FF8000 from a non secure application for nrf(160.
If yes, can you provide sample code and CONFIG to enable in prj.conf.
Best Regards
Hello,
is it possible to read UICR at address FF8000 from a non secure application for nrf(160.
If yes, can you provide sample code and CONFIG to enable in prj.conf.
Best Regards
See this post, it's for nRF54, but the same methods apply to nRF91 as well.
RE: Static Partition Alignment
see also https://github.com/nrfconnect/sdk-nrf/blob/main/samples/tfm/tfm_hello_world/src/main.c
I applied to nrf9160. Modified the ranges in C:\ncs\v2.9.0\zephyr\modules\trusted-firmware-m\nordic\include\tfm_read_ranges.h. In my case &UICR->OTP[0] is 0xFF8100. I rebuild all but it does not read the OTP[0].
How do I know that it is compiling the new ranges?
Thanks
Marbro1965 said:I rebuild all but it does not read the OTP[0].
Did you get any error codes? What did it read?
The error code is NRF_ERROR_INVALID_PARAMS.
I thought it was address but I cheched and it is &UICR->OTP[0], The same define in ranges. In 2.9.0 I have only one ranges file, while in 2.7.0 there are many.
Now I went back to 2.7.0 because of many problems on intellisense. But I did not check if in 2.7.0 it works. I have to modify all ranges file because i do not know which is used.
Anyway i do not like The idea to modifica sdk, and was looking to a way to override those ranges. But it is quite difficult to find information about.
The error code is NRF_ERROR_INVALID_PARAMS.
I thought it was address but I cheched and it is &UICR->OTP[0], The same define in ranges. In 2.9.0 I have only one ranges file, while in 2.7.0 there are many.
Now I went back to 2.7.0 because of many problems on intellisense. But I did not check if in 2.7.0 it works. I have to modify all ranges file because i do not know which is used.
Anyway i do not like The idea to modifica sdk, and was looking to a way to override those ranges. But it is quite difficult to find information about.