InterruptIn on nucleo

15 Oct 2014

If youve tried to use InterruptIn on Nucleo with more than one pin (at same time) on lines 5 thru 15, maybe you've noticed a problem. The interrupt handler for EXTI9_5_IRQn and EXTI15_10_IRQn needs to handle all their associated interrupt lines, but the handlers for 0 to 4 only need to handle one. An example of the fix is here https://developer.mbed.org/users/dudmuck/code/mbed_src_STM32L152RC/file/b0a521626f48/targets/hal/TARGET_STM/TARGET_NUCLEO_L152RE/gpio_irq_api.c

Without the fix, the interrupt handler will be called endlessly, because the interrupt wouldn't be acknowledged in the handler.