Conversation
bugadani
requested review from
MabezDev,
bjoernQ and
playfulFence
as code owners
September 21, 2026 15:36
bugadani
marked this pull request as draft
September 21, 2026 15:37
bugadani
force-pushed
the
s31-deep-sleep
branch
from
September 24, 2026 07:41
6e2be34 to
9998f7e
Compare
|
New commits in main have made this PR unmergeable. Please resolve the conflicts. |
bugadani
force-pushed
the
s31-deep-sleep
branch
2 times, most recently
from
September 24, 2026 09:17
2f1563e to
7adf468
Compare
|
New commits in main have made this PR unmergeable. Please resolve the conflicts. |
bugadani
force-pushed
the
s31-deep-sleep
branch
from
September 25, 2026 15:10
7adf468 to
427580f
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Light sleep powers the BBPLL down. The BLE controller cannot transmit after the wake without it. Co-authored-by: Cursor <cursoragent@cursor.com>
The Bt wakeup source refuses a sleep when the controller is awake or when its next event is too close. The controller turns the PHY off before the chip sleeps, so the BBPLL can power down. The controller wakes 3200 us before its event, as in ESP-IDF with light sleep. Co-authored-by: Cursor <cursoragent@cursor.com>
A crystal that stays on through a light sleep needs the bias current of the active mode, as on ESP32-C3 and ESP32-S3. Co-authored-by: Cursor <cursoragent@cursor.com>
The Bt wakeup source refuses a sleep while the controller is awake. The wakeup callback tells the controller whether the BLE timer ended the sleep, as in ESP-IDF. Co-authored-by: Cursor <cursoragent@cursor.com>
The C5 takes the ESP32-C6 path with the ESP-IDF light-sleep delay of 2500 us. The C5 reconfigures the BBPLL after a light sleep, so BLE needs no BBPLL request. Co-authored-by: Cursor <cursoragent@cursor.com>
The clocks ran on during a light sleep that kept the crystal on, which kept the sleep current high. ESP-IDF ungates only the clocks that a driver requests, and no esp-hal driver requests one. Co-authored-by: Cursor <cursoragent@cursor.com>
The H2 takes the ESP32-C6 path with the ESP-IDF light-sleep delay of 5100 us. Co-authored-by: Cursor <cursoragent@cursor.com>
The C61 takes the ESP32-C6 path, as in ESP-IDF. All NPL controllers now support light sleep. Co-authored-by: Cursor <cursoragent@cursor.com>
The BTDM2 controller claims the Bt wakeup source with modem sleep, as in ESP-IDF btdm_lp. The Bt entry hook refuses the sleep when the next event is too close, and the controller wakes 1800 us before its event. All BLE controllers now support light sleep. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
bugadani
force-pushed
the
s31-deep-sleep
branch
from
September 25, 2026 15:34
427580f to
8ce7ac6
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
bugadani
force-pushed
the
s31-deep-sleep
branch
from
September 25, 2026 19:19
8ce7ac6 to
5e8c0d4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on top of #6288
The key finding is that LP_ADC must be kept enabled if PMU is programmed with
c_channel = 1.