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
Describe the bug
The sx126x driver leaves the DIO1 interrupt permanently enabled, resulting in excess power consumption.
For nRF SoC's, this means the GPIOTE peripheral is permanently enabled, increasing current draw by ~15uA.
Per the datasheet (Table 8-3), DIO1 is not driven as an output in Reset, Startup, or Sleep modes.
We can therefore safely turn off the interrupt in sleep mode.
Expected behavior DIO1 pin should only have the interrupt enabled when it is actually needed (Not in sleep mode).
Impact
Minor, permanent +15uA to the current consumption of any application.
Environment (please complete the following information):
Zephyr v2.4
The text was updated successfully, but these errors were encountered:
Yes, all DIO pins have their interrupts permanently enabled in SX1276IoIrqInit.
The sx1276 has a different sleep model, so the same solution doesn't directly apply.
That driver also currently uses loramac-node implementations for sleep and standby transitions.
I don't have any hardware with the older LoRa modem however, so I can't validate any potential solutions.
Disable the DIO1 interrupt when the sx126x modem is in sleep mode.
On nRF hardware, this lets the `GPIOTE` hardware be switched off, saving
15uA.
Fixes#31569.
Signed-off-by: Jordan Yates <[email protected]>
Describe the bug
The sx126x driver leaves the
DIO1
interrupt permanently enabled, resulting in excess power consumption.For nRF SoC's, this means the
GPIOTE
peripheral is permanently enabled, increasing current draw by ~15uA.Per the datasheet (Table 8-3), DIO1 is not driven as an output in
Reset
,Startup
, orSleep
modes.We can therefore safely turn off the interrupt in sleep mode.
Expected behavior
DIO1
pin should only have the interrupt enabled when it is actually needed (Not in sleep mode).Impact
Minor, permanent +15uA to the current consumption of any application.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: