HW setup:
SW setup:
Relevant register contents
The user switch interrupt works as expected but when I toggle pin PA11 (output connected to input pin PA10) the MCU resets and I'm thrown in the IVOR1 exception handler.
The behaviour I'd like to implement is sensing the falling edge of an external signal connected to pin PA10.
Solved! Go to Solution.
So the cause of my problem is that a machine check exception happens because vPortISRHandler is called BEFORE the FreeRTOS scheduler has started. This is in turn because an external input interrupt happens before the scheduler has started.
A potential solution would be to disable interrupts until after the scheduler has started.
So the cause of my problem is that a machine check exception happens because vPortISRHandler is called BEFORE the FreeRTOS scheduler has started. This is in turn because an external input interrupt happens before the scheduler has started.
A potential solution would be to disable interrupts until after the scheduler has started.