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

Using ENTROPY_CC310 with BT

If I add

CONFIG_BT=y

CONFIG_BT_PERIPHERAL=y

to tests/crypto/prj.conf then CONFIG_ENTROPY_CC310=y gets turned off when building.  By default, this will then cause a hard fault if anything calls sys_rand32_get().

What are the proper configs to use ENTROPY_CC310 with Bluetooth?

Parents Reply Children
  • Hello, 

    There was a dependency in CC310: 

    entropy: cc310 driver depends on !BT_LLL_VENDOR_NORDIC
        
        The selection of BB_LLL_VENDOR_NORDIC results in inclusion of
        drivers/entropy/entropy_nrf5.c which then conflicts with the cc310
        entropy driver.
        Although the entropy_nrf5.c driver requires that ENTROPY_NRF_FORCE_ALT
        is not set, then the forced selection of entropy nrf5 rng by
        BB_LLL_VENDOR_NORDIC, results in this dependency not working as
        expected.
        
        Thus, BB_LLL_VENDOR_NORDIC, is added as a dependency to ENTROPY_CC310.

    This will be removed in this pull request.

    Kind regards,
    Øyvind

Related