If you're working with interrupts, you might see an Out of Interrupt Events error.
This happens when the system is no longer able to run user code and is stuck in the kernel, most frequently because:
or:
If you call InterruptAttach() in your code, look at the handler code first and make sure you're properly clearing the interrupt condition from the device before returning to the OS.
If you encounter this problem, and you're sure all your interrupt handlers are fine, it could be caused by broken interrupt callouts in the BSP.