Visitor II
October 6, 2020
Question
NMI and Hardfault interrupt issue
- October 6, 2020
- 1 reply
- 2373 views
Softwares Details:
µVision IDE : version 5.31.0.0
STM32CubeMx : version 5.4.0
Hardware Details:
Mcu: STM32G030K6T6
Programmer : STLink-V3Mini
Work Description:
I configured 3 pins of mcu as external interrupts triggering on both rising and falling edges from STM32cubeMx. Now when i press buttons interrupts and every thing is working fine in code but sometimes it mess up.
Problem:
The issue iam currently facing is sometimes when i press buttons due to some reason NMI or HardFault interrupts occur and code stuck into NMI_Handler or HardFault_Handler functions in the c file stm32g0xx_it.c.
I spent hours on debugging but couldn't figure out the problem. Any help would be appreciated!
Attached is .rar file of complete project.
