esp-wzh

Results 16 comments of esp-wzh

Maybe this [errata](https://docs.espressif.com/projects/esp-chip-errata/en/latest/esp32/03-errata-description/esp32/ulp-and-touch-sensors-cannot-be-used.html#ulp-ulp-coprocessor-and-touch-sensors-can-not-be-used-in-deep-sleep-mode-if-rtc-periph-power-domain-is-powered-up) is related to the problem you are encountering, FYI.

Can you add print `esp_rom_printf("pd_flags:0x%08x\n",pd_flags);` at [esp_sleep_start](https://github.com/espressif/esp-idf/blob/67c1de1eebe095d554d281952fde63c16ee2dca0/components/esp_hw_support/sleep_modes.c#L778) to check if RTC_PERIPH is really powered down during sleep? @DarkZeros

@DarkZeros Thanks for feedback, [BIT(1)](https://github.com/espressif/esp-idf/blob/67c1de1eebe095d554d281952fde63c16ee2dca0/components/esp_hw_support/port/esp32/include/soc/rtc.h#L507) is the control bit for power-down RTC_PERIPH power domain, so in both of your versions the RTC_PERIPH power domain is not powered down, you can...

That makes sense, I guess it's because of the logic [here](https://github.com/espressif/esp-idf/blob/67c1de1eebe095d554d281952fde63c16ee2dca0/components/esp_hw_support/sleep_modes.c#L2370), The necessary conditions for this workaround to take effect are as follows: 1. pd_option for RTC_PERIPH domain is ESP_PD_OPTION_AUTO....

> I think the original confusion comes from the fact that setting RTC_PERIPH pd_option OFF does not turn it off. > It has to be set as AUTO in order...

Hi, @athleticmistud Not sure if this problem still exists. The information you provided is not sufficient, but from the description, the problem should be on the application layer, because resetting...