eren-terzioglu opened a new pull request, #18694: URL: https://github.com/apache/nuttx/pull/18694
## Summary <!-- This field should contain a summary of the changes. It will be pre-filled with the commit's message and descriptions. Adjust it accordingly --> * Docs/risc-v/esp32[-c3|-c6|-h2]: Add autopm docs Add autopm docs for risc-v based Espressif devices * boards/risc-v/esp32[-c3|-c6|-h2]: Add autopm defconfig Add autopm defconfig for risc-v based Espressif devices * arch/risc-v/esp32[-c3|-c6|-h2]: Add auto sleep Add auto sleep for risc-v based Espressif devices ## Impact <!-- Please fill the following sections with YES/NO and provide a brief explanation --> Impact on user: Auto light sleep option added <!-- Does it impact user's applications? How? --> Impact on build: No <!-- Does it impact on building NuttX? How? (please describe the required changes on the build system) --> Impact on hardware: No <!-- Does it impact a specific hardware supported by NuttX? --> Impact on documentation: autopm configuration docs added <!-- Does it impact the existing documentation? Please provide additional documentation to reflect that --> Impact on security: No <!-- Does it impact NuttX's security? --> Impact on compatibility: No <!-- Does it impact compatibility between previous and current versions? Is this a breaking change? --> ## Testing <!-- Please provide all the testing procedure. Consider that upstream reviewers should be able to reproduce the same testing performed internally --> ### Building <!-- Provide how to build the test for each SoC being tested --> Used configs: ``` esp32c3-devkit:autopm esp32c6-devkitc:autopm esp32h2-devkit:autopm ``` Command to build: ``` make -j distclean && ./tools/configure.sh esp32c6-devkitc:autopm && make -j && make download ESPTOOL_PORT=/dev/ttyUSB0 ESPTOOL_BAUD=921600 ESPTOOL_BINDIR=./ ``` ### Running <!-- Provide how to run the test for each SoC being tested --> Defconfig enables UART wakeup and WiFi wakeup (on supported devices) by default. Used commands to test power consumption during WiFi operation: ``` ifup wlan0 wapi psk wlan0 WIFI_PASS 3 wapi essid wlan0 WIFI_SSID 1 renew wlan0 ping 8.8.8.8 ``` For UART wakeup, sleep logs and power consumption checked ### Results <!-- Provide tests' results and runtime logs --> System logs (Power Related debug options enabled): ``` ... NuttShell (NSH) NuttX-10.4.0 esp_pm_skip_light_sleep: UART wakeup still within guard window nsh> esp_pm_skip_light_sleep: UART wakeup still within guard window esp_pm_skip_light_sleep: UART wakeup still within guard window nsh> esp_pm_skip_light_sleep: UART wakeup still within guard window ... ``` Idle system power consumption drops from 90-100 to 27-35 mA During ping operation power consumption should drop from 90-100mA to 30-40mA -- 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]
