nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

Connectivity AND security with limited RAM

I'm currently developping an application based on the Zephyr OS with its BLE protocol stack using the nRF52805 SoC.
Due to security specifications, some cryptographical features of the built-in mbedTLS library shall be used.
Since the nRF52805 does only have 24 kB of RAM, I'm currently not able to fit the build into the available memory, even after a lot of optimizations via prj.conf.
Is the nRF52805 as a promoted IoT Soc actually intended to be able to run Zephyr applications including mbedTLS or is it only useful for simple beaconing without any cryptographical support?

Parents Reply
  • Hi

    Try to add the following to CMakeLists.txt:

    zephyr_link_libraries(nrfxlib_crypto)
    

    Although, I think this should be done by the configuration somewhere.
    I will ask our developers about this and return if I find a better solution. (EDIT: They agree that this is a sufficient way to include the ocrypto files at the moment)

    After some reading into this I suggest that you do not CONFIG_NORDIC_SECURITY_BACKEND or CONFIG_OBERON_BACKEND(Which just chooses the backend for Nordic Security backend) , as these will select mbedtls, which makes your application take more space:

    CONFIG_NRF_OBERON should be enough I think.

    Regards,
    Sigurd Hellesvik

Children
Related