2023-05-10 12:27 AM - edited 2023-11-20 05:52 AM
Hi,
when configuring PA0/EXTI0 interrupt in CubeMX, the related code works well: when PA0 pin is toggeled, the ISR is called and following up from this, the code jumps into HAL_GPIO_EXTI_Callback().
But when doing the same with PA2/EXTI2 or PA3/EXTI3 this does not work any more. Although configured the same in CubeMX and although the generated code looks quite similar, the EXTI2/3_IRQHandler() and resulting from that HAL_GPIO_EXTI_Callback() are never called. Interrupts are enabled in both cases.
This is what my CubeMX configuration looks like:
The CubeMX-generated code itself also looks very similar and uses EXTI2/EXTI3 instead of EXTI0.
So my question: is there some special with EXTI2 or EXTI3 comparing to EXTI0?
I'm using the NUCLEO-F411Re-board.
Thanks!
2023-05-10 01:13 AM
Check the solder bridges, especially to VCP on STLink. Read the Nucleo's User Manual.
JW