Error when calling crypto_backend init_fn

On my nRF52840 with SD 17.1 through nrf_crypto_init the function p_backend->init_fn() is called.

The only backend I have enabled is CC310 via setting

CFLAGS += -DNRF_CRYPTO_BACKEND_CC310_ENABLED=1

in Makefile.
The Issue is that this always yields an error, which cannot be decoded properly:
<error> app: app_error_print():

<error> app: Fault identifier:  0x1001

<error> app: Program counter:   0x38512

<error> app: Fault information: 0x1
What could be the reason for the init function to throw an error=
Cheers!
Parents
  • Hello,

    The fault identifier (NRF_FAULT_ID_APP_MEMACC) indicates that the error was raised by the softdevice due to a memory violation as described here:

    And the fault information points to the invalid access either being made to either the CLOCK or POWER (both are reserved to the Softdevice, see system on chip resource requirements):

    However, I do not see why this access violation would happen while initialising the cc310 backend. If you have not tried already, I suggest you try to look up the PC address (0x38512) in your *.elf/.*.out file to see where that points to. 

    Best regards,

    Vidar

Reply
  • Hello,

    The fault identifier (NRF_FAULT_ID_APP_MEMACC) indicates that the error was raised by the softdevice due to a memory violation as described here:

    And the fault information points to the invalid access either being made to either the CLOCK or POWER (both are reserved to the Softdevice, see system on chip resource requirements):

    However, I do not see why this access violation would happen while initialising the cc310 backend. If you have not tried already, I suggest you try to look up the PC address (0x38512) in your *.elf/.*.out file to see where that points to. 

    Best regards,

    Vidar

Children
Related