2025-03-16 12:02 AM
Dear All,
Recently I am learning STM32H503CBU6, but I find the external interrupt doesn't work with HAL library. I want to get reference from official example code, I only find external interrupt example code with LL library in official SDK. I think STM32H5x HAL should support external interrupt. My code and CUBEMX setting showed as below. Could you kindly help advise about this problem?
Thanks for your help so much!
Best regards,
Gerald
2025-03-16 6:19 AM
Looks right it's calling the right functions to me.
Does EXTI5_IRQHandler get called? Set a breakpoint.
Does the IDR5 bit in GPIOB->IDR bit 5 get toggled as the line is toggled?
Example: