Skip to content

P4: light SLEEP with timer and UART wake#5564

Draft
pmnxis wants to merge 3 commits into
esp-rs:mainfrom
pmnxis:pmnxis/p4_sleep_feat
Draft

P4: light SLEEP with timer and UART wake#5564
pmnxis wants to merge 3 commits into
esp-rs:mainfrom
pmnxis:pmnxis/p4_sleep_feat

Conversation

@pmnxis
Copy link
Copy Markdown
Contributor

@pmnxis pmnxis commented May 12, 2026

DRAFT
Adds initial light-sleep support for ESP32-P4 (ECO5+, 3.x)
I surveid from IDF's pmu_sleep_start flow and wire LP_TIMER + UART0/UART1 wake bits,
and fix Rtc::time_since_boot_raw to wait one LP_SLOW_CLK period after the main_timer_update strobe so the first call returns a valid counter.

I am testing on EV Board v1.7 / chip rev v3.2 (ECO7).

Submission Checklist 📝

  • I have updated existing examples or added new ones (if applicable).
  • I have used cargo xtask fmt-packages command to ensure that all changed code is formatted correctly.
  • My changes were added to the CHANGELOG.md in the proper section.
  • I have added necessary changes to user code to the latest Migration Guide.
  • My changes are in accordance to the esp-rs developer guidelines

Extra:

Pull Request Details 📖

Description

Basic RTC and SLEEP implementations for light speed task and simple and UART wake-up.

Testing

Write down ASAP

@pmnxis pmnxis mentioned this pull request May 12, 2026
5 tasks
@github-actions github-actions Bot added the merge-conflict Merge conflict detected. Automatically added/removed by CI. label May 12, 2026
@github-actions
Copy link
Copy Markdown

New commits in main have made this PR unmergeable. Please resolve the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict Merge conflict detected. Automatically added/removed by CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant