Skip to content
New issue

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

GPIO interrupt only called once on nRF52832 #8252

Closed
JoeHut opened this issue Jun 7, 2018 · 1 comment
Closed

GPIO interrupt only called once on nRF52832 #8252

JoeHut opened this issue Jun 7, 2018 · 1 comment
Assignees
Labels
area: GPIO bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@JoeHut
Copy link
Contributor

JoeHut commented Jun 7, 2018

I have a weird issue with GPIO interrupts on a custom board with a nRF52832. I have two peripherals that use GPIO interrupts (one switch and one RF module). Their drivers are implemented as Zephyr subsystems with initialization priorities that make sure they are only initialized after the GPIO driver (POST_KERNEL, priority >50). So the pins are configured in the initialization functions called by the kernel and the actual interrupt callbacks are added later in the application.

The problem I am facing now is that the interrupt callbacks are called every time on the pins of the driver that was first initialized. But the interrupt callback on the pin of the device that was later initialized is only called once and than never again. It is also interesting that the second callback is called twice if the interrupt is configured on both rising and falling edge, but than never again. The callbacks are not disabled manually until this point.

I was unfortunately not able to reproduce it on a development board since it is hard to connect the peripherals on a breakout and reproduction with a trivial example (switches on the devkit) did not show the same results.

I know it is hard to debug this without a proper way to reproduce it but I thought maybe someone has seen something similar before or can point me to places I should check.

@oliviermartin
Copy link

This issue can also be closed as this pull-request as been merged #8823

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: GPIO bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants