You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the long delay @biboc
Are you using SAMR30-XPRO or a custom board ?
Were you able to reproduce on another SAM0 MCUs ?
I tried to reproduce it on my SAMR21-XPRO and SAML21-XPRO (don't have SAMR30). I kinda reproduce it because my hand touch to EXT1 connector where the PA06 is located triggering unexpected IRQs. Setting a pull-down with the PA06 IRQ seems to fix it.
Otherwise I was not able to reproduce any spurious IRQ after flashing your code snippet (and nothing else) to these boards (and make sure I was far away this time...)
Does it help to disable the mux configuration for your pin before modifying it ? like:
Description
Erasing then write mux can generate spurious IRQ from another gpio sharing same extint
Steps to reproduce the issue
Example with PA6 and PB22 which share extint[6]:
This code triggers some time (maybe 2sec, maybe 20sec) an IRQ on PA6!
I can confirm that the line PA6 stays to always 0 so there should not be any IRQ
I suggest to change /~https://github.com/RIOT-OS/RIOT/blob/2023.10-branch/cpu/sam0_common/periph/gpio.c#L147
by
Expected results
Set the mux without trigger an interrupt
Actual results
Trigger non desired interrupt
Versions
RIOT 2023-07
The text was updated successfully, but these errors were encountered: