• Debug single step and interrupts not executing

    I am trying to track down a hard to find issue on a Cortex-M4. Leading to a lot of single stepping.

    I have noticed that the CPU does not seem to process interrupts as expected when single stepping.

    E.g.

    Currently the CPU core has PRIMASK = 0 and ICSR…

  • Processor always jumps to default exception handler

    Good day,

    My code for configuring the NVIC and peripheral interrupts are already working as expected, but the only problem now is the debugger shows that the processor always jumps to the default handler (__default_handler) and never on my defined interrupt…

  • Cortex-M: Does the event register only get set when an IRQ changes from not pending to pending?

    I recently had a race-condition in an application on a Cortex-M4 microcontroller, because I used a wrong order of __SEV() and __WFE() instructions to put my chip to sleep. While debugging this issue, I wondered when exactly the event register does get…