This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 499187e0575e55b016be8ec23ac6949fa2a79ec3 Author: Eren Terzioglu <[email protected]> AuthorDate: Thu Nov 6 13:44:58 2025 +0100 Documentation/risc-v/esp32[-c3|-c6|-h2]: Add PM deep sleep docs Add PM deep sleep doc support for esp32[-c3|-c6|-h2] Signed-off-by: Eren Terzioglu <[email protected]> --- .../risc-v/esp32c3/boards/esp32c3-generic/index.rst | 11 ++++++++++- .../risc-v/esp32c6/boards/esp32c6-devkitc/index.rst | 12 +++++++++++- .../platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst | 12 +++++++++++- 3 files changed, 32 insertions(+), 3 deletions(-) diff --git a/Documentation/platforms/risc-v/esp32c3/boards/esp32c3-generic/index.rst b/Documentation/platforms/risc-v/esp32c3/boards/esp32c3-generic/index.rst index f4721e1132f..0e5cc00c36c 100644 --- a/Documentation/platforms/risc-v/esp32c3/boards/esp32c3-generic/index.rst +++ b/Documentation/platforms/risc-v/esp32c3/boards/esp32c3-generic/index.rst @@ -380,12 +380,14 @@ pm This config demonstrate the use of power management. You can use the ``pmconfig`` command to check current power state and time spent in other power states. -Also you can define time will spend in standby mode:: +Also you can define time will spend in standby and sleep modes:: $ make menuconfig -> Board Selection -> (15) PM_STANDBY delay (seconds) (0) PM_STANDBY delay (nanoseconds) + (20) PM_SLEEP delay (seconds) + (0) PM_SLEEP delay (nanoseconds) Timer wakeup is not only way to wake up the chip. Other wakeup modes include: @@ -422,6 +424,13 @@ In this case, needed commands to switch the system into PM standby mode:: nsh> pmconfig relax normal nsh> pmconfig relax normal +System switch to the PM sleep mode, you need to enter:: + + nsh> pmconfig relax standby + nsh> pmconfig relax idle + nsh> pmconfig relax normal + nsh> pmconfig relax normal + Note: When normal mode COUNT is 0, it will switch to the next PM state where COUNT is not 0. Note: During light sleep, overall current consumption of board should drop from 18mA (without any system load) to 1 mA on ESP32-C3 DevkitM-1. diff --git a/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst b/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst index 8e90ecdfb2b..06c7e7f129d 100644 --- a/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst +++ b/Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst @@ -394,12 +394,14 @@ pm This config demonstrate the use of power management. You can use the ``pmconfig`` command to check current power state and time spent in other power states. -Also you can define time will spend in standby mode:: +Also you can define time will spend in standby and sleep modes:: $ make menuconfig -> Board Selection -> (15) PM_STANDBY delay (seconds) (0) PM_STANDBY delay (nanoseconds) + (20) PM_SLEEP delay (seconds) + (0) PM_SLEEP delay (nanoseconds) Timer wakeup is not only way to wake up the chip. Other wakeup modes include: @@ -438,9 +440,17 @@ In this case, needed commands to switch the system into PM standby mode:: nsh> pmconfig relax normal nsh> pmconfig relax normal +System switch to the PM sleep mode, you need to enter:: + + nsh> pmconfig relax standby + nsh> pmconfig relax idle + nsh> pmconfig relax normal + nsh> pmconfig relax normal + Note: When normal mode COUNT is 0, it will switch to the next PM state where COUNT is not 0. Note: During light sleep, overall current consumption of board should drop from 22mA (without any system load) to 1.3 mA on ESP32-C6 DevkitC-1. +During deep sleep, current consumption of module (ESP32-C6-WROOM-1) should drop from 22mA (without any system load) to 48 μA. pwm --- diff --git a/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst b/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst index 40c34419eec..234a67c062f 100644 --- a/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst +++ b/Documentation/platforms/risc-v/esp32h2/boards/esp32h2-devkit/index.rst @@ -326,12 +326,14 @@ pm This config demonstrate the use of power management. You can use the ``pmconfig`` command to check current power state and time spent in other power states. -Also you can define time will spend in standby mode:: +Also you can define time will spend in standby and sleep modes:: $ make menuconfig -> Board Selection -> (15) PM_STANDBY delay (seconds) (0) PM_STANDBY delay (nanoseconds) + (20) PM_SLEEP delay (seconds) + (0) PM_SLEEP delay (nanoseconds) Timer wakeup is not only way to wake up the chip. Other wakeup modes include: @@ -370,9 +372,17 @@ In this case, needed commands to switch the system into PM standby mode:: nsh> pmconfig relax normal nsh> pmconfig relax normal +System switch to the PM sleep mode, you need to enter:: + + nsh> pmconfig relax standby + nsh> pmconfig relax idle + nsh> pmconfig relax normal + nsh> pmconfig relax normal + Note: When normal mode COUNT is 0, it will switch to the next PM state where COUNT is not 0. Note: During light sleep, overall current consumption of board should drop from 14mA (without any system load) to 880 μA on ESP32-H2 DevkitM-1. +During deep sleep, current consumption of module (ESP32-H2-MINI-1) should drop from 9mA (without any system load) to 8 μA. pwm ---
