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

nRF53 Non-Secure app Entropy

Hi, I am building an application on the nrf5340dk using using nrf5340dk_nrf5340_cpuappns as the target board.

When I have CONFIG_NETWORKING=Y enabled in my prj.conf I am getting this build error:

#error "No cryptocell or cryptocell_sw node labels in the devicetree

From the source file entropy_cc310.c

I realize that the non-secure app has to call the cc312 driver through the SPM services.

However looking in the file spm/Kconfig i found:

config SPM_SERVICE_RNG
    bool "Request random numbers"
    default y if SPM
    select NORDIC_SECURITY_BACKEND if IS_SPM
    select FPU if IS_SPM

# NORDIC_SECURITY_BACKEND is not supported on 53 yet
    depends on ! SOC_NRF5340_CPUAPP

    help
      The Non-Secure Firmware is not allowed to use the crypto hardware.
      This service allows it to request random numbers from the SPM.

Yet it seems that that the SPM_SERVICE_RNG is currently not allowed on the nrf53 for some reason.

Can you better help me understand the issue here, and if there is a workaround. Thanks.

Parents Reply Children
No Data
Related