ArduinoCore-stm32l0 icon indicating copy to clipboard operation
ArduinoCore-stm32l0 copied to clipboard

Reason for no PIN_ATTR_EXTI on PA0 with LoRaWAN

Open gitMichael opened this issue 3 years ago • 2 comments

What's the exact reason for that? Mentioned at:

Your declaration will not work, because some internal use prevents PIN_ATTR_EXTI on PA0 (so either your interrupt will work, or LoRaWAN, but not both).

Originally posted by @GrumpyOldPizza in https://github.com/GrumpyOldPizza/ArduinoCore-stm32l0/issues/103#issuecomment-529108501

gitMichael avatar Nov 06 '20 21:11 gitMichael

PA0 aliases with PC0. Latter one is used for SX1276. So PA0 cannot have a EXTI on it, because that one is taken by PC0.

PA0 is instead routed as RTC TAMP pin, so same functionality ... almost.

GrumpyOldPizza avatar Nov 06 '20 23:11 GrumpyOldPizza

OK I see now. But I think you mean PB0 which is used for the SX1276 DIO2 IRQ input on the EXTI0 line (at least at cmwx1zzabz). Thanks.

gitMichael avatar Nov 07 '20 08:11 gitMichael