cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H503 External Interrupt HAL Library Doesn't work

Gerald_W
Associate III

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 

 

 

Screenshot 2025-03-15 234431.png

Screenshot 2025-03-15 234452.png

Screenshot 2025-03-15 234210.png

Screenshot 2025-03-15 234233.png

Gerald_W_1-1742108537983.png

 

 

    

1 REPLY 1
TDK
Guru

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:

STM32CubeH5/Projects/NUCLEO-H533RE/Examples/GPIO/GPIO_EXTI/Src/main.c at 047a3e84bc870a5609d2f9f38c74caf20d033403 · STMicroelectronics/STM32CubeH5

If you feel a post has answered your question, please click "Accept as Solution".