Using trusted storage with minimal tfm profile type with nrf9160

HI! I am trying to decrease the memory use of my application that is built for a nrf9160 and noticed that tfm creates a 256kB partition that it only uses around 99kB of. RIght now i am only using psa to generate random numbers and to store a struct that takes around 250 bytes.

I found this thread: RE: psa_ps_set() fails for PSA protected storage without TF-M

that led me to https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/libraries/security/trusted_storage.html that says that it is possible to use trusted storage without tf-m.

If that is possible i would be able to use the minimal instead of the full profile of tfm.

I am able to build the project from: RE: psa_ps_set() fails for PSA protected storage without TF-M for the nrf9160dk board but not for the *_ns one.

When i try to build for _ns and add:

CONFIG_BUILD_WITH_TFM=y
CONFIG_TFM_PROFILE_TYPE_MINIMAL=y

i get:

fatal error: psa/protected_storage.h: No such file or directory

My question is if it is possible to use the minimal tfm configuration and then use the psa api with trusted storage or do i have to switch over to nvs/settings to lower the memory usage?

Parents Reply Children
No Data
Related