I am trying to compile my custom BLE application into Babblesim using the nrf5340bsim/nrf5340/cpuapp board in nRF Connect SDK v3.1.0. The application uses PSA Cryptography and includes NRF_SECURITY, however this is the Kconfig warning I get and subsequent psa/crypto.h include errors.
warning: NRF_SECURITY (defined at /home/jai/Projects/Repositories/mono/firmware/external-3.1.0/nrf/subsys/nrf_security/Kconfig:32) was assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: SOC_FAMILY_NORDIC_NRF (=n). See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_NRF_SECURITY and/or look up NRF_SECURITY in the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
This is my build command:
west build -b nrf5340bsim/nrf5340/cpuapp --sysbuild
Header file include error:
fatal error: psa/crypto.h: No such file or directory
17 | #include <psa/crypto.h>
| ^~~~~~~~~~~~~~
Let me know if anyone has tried to include NRF_SECURITY into a BabbleSim application or seen this before. Thank you!
I can also try to open an issue into the BabbleSim github if that is more appropriate