Is it possible to call sd_ecb_block_encrypt from interrupt? And if so, what is the highest interrupt level that can be used?
I'm having a timer interrupt triggering some functions and calling this API function, but that results in a hard fault.
Is it possible to call sd_ecb_block_encrypt from interrupt? And if so, what is the highest interrupt level that can be used?
I'm having a timer interrupt triggering some functions and calling this API function, but that results in a hard fault.
You can call softdevice api from application interrupt priority 5 and lower:
https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/processor_avail_interrupt_latency/exception_mgmt_sd.html
You can call softdevice api from application interrupt priority 5 and lower:
https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/processor_avail_interrupt_latency/exception_mgmt_sd.html
Thanks. I will try that. My timer needs to be slightly higher interrupt level, but I just need to figure out a way to trigger a lower priority IRQ from my timer ISR.