This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF5340: secure memory access and difference between NSC parameters.

Hello!

I'm reading the functions that exist in SPU HAL.


The function nrf_spu_flashnsc_set is used to configuring non-secure callable flash region.
Which is great to use when accessing secure memory.

I have read the documentation, but I can't understand what the difference is between two parameters being the:

Non-secure callable flash region ID and the Flash region number.

What is the difference ?
According to the documentation, I assume that the non-secure callable flash region ID is between the numbers 0..63.
But I don't get what the flash region number is.

Another question is, what is the workflow to store data on the secure memory. Right now do I store variables on specific memory address and secure those memory address.
But that doesn't feel like a long term solution.
Is there any workflow how to store functions on the secure memory that has been configured and how to access them?

Best regards
Buttman

Related