STM32 EXTI does not trigger interrupt
Sorry, I misread your question. The problem is you're not clearing the interrupt flag or exiting the ISR. Instead, your handler just goes into an infinite loop. It should be clearing the interrupt flag so it can trigger again and then exiting.