3 Replies Latest reply on Jul 4, 2018 11:25 AM by JoMe_264151

    Prevent returning to nested interrupt

      Let there be interrupts configured with multiple priorities. If high-priority interrupt is to be executed while the low-priority interrupt is executing, CM0 nests the interrupts, pre-empts the low-priority interrupt and executes the high-priority one.


      Now, the question - we would like to decide in high-priority interrupt whether we want to return the execution to the low-priority interrupt or skip/disable it. Is this possible?

      Would changing the LR from 0xFFFFFFF1 to 0xFFFFFFF9 and taking data off the stack do it?