I tried a little, it didn't work. Got hard_fault.
I tried a little, it didn't work. Got hard_fault.
Hi,
you cannot call SoftDevice API from APP_IRQ_PRIORITY_HIGH (1). That is because every SoftDevice API call is triggering SVC interrupt and this interrupt is on level 2 (lower than application high level).
You can call SoftDevice (including sd_nvic_... functions) from APP_IRQ_PRIORITY_LOW (3) and main context.
Hi,
you cannot call SoftDevice API from APP_IRQ_PRIORITY_HIGH (1). That is because every SoftDevice API call is triggering SVC interrupt and this interrupt is on level 2 (lower than application high level).
You can call SoftDevice (including sd_nvic_... functions) from APP_IRQ_PRIORITY_LOW (3) and main context.
Thank you!