This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Custom SPM dependencies

Hello,

We need to add secure services to our application, and I followed the guide in https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application

However the build fails because:

C:/Nordic/v1.5.0/nrf/subsys/nonsecure/secure_services_ns.c:26: undefined reference to `spm_request_random_number_nse'
collect2.exe: error: ld returned 1 exit status

It seems that it is expecting a function that generates secure random numbers (which we do not need this in our project). Searching for

this function call, it is defined in nrf/subsys/spm\secure_services.c and available if CONFIG_SPM_SERVICE_RNG is set.

I explicitly disable this config option (CONFIG_SPM_SERVICE_RNG=n) in the prj.conf off both the application and the custom SPM,

but it still appears to be set somewhere else. Where is CONFIG_SPM_SERVICE_RNG set and how can I disable it ?

Or is it best to also copy the files in nrf\subsys\smp and add them to my custom SPM project ? 

Related