Hi,
I need to use the cryptocell in a project with a preemptive OS. Are there any relevant code examples available, or at least some general guidelines and precautions (e.g., for the initialization of the cryptocell)?
Thanks,
Damian
Hi,
I need to use the cryptocell in a project with a preemptive OS. Are there any relevant code examples available, or at least some general guidelines and precautions (e.g., for the initialization of the cryptocell)?
Thanks,
Damian
Hi Damian and Jean-Marc,
We are facing the same problem with FreeRtos and the BLE stack. The CC310 is hanging in the SaSi_HalWaitInterrupt.
How did you manege to mask the interrupts? Could you post a snippet of the code or point us in the right direction
Thanks in advance,
Rudy
Hi, although a little late here is a snippet that worked for me to mask the basepri:
NVIC_EnableIRQ(CRYPTOCELL_IRQn); NRF_CRYPTOCELL->ENABLE = 1; SaSi_LibInit(); /* First read the current basepri value */ uint32_t prevBasepri = __get_BASEPRI(); /* Mask (disable) all interrupts with priority greater or equal to 1 */ __set_BASEPRI( 1 << ( 8 - __NVIC_PRIO_BITS) ); CRYS_RndInit(&state, &buf); /* Restore the previous basepri */ __set_BASEPRI(prevBasepri);
Related reading where I also posted the snippet:
Hi, although a little late here is a snippet that worked for me to mask the basepri:
NVIC_EnableIRQ(CRYPTOCELL_IRQn); NRF_CRYPTOCELL->ENABLE = 1; SaSi_LibInit(); /* First read the current basepri value */ uint32_t prevBasepri = __get_BASEPRI(); /* Mask (disable) all interrupts with priority greater or equal to 1 */ __set_BASEPRI( 1 << ( 8 - __NVIC_PRIO_BITS) ); CRYS_RndInit(&state, &buf); /* Restore the previous basepri */ __set_BASEPRI(prevBasepri);
Related reading where I also posted the snippet: