PA1 EXTERNAL INTERRUPT ISSUE
Hello,
STM32CubedIDE, STM407G DISC1 BOARD
I am trying to trigger an external interrupt by using a button connected to PA1 pin.
My configurations are below;
1-) I enabled 7.bit in NVIC_ISER register. IRQN_EXTI0 is enabled
2-) I enabled GPIOAEN in RCC register. GPIOA clock is enabled.
3-) I wrote '1' into the TR1 in EXTI> RTRS register for RISING EDGE.
4-) I enabled SYSCFG clock.
5-) Although the reset value is already '0'(which is corresponding to A Port)
for SYSCFG_EXTICR1> EXTI1, I wrote '0' again for Port A and pin 1(EXTI1)
6-) I set EXTI>IMR> MR1 bit in the register for not masking the line 1( due to being 1.pin )
7-) Other pin configurations are, Pull-Down, High-Speed and Push-Pull for OTYPE
I succeed in making it work for PA0 and PB0 external interrupts individually.I debugged each step and it seems everything is fine. I suspect due to I use first pin, I am missing something here.I haven't figured it out yet. However, PA0 and PA1 share most register common.Only difference could be the MR bits but I have checked them several times.
For better understanding, I tried to capture the high logic with a single LED using PA1 button, after I configurated it identically as in the above.Result is positive, I can capture it is able to be high but cannot trigger interrupt. What am I missing? I am looking forward to handle the issue. Thank you for your assistance.
Respects Khansokhua
