Hello everyone.
I made my own board with nrf2840 and wanted to use the CC310 module for encryption.
I uploaded an example from the SDK to my board and in the debug I see that all tests are going well and the module is working. But when I wanted to add the library libnrf_cc310_0.9.13.a to my project, then I ran into problems. I wanted to use AES in CBC mode. The module initialization functions SaSi_AesInit, SaSi_AesSetIv and SaSi_AesSetKey from example pass successfully and output is SA_SILIB_RET_OK. But when I want to use SaSi_AesBlock or SaSi_AesFinish for encryption, I catch a hard fault in debug. My project uses a S140 softdevice and works with a smartphone via NUS. I tried disabling everything and dont upload softdevice and running only the code with encryption tests that I copied from the example, but they don't work and program goes to hard fault handler. What could I have forgotten while adding this library to the project? I use SDK17, softdevice get clock from internal source. This is my first experience with this MCU and cryptocell unit.
Thanks!



