Stampede
EXTI Pulse Count Wrong Debug
Symptom
Three pulses on the scope, EVENTS:6 on the terminal. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
The bench sends one burst of pulses on PA0 while your program runs. Then USART1 prints one line, EVENTS:<pulses>. A pulse counts from the moment it starts.
Notes
Some pulses are spikes, over before the processor can enter a handler.