We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I attach 2 interrupts on pins PD1 and PA9 it works, both handler1 and handler2 are called correctly:
attachInterrupt(digitalPinToInterrupt(PD1), handler1, FALLING); attachInterrupt(digitalPinToInterrupt(PA9), handler2, FALLING);
But when I use pins PA15 and PB15 only the second one is ever called. For example if I use this:
attachInterrupt(digitalPinToInterrupt(PA15), handler1, FALLING); attachInterrupt(digitalPinToInterrupt(PB15), handler2, FALLING);
I only see handler2 called. If I switch order and use this:
attachInterrupt(digitalPinToInterrupt(PB15), handler2, FALLING); attachInterrupt(digitalPinToInterrupt(PA15), handler1, FALLING);
Only handler1 is called. Complete code is in attachment.
To Reproduce
Desktop (please complete the following information):
stm32g_problem_with_PA15_PB15_interrupt.ino.txt
The text was updated successfully, but these errors were encountered:
This is normal. EXTI is linked to gpio pin number not gpio port. It is the same for all Px15.
Sorry, something went wrong.
No branches or pull requests
When I attach 2 interrupts on pins PD1 and PA9 it works, both handler1 and handler2 are called correctly:
attachInterrupt(digitalPinToInterrupt(PD1), handler1, FALLING);
attachInterrupt(digitalPinToInterrupt(PA9), handler2, FALLING);
But when I use pins PA15 and PB15 only the second one is ever called. For example if I use this:
attachInterrupt(digitalPinToInterrupt(PA15), handler1, FALLING);
attachInterrupt(digitalPinToInterrupt(PB15), handler2, FALLING);
I only see handler2 called. If I switch order and use this:
attachInterrupt(digitalPinToInterrupt(PB15), handler2, FALLING);
attachInterrupt(digitalPinToInterrupt(PA15), handler1, FALLING);
Only handler1 is called. Complete code is in attachment.
To Reproduce
Desktop (please complete the following information):
stm32g_problem_with_PA15_PB15_interrupt.ino.txt
The text was updated successfully, but these errors were encountered: