Skip to content

Fix NRF52 sleep deadlock, ESP32 WiFi check, and RAK4631 build flag#2

Open
weebl2000 wants to merge 1 commit intoIoTThinks:MCdev-PowerSaving-for-all-ESP32-NRF52-repeatersfrom
weebl2000:pr-1353
Open

Fix NRF52 sleep deadlock, ESP32 WiFi check, and RAK4631 build flag#2
weebl2000 wants to merge 1 commit intoIoTThinks:MCdev-PowerSaving-for-all-ESP32-NRF52-repeatersfrom
weebl2000:pr-1353

Conversation

@weebl2000
Copy link

NRF52: Remove nrf_gpio_cfg_sense_input/nrf_gpio_cfg_input on DIO1 pin during sleep. These PIN_CNF writes are unnecessary for System ON idle (GPIOTE from RadioLib already wakes WFE) and risk a rare GPIOTE sampling glitch where the ISR misses a rising edge, leaving DIO1 stuck HIGH with STATE_INT_READY never set — making the radio permanently deaf. Also restore FPU errata 87 workaround that was present in the original sleep() but dropped in the rewrite.

ESP32: Check mode != WIFI_MODE_NULL in safeToSleep() so that stopped WiFi doesn't incorrectly block sleep.

RAK4631: Restore accidentally removed -D NRF52_POWER_MANAGEMENT.

NRF52: Remove nrf_gpio_cfg_sense_input/nrf_gpio_cfg_input on DIO1 pin
during sleep. These PIN_CNF writes are unnecessary for System ON idle
(GPIOTE from RadioLib already wakes WFE) and risk a rare GPIOTE sampling
glitch where the ISR misses a rising edge, leaving DIO1 stuck HIGH with
STATE_INT_READY never set — making the radio permanently deaf. Also
restore FPU errata 87 workaround that was present in the original
sleep() but dropped in the rewrite.

ESP32: Check mode != WIFI_MODE_NULL in safeToSleep() so that stopped
WiFi doesn't incorrectly block sleep.

RAK4631: Restore accidentally removed -D NRF52_POWER_MANAGEMENT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant