I am trying to port BLE_APP_Interactive to nRF52840 as I require 2 uarts in my application and larger memory. I realise I need to change the crypto to CC310, and I have followed the settings of ble_app_hrs_c. However my application fails on the call
err_code = CRYS_RndInit(&p_ctx->crys_rnd_state, p_work_buffer);
and my application reboots
The application reports
<error> hardfault: HARD FAULT at 0x00000000
<error> hardfault: R0: 0x000000E8 R1: 0x00000000 R2: 0xCAFEBABE R3: 0xCAFEBABE
<error> hardfault: R12: 0x00000001 LR: 0xFFFFFFE9 PSR: 0x2000003A
<error> hardfault: Cause: The processor has attempted to execute an instruction that makes illegal use of the EPSR.
I changed NRF_CRYPTO_BACKEND_CC310_ENABLED to 1, and disabled the other backend by setting NRF_CRYPTO_BACKEND_OBERON_ENABLED to 0, and also the NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED to 0. I also added all the CC310 modules to the project. The project compiles without error.