In cc310 SaSi_AesBlock isn't returning from the function call

Hello there,

I want to use the CC310 module for encryption.

I uploaded an example(i.e. \nRF5_SDK_17.1.0_ddde560\examples\crypto\nrf_cc310\aes) from the SDK to my nrf 52840 dev kit and in the debug I see that all tests are going well and the module is working. But when I wanted to add encryption to my project which has ble using NUS profile, then I ran into problems. I wanted to use AES in ECB mode. The module initialization functions SaSi_AesInit,  SaSi_AesSetKey from example pass successfully and output is SA_SILIB_RET_OK. But when I want to use SaSi_AesBlock for encryption i see the data being  encyrpted but the function is not returning SA_SILIB_RET_OK, it is getting struck inside it and isn't coming out of the function. Is there anything i need to enable in sdk_config file.

Can anyone please help me in solving the issue.

Regards,

Shafi

Parents Reply
  • Hi Shafi, 

    I don't see any reason the code in the blog shouldn't work with NRF52832. Please try to implement it.

    shafi said:
    I tried disabling softdevice, but it isn't working.

    Are you saying that without the softdevice initialized you also don't have it working ? So what's the difference between the example (that works) and your application ? 

    Anyway, if you can follow the blog to make it work with nRF52840 I don't see much point using CC310 in this case. 

Children
Related