Open b-zee opened 2 years ago
After some thinking it seems my mental model isn't exactly right. Although the documentation isn't exactly correctly describing it either.
It seems that the priority in terms of preemption is different from the order in which pending exceptions are activated. I think these are both referred to as 'priorities', while there is a difference. Perhaps someone more enlightened than me can put this in more succinct wording to highlight that my observed behavior is the correct behavior according to the ARMv6-M architecture...
Does raspberrypi/pico-sdk#245 resolve this issue?
According to section 2.3.2 in the RP2040 Datasheet:
During testing I have not been able to have the
TIMER_IRQ_1
preempted byTIMER_IRQ_0
(without setting the dynamic level). When setting the dynamic level ofTIMER_IRQ_1
to3
, it does get interrupted byTIMER_IRQ_0
, but according to the cited documentation that should not be necessary.