2025-08-30 2:32 AM
Hello, I am using the STM32F407VGT6 microcontroller for a project involving GPIO interrupts, but the interrupt is not triggering reliably. Despite configuring the interrupt settings, it occasionally works, but other times it misses the edge completely.
Here’s my setup:
I’ve attached the STM32F407VGT6 Datasheet for this model if that helps in troubleshooting.
Has anyone experienced similar issues with the STM32F407VGT6? Any tips on debugging or configuration would be appreciated.
Thanks in advance for your help!
2025-08-30 2:58 AM
Hi,
Probably the problem is in your software,
Because INT on rising edge will always trigger, except you suppress it in your software.
So just try using the INT without any added debouncing or whatever,
And check it's working fine.
Then look for the error in your software.
2025-08-31 3:36 PM
The chip is a hardware state machine, unlikely to be anything wrong there. Most likely to be a code bug, wiring issue, misunderstanding or misinterpretation.
At a wild guess, if it's working sometimes and not others, perhaps you are stuck inside another interrupt for too long.
2025-09-01 2:04 AM
As the others have said. most likely something in your software and/or hardware - which you haven't shown..
@OliverBrooks wrote:the interrupt is not triggering reliably. Despite configuring the interrupt settings, it occasionally works, but other times it misses the edge completely.!
What is the source of the edge?
Are you sure that the edge is actually happening reliably?
Show your schematics, and some good, clear photos of your setup.
@OliverBrooks wrote:
- Debouncing: Software debouncing applied
Maybe your software debouncing is incorrectly ignoring events?
Please post your code - see: How to write your question to maximize your chances to find a solution