Skip to content

arch/risc-v: Enable low power mode for ESP32-P4#18707

Merged
acassis merged 2 commits intoapache:masterfrom
tmedicci:feature/esp32p4_pm
Apr 10, 2026
Merged

arch/risc-v: Enable low power mode for ESP32-P4#18707
acassis merged 2 commits intoapache:masterfrom
tmedicci:feature/esp32p4_pm

Conversation

@tmedicci
Copy link
Copy Markdown
Contributor

Summary

Introduces the necessary changes to enable low power mode for ESP32-P4.

Impact

Impact on user: Yes. Allows using the power management features on ESP32-P4.

Impact on build: No.

Impact on hardware: Yes. ESP32-P4.

Impact on documentation: Corresponding documentation is provided in a separate commit (in this same PR).

Impact on security: No.

Impact on compatibility: No.

Testing

Build the pm defconfig on NuttX and test light sleep and deep sleep.

Building

make distclean
./tools/configure.sh -S esp32p4-function-ev-board:pm
make flash ESPTOOL_PORT=/dev/ttyUSB0 -s -j$(nproc)

Running

On the NSH (serial terminal) run the following commands:

Light Sleep

nsh> pmconfig relax idle
nsh> pmconfig relax normal
nsh> pmconfig relax normal

Deep Sleep

nsh> pmconfig relax idle
nsh> pmconfig relax standby
nsh> pmconfig relax normal
nsh> pmconfig relax normal

Results

Light Sleep

After running the commands to enter light sleep, the device should enter light sleep and wake up after 15 seconds.

Deep Sleep

After running the commands to enter deep sleep, the device should be reset after 20s by PMU_SYS_PWR_DOWN_RESET:

nsh> pmconfig relax idle
nsh> pmconfig relax standby
nsh> pmconfig relax normal
nsh> pmconfig relax normal
nsh> ESP-ROM:esp32p4-eco6-20251011
Build:Oct 11 2025
rst:0x5 (PMU_SYS_PWR_DOWN_RESET),boot:0x30f (SPI_FAST_FLASH_BOOT)

This commit introduces the necessary changes to enable low power
mode for ESP32-P4. Please check the corresponding documentation.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
This commit documents the power management defconfig for the
ESP32-P4-Function-EV-Board.

Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
@github-actions github-actions bot added Area: Documentation Improvements or additions to documentation Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Size: M The size of the change in this PR is medium Board: risc-v labels Apr 10, 2026
@acassis acassis merged commit 6ef0d35 into apache:master Apr 10, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Area: Documentation Improvements or additions to documentation Board: risc-v Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants