tmedicci opened a new pull request, #18707:
URL: https://github.com/apache/nuttx/pull/18707

   ## 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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to