Code running exception when used CRYS_RndInit()

Hi, I have started with "__nRF5_SDK_17.1.0_ddde560" ble_peripheral>ble-app_uart example code project(ble_app_uart_pca10100_s140).

I work with IAR Embedded Workbench IDE 9.20.2.

I edited the example code for our PCB and logic, and for the first phase, it work well.

In the second phase, I was required to implement the secured connection by Encryption bonding.

I have copied from the  ble_peripheral>ble_app_hrs example code project all "nrf_Crypto" files and "nrf_cc310_09.13.a"

The problem is that I have an HardFaultexception when calling CRYS_RndInit(..)

Thank you.

Parents
  • Hi , 

    1. Could you please check if you have selected NRF_CRYPTO_ENABLED and NRF_CRYPTO_BACKEND_CC310_ENABLED = 1 in sdk_config.h and all of the configuration under the same setting ? 

    In addition the following shoudl be selected:

    NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED

    NRF_CRYPTO_RNG_AUTO_INIT_ENABLED


    Have you tested the ble_app_hrs, do you have any similar issue ? 
    There is a discussion here that might be related to your issue.

    2. I wanted to say " for example ble_app_hrs. LESC is supported in the example. " The example is "ble_app_hrs"

Reply
  • Hi , 

    1. Could you please check if you have selected NRF_CRYPTO_ENABLED and NRF_CRYPTO_BACKEND_CC310_ENABLED = 1 in sdk_config.h and all of the configuration under the same setting ? 

    In addition the following shoudl be selected:

    NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED

    NRF_CRYPTO_RNG_AUTO_INIT_ENABLED


    Have you tested the ble_app_hrs, do you have any similar issue ? 
    There is a discussion here that might be related to your issue.

    2. I wanted to say " for example ble_app_hrs. LESC is supported in the example. " The example is "ble_app_hrs"

Children
No Data
Related