This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Invalid IRQ priority

After some time debugging an issue I had, I found out that my code was setting the I2C interrupt priority to 0, and at the same time that I'm running a Soft Device on my nrf52832. I see that only priority levels 2, 3, 6 and 7 are allowed for the application, while 0, 1, 3, 4 are reserved for the Soft Device.

I fixed that and apparently the issue is gone, but I don't really understand why. What is that goes wrong if you use any of the invalid priority levels for an application interrupt? Is it "only" that some BLE interrupts may not be served quick enough, thus causing disruption on the BLE link or there's something else?

Related