Deep-sleep wakeup sources per chip
Every chip can wake from deep sleep on a timer. Waking on a pin depends on the chip: ext0 and ext1 use RTC GPIOs, the C-series without ext1 use esp_deep_sleep_enable_gpio_wakeup(), and UART wakeup works from light sleep only.
In short
- Timer wakeup (
esp_sleep_enable_timer_wakeup()) is available on every chip listed here.1 - ext0 (one RTC GPIO,
esp_sleep_enable_ext0_wakeup()) exists only on ESP32, ESP32-S2 and ESP32-S3.2 - ext1 takes a 64-bit GPIO mask;
ESP_EXT1_WAKEUP_ANY_HIGHis valid on every chip,ALL_LOWonly on ESP32 andANY_LOWon the others.3 - ESP32-C2 and ESP32-C3 have no ext1: they wake from deep sleep through
esp_deep_sleep_enable_gpio_wakeup()on GPIO0…5.4 - UART wakeup works only from light sleep; after any wakeup
esp_sleep_get_wakeup_cause()returns the source.5
Deep-sleep wakeup sources per chip
| Chip | ext0 | ext1 GPIOs | ext1 modes | GPIO wakeup (deep sleep) | Touch | ULP |
|---|---|---|---|---|---|---|
| ESP32 | yes (1 RTC GPIO)2 | 0, 2, 4, 12…15, 25…27, 32…392 | ANY_HIGH, ALL_LOW1 | — | yes2 | yes1 |
| ESP32-S2 | yes (1 RTC GPIO)6 | 0…216 | ANY_HIGH, ANY_LOW; one level for all pins7 | — | yes6 | yes7 |
| ESP32-S3 | yes (1 RTC GPIO)8 | 0…218 | ANY_HIGH, ANY_LOW; one level for all pins5 | — | yes8 | yes5 |
| ESP32-C2 | — | — | — | 0…59 | — | — |
| ESP32-C3 | — | — | — | 0…54 | — | — |
| ESP32-C5 | — | 0…610 | ANY_HIGH, ANY_LOW; level can differ per pin11 | 0…610 | — | yes11 |
| ESP32-C6 | — | 0…712 | ANY_HIGH, ANY_LOW; level can differ per pin13 | 0…712 | — | yes13 |
| ESP32-C61 | — | 0…614 | ANY_HIGH, ANY_LOW; level can differ per pin15 | 0…614 | — | — |
| ESP32-H2 | — | 8…1416 | ANY_HIGH, ANY_LOW; level can differ per pin17 | — | — | — |
| ESP32-P4 | — | 0…1518 | ANY_HIGH, ANY_LOW; level can differ per pin19 | 0…1518 | yes18 | yes19 |
ext1 and ext0 use RTC GPIOs. The deep-sleep GPIO column is esp_deep_sleep_enable_gpio_wakeup(). Timer wakeup is on every chip; UART and esp_sleep_enable_gpio_wakeup() wake from light sleep only.
ext1 mask builder
Pick the GPIOs; the mask sets bit n for GPIOn. Pins that are not ext1-capable on the chosen chip are flagged.
ext1 example (ESP-IDF)
Which pin woke the chip
esp_sleep_get_ext1_wakeup_status() returns the mask of the ext1 pins that caused the wakeup.5
Pull resistors in sleep
Pull-ups and pull-downs on ext1 pins stay in effect: ESP-IDF keeps them with the HOLD feature when the RTC peripheral domain is off.5
Variables that survive
Variables marked RTC_DATA_ATTR live in RTC memory, which stays powered in deep sleep.5
#include <stdio.h>
#include <inttypes.h>
#include "esp_sleep.h"
#include "driver/rtc_io.h"
// Wake when GPIO4 or GPIO5 goes high (both are RTC GPIOs on ESP32-S3)
#define WAKE_MASK ((1ULL << GPIO_NUM_4) | (1ULL << GPIO_NUM_5))
RTC_DATA_ATTR static int boot_count; // kept in RTC memory across deep sleep
void app_main(void)
{
boot_count++;
if (esp_sleep_get_wakeup_cause() == ESP_SLEEP_WAKEUP_EXT1) {
uint64_t pins = esp_sleep_get_ext1_wakeup_status();
printf("boot %d, woken by mask 0x%" PRIx64 "\n", boot_count, pins);
}
// Keep the inputs low while asleep: ANY_HIGH needs a defined idle level
rtc_gpio_pullup_dis(GPIO_NUM_4);
rtc_gpio_pulldown_en(GPIO_NUM_4);
rtc_gpio_pullup_dis(GPIO_NUM_5);
rtc_gpio_pulldown_en(GPIO_NUM_5);
esp_sleep_enable_ext1_wakeup_io(WAKE_MASK, ESP_EXT1_WAKEUP_ANY_HIGH);
esp_deep_sleep_start();
}
Where RTC_DATA_ATTR goes
| Chip | RTC memory for RTC_DATA_ATTR |
|---|---|
| ESP32 | RTC SLOW memory (kept powered by default)1 |
| ESP32-S2 | RTC SLOW memory (kept powered by default)7 |
| ESP32-S3 | RTC SLOW memory (kept powered by default)5 |
| ESP32-C2 | — |
| ESP32-C3 | RTC FAST memory (the only RTC memory)20 |
| ESP32-C5 | RTC FAST memory (the only RTC memory)11 |
| ESP32-C6 | RTC FAST memory (the only RTC memory)13 |
| ESP32-C61 | — |
| ESP32-H2 | RTC FAST memory (the only RTC memory)17 |
| ESP32-P4 | RTC FAST memory (the only RTC memory)19 |
Pitfalls
ESP32-H2 GPIO7
esp_sleep.h lists GPIO7…14 for ext1 on ESP32-H2, but the same header says GPIO7 is not led out for external wakeup; the mask builder leaves GPIO7 out.3
Pins come back as RTC IO
After ext0 or ext1 wakeup the pad is still an RTC IO; call rtc_gpio_deinit() before using it as a digital GPIO.5
Wakeup sources stay enabled
Wakeup sources are not disabled after wakeup; use esp_sleep_disable_wakeup_source() to remove one.5
ESP_EXT1_WAKEUP_ALL_LOW outside ESP32
On every chip except ESP32 ALL_LOW is a deprecated alias of ANY_LOW, so the condition becomes "any pin low".3
Radio is off in sleep
Wi-Fi and Bluetooth connections are not kept in deep or light sleep.5
Where the sources disagree
- ESP32-H2 ext1 GPIO7. The io_mask list in esp_sleep.h gives "ESP32-H2: 7-14", while a note in the same header says GPIO7 is not led out for external wakeup. GPIO7 is left out of the ext1 pin list and the mask builder.3
See also
- Strapping pins of every ESP32 chip
- ESP32 pin planner: check your pin choices
- ESP32 chip families: compare and choose
- GPIO electrical limits per chip
- CPU frequency: allowed setCpuFrequencyMhz() values
Sources
Each number links here; open “What it confirms” for the exact quotes. Checked 2026-11-28.
- ESP-IDF v5.5.5 docs (ESP32): sleep_modes primary
What it confirms (4)
- Deep-sleep wakeup sources per chip: in short “esp_sleep_enable_timer_wakeup() function can be used to enable sleep wakeup using a timer.”
- Deep-sleep wakeup sources per chip: ESP32 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if all the selected pins are low (ESP_EXT1_WAKEUP_ALL_LOW)”
- Deep-sleep wakeup sources per chip: ESP32 / ULP “esp_sleep_enable_ulp_wakeup() function can be used to enable this wakeup source. … #define SOC_ULP_SUPPORTED”
- Deep-sleep wakeup sources per chip: ESP32 / RTC memory for RTC_DATA_ATTR “If some variables in the program are placed into RTC SLOW memory (for example, using RTC_DATA_ATTR attribute), RTC SLOW memory will be kept powered on by default. … SOC_RTC_SLOW_MEM_SUPPORTED”
- ESP-IDF v5.5.5: components/soc/esp32/include/soc/soc_caps.h primary
What it confirms (5)
- Deep-sleep wakeup sources per chip: in short “#define SOC_PM_SUPPORT_EXT0_WAKEUP”
- Deep-sleep wakeup sources per chip: ESP32 / ext0 “SOC_PM_SUPPORT_EXT0_WAKEUP … The RTC IO module contains the logic to trigger wakeup when one of RTC GPIOs is set to a predefined logic level. … esp_sleep_enable_ext0_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32: 0, 2, 4, 12-15, 25-27, 32-39 … #define RTCIO_CHANNEL_0_GPIO_NUM 36 … #define RTCIO_CHANNEL_1_GPIO_NUM 37 … #define RTCIO_CHANNEL_2_GPIO_NUM 38 … #define RTCIO_CHANNEL_3_GPIO_NUM 39 … #define RTCIO_CHANNEL_4_GPIO_NUM 34 … #define RTCIO_CHANNEL_5_GPIO_NUM 35 … #define RTCIO_CHANNEL_6_GPIO_NUM 25 … #define RTCIO_CHANNEL_7_GPIO_NUM 26 … #define RTCIO_CHANNEL_8_GPIO_NUM 33 … #define RTCIO_CHANNEL_9_GPIO_NUM 32 … #define RTCIO_CHANNEL_10_GPIO_NUM 4 … #define RTCIO_CHANNEL_11_GPIO_NUM 0 … #define RTCIO_CHANNEL_12_GPIO_NUM 2 … #define RTCIO_CHANNEL_13_GPIO_NUM 15 … #define RTCIO_CHANNEL_14_GPIO_NUM 13 … #define RTCIO_CHANNEL_15_GPIO_NUM 12 … #define RTCIO_CHANNEL_16_GPIO_NUM 14 … #define RTCIO_CHANNEL_17_GPIO_NUM 27”
- Deep-sleep wakeup sources per chip: ESP32 / Touch “SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP … esp_sleep_enable_touchpad_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32 “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32: 0, 2, 4, 12-15, 25-27, 32-39 … #define RTCIO_CHANNEL_0_GPIO_NUM 36 … #define RTCIO_CHANNEL_1_GPIO_NUM 37 … #define RTCIO_CHANNEL_2_GPIO_NUM 38 … #define RTCIO_CHANNEL_3_GPIO_NUM 39 … #define RTCIO_CHANNEL_4_GPIO_NUM 34 … #define RTCIO_CHANNEL_5_GPIO_NUM 35 … #define RTCIO_CHANNEL_6_GPIO_NUM 25 … #define RTCIO_CHANNEL_7_GPIO_NUM 26 … #define RTCIO_CHANNEL_8_GPIO_NUM 33 … #define RTCIO_CHANNEL_9_GPIO_NUM 32 … #define RTCIO_CHANNEL_10_GPIO_NUM 4 … #define RTCIO_CHANNEL_11_GPIO_NUM 0 … #define RTCIO_CHANNEL_12_GPIO_NUM 2 … #define RTCIO_CHANNEL_13_GPIO_NUM 15 … #define RTCIO_CHANNEL_14_GPIO_NUM 13 … #define RTCIO_CHANNEL_15_GPIO_NUM 12 … #define RTCIO_CHANNEL_16_GPIO_NUM 14 … #define RTCIO_CHANNEL_17_GPIO_NUM 27”
- ESP-IDF v5.5.5: components/esp_hw_support/include/esp_sleep.h primary
What it confirms (4)
- Deep-sleep wakeup sources per chip: in short “esp_err_t esp_sleep_enable_ext1_wakeup_io(uint64_t io_mask, esp_sleep_ext1_wakeup_mode_t level_mode); … ESP_EXT1_WAKEUP_ALL_LOW = 0, //!< Wake the chip when all selected GPIOs go low … ESP_EXT1_WAKEUP_ANY_LOW = 0, //!< Wake the chip when any of the selected GPIOs go low … ESP_EXT1_WAKEUP_ANY_HIGH = 1, //!< Wake the chip when any of the selected GPIOs go high”
- Deep-sleep wakeup sources per chip: pitfall: ESP32-H2 GPIO7 “- ESP32-H2: 7-14 … On ESP32-H2, although GPIO7 is an RTC GPIO, it is not led out for external wakeup.”
- Deep-sleep wakeup sources per chip: pitfall: ESP_EXT1_WAKEUP_ALL_LOW outside ESP32 “ESP_EXT1_WAKEUP_ALL_LOW __attribute__((deprecated("wakeup mode \"ALL_LOW\" is no longer supported after ESP32, \ … please use ESP_EXT1_WAKEUP_ANY_LOW instead"))) = ESP_EXT1_WAKEUP_ANY_LOW”
- Deep-sleep wakeup sources per chip: discrepancy “- ESP32-H2: 7-14 … On ESP32-H2, although GPIO7 is an RTC GPIO, it is not led out for external wakeup.”
- ESP-IDF v5.5.5: components/soc/esp32c3/include/soc/soc_caps.h primary
What it confirms (2)
- Deep-sleep wakeup sources per chip: in short “#define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | BIT0 | BIT1 | BIT2 | BIT3 | BIT4 | BIT5) … 2. :cpp:func:`esp_deep_sleep_enable_gpio_wakeup` - For Deep-sleep and Light-sleep (peripheral powerdown)”
- Deep-sleep wakeup sources per chip: ESP32-C3 / GPIO wakeup (deep sleep) “SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP … #define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | BIT0 | BIT1 | BIT2 | BIT3 | BIT4 | BIT5)”
- ESP-IDF v5.5.5 docs (ESP32-S3): sleep_modes primary
What it confirms (10)
- Deep-sleep wakeup sources per chip: in short “UART Wakeup (Light-sleep Only) … esp_sleep_get_wakeup_cause() function can be used to check which wakeup source has triggered wakeup from sleep mode. … ESP_SLEEP_WAKEUP_UART, //!< Wakeup caused by UART0 (light sleep only)”
- Deep-sleep wakeup sources per chip: ESP32-S3 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … when we use more than one IO for EXT1 wakeup, it is not allowed to configure different wakeup levels for the IOs”
- Deep-sleep wakeup sources per chip: ESP32-S3 / ULP “esp_sleep_enable_ulp_wakeup() function can be used to enable this wakeup source. … #define SOC_ULP_SUPPORTED”
- Deep-sleep wakeup sources per chip: Which pin woke the chip “For ext1 wakeup sources, it is possible to identify which GPIO has caused wakeup using esp_sleep_get_ext1_wakeup_status() functions.”
- Deep-sleep wakeup sources per chip: Pull resistors in sleep “If we turn off the RTC_PERIPH domain, we will use the HOLD feature to maintain the pull-up and pull-down on the pins during sleep.”
- Deep-sleep wakeup sources per chip: Variables that survive “If some variables in the program are placed into RTC SLOW memory (for example, using RTC_DATA_ATTR attribute), RTC SLOW memory will be kept powered on by default.”
- Deep-sleep wakeup sources per chip: ESP32-S3 / RTC memory for RTC_DATA_ATTR “If some variables in the program are placed into RTC SLOW memory (for example, using RTC_DATA_ATTR attribute), RTC SLOW memory will be kept powered on by default. … SOC_RTC_SLOW_MEM_SUPPORTED”
- Deep-sleep wakeup sources per chip: pitfall: Pins come back as RTC IO “To use the EXT1 wakeup, the IO pad(s) are configured as RTC IO. Therefore, before using these pads as digital GPIOs, users need to reconfigure them by calling the rtc_gpio_deinit() function.”
- Deep-sleep wakeup sources per chip: pitfall: Wakeup sources stay enabled “Wakeup sources are not disabled after wakeup, you can disable them using esp_sleep_disable_wakeup_source() API if you do not need them any more.”
- Deep-sleep wakeup sources per chip: pitfall: Radio is off in sleep “Wi-Fi and Bluetooth connections are not maintained in Deep-sleep or Light-sleep mode, even if these functions are not called.”
- ESP-IDF v5.5.5: components/soc/esp32s2/include/soc/soc_caps.h primary
What it confirms (4)
- Deep-sleep wakeup sources per chip: ESP32-S2 / ext0 “SOC_PM_SUPPORT_EXT0_WAKEUP … The RTC IO module contains the logic to trigger wakeup when one of RTC GPIOs is set to a predefined logic level. … esp_sleep_enable_ext0_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32-S2 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-S2: 0-21 … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7 … #define RTCIO_CHANNEL_8_GPIO_NUM 8 … #define RTCIO_CHANNEL_9_GPIO_NUM 9 … #define RTCIO_CHANNEL_10_GPIO_NUM 10 … #define RTCIO_CHANNEL_11_GPIO_NUM 11 … #define RTCIO_CHANNEL_12_GPIO_NUM 12 … #define RTCIO_CHANNEL_13_GPIO_NUM 13 … #define RTCIO_CHANNEL_14_GPIO_NUM 14 … #define RTCIO_CHANNEL_15_GPIO_NUM 15 … #define RTCIO_CHANNEL_16_GPIO_NUM 16 … #define RTCIO_CHANNEL_17_GPIO_NUM 17 … #define RTCIO_CHANNEL_18_GPIO_NUM 18 … #define RTCIO_CHANNEL_19_GPIO_NUM 19 … #define RTCIO_CHANNEL_20_GPIO_NUM 20 … #define RTCIO_CHANNEL_21_GPIO_NUM 21”
- Deep-sleep wakeup sources per chip: ESP32-S2 / Touch “SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP … esp_sleep_enable_touchpad_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32-S2 “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-S2: 0-21 … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7 … #define RTCIO_CHANNEL_8_GPIO_NUM 8 … #define RTCIO_CHANNEL_9_GPIO_NUM 9 … #define RTCIO_CHANNEL_10_GPIO_NUM 10 … #define RTCIO_CHANNEL_11_GPIO_NUM 11 … #define RTCIO_CHANNEL_12_GPIO_NUM 12 … #define RTCIO_CHANNEL_13_GPIO_NUM 13 … #define RTCIO_CHANNEL_14_GPIO_NUM 14 … #define RTCIO_CHANNEL_15_GPIO_NUM 15 … #define RTCIO_CHANNEL_16_GPIO_NUM 16 … #define RTCIO_CHANNEL_17_GPIO_NUM 17 … #define RTCIO_CHANNEL_18_GPIO_NUM 18 … #define RTCIO_CHANNEL_19_GPIO_NUM 19 … #define RTCIO_CHANNEL_20_GPIO_NUM 20 … #define RTCIO_CHANNEL_21_GPIO_NUM 21”
- ESP-IDF v5.5.5 docs (ESP32-S2): sleep_modes primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-S2 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … when we use more than one IO for EXT1 wakeup, it is not allowed to configure different wakeup levels for the IOs”
- Deep-sleep wakeup sources per chip: ESP32-S2 / ULP “esp_sleep_enable_ulp_wakeup() function can be used to enable this wakeup source. … #define SOC_ULP_SUPPORTED”
- Deep-sleep wakeup sources per chip: ESP32-S2 / RTC memory for RTC_DATA_ATTR “If some variables in the program are placed into RTC SLOW memory (for example, using RTC_DATA_ATTR attribute), RTC SLOW memory will be kept powered on by default. … SOC_RTC_SLOW_MEM_SUPPORTED”
- ESP-IDF v5.5.5: components/soc/esp32s3/include/soc/soc_caps.h primary
What it confirms (4)
- Deep-sleep wakeup sources per chip: ESP32-S3 / ext0 “SOC_PM_SUPPORT_EXT0_WAKEUP … The RTC IO module contains the logic to trigger wakeup when one of RTC GPIOs is set to a predefined logic level. … esp_sleep_enable_ext0_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32-S3 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-S3: 0-21 … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7 … #define RTCIO_CHANNEL_8_GPIO_NUM 8 … #define RTCIO_CHANNEL_9_GPIO_NUM 9 … #define RTCIO_CHANNEL_10_GPIO_NUM 10 … #define RTCIO_CHANNEL_11_GPIO_NUM 11 … #define RTCIO_CHANNEL_12_GPIO_NUM 12 … #define RTCIO_CHANNEL_13_GPIO_NUM 13 … #define RTCIO_CHANNEL_14_GPIO_NUM 14 … #define RTCIO_CHANNEL_15_GPIO_NUM 15 … #define RTCIO_CHANNEL_16_GPIO_NUM 16 … #define RTCIO_CHANNEL_17_GPIO_NUM 17 … #define RTCIO_CHANNEL_18_GPIO_NUM 18 … #define RTCIO_CHANNEL_19_GPIO_NUM 19 … #define RTCIO_CHANNEL_20_GPIO_NUM 20 … #define RTCIO_CHANNEL_21_GPIO_NUM 21”
- Deep-sleep wakeup sources per chip: ESP32-S3 / Touch “SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP … esp_sleep_enable_touchpad_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32-S3 “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-S3: 0-21 … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7 … #define RTCIO_CHANNEL_8_GPIO_NUM 8 … #define RTCIO_CHANNEL_9_GPIO_NUM 9 … #define RTCIO_CHANNEL_10_GPIO_NUM 10 … #define RTCIO_CHANNEL_11_GPIO_NUM 11 … #define RTCIO_CHANNEL_12_GPIO_NUM 12 … #define RTCIO_CHANNEL_13_GPIO_NUM 13 … #define RTCIO_CHANNEL_14_GPIO_NUM 14 … #define RTCIO_CHANNEL_15_GPIO_NUM 15 … #define RTCIO_CHANNEL_16_GPIO_NUM 16 … #define RTCIO_CHANNEL_17_GPIO_NUM 17 … #define RTCIO_CHANNEL_18_GPIO_NUM 18 … #define RTCIO_CHANNEL_19_GPIO_NUM 19 … #define RTCIO_CHANNEL_20_GPIO_NUM 20 … #define RTCIO_CHANNEL_21_GPIO_NUM 21”
- ESP-IDF v5.5.5: components/soc/esp32c2/include/soc/soc_caps.h primary
What it confirms (1)
- Deep-sleep wakeup sources per chip: ESP32-C2 / GPIO wakeup (deep sleep) “SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP … #define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | BIT0 | BIT1 | BIT2 | BIT3 | BIT4 | BIT5)”
- ESP-IDF v5.5.5: components/soc/esp32c5/include/soc/soc_caps.h primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-C5 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6”
- Deep-sleep wakeup sources per chip: ESP32-C5 / GPIO wakeup (deep sleep) “SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP … #define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | BIT0 | BIT1 | BIT2 | BIT3 | BIT4 | BIT5 | BIT6)”
- Deep-sleep wakeup sources per chip: ESP32-C5 “SOC_PM_SUPPORT_EXT1_WAKEUP … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6”
- ESP-IDF v5.5.5 docs (ESP32-C5): sleep_modes primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-C5 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */”
- Deep-sleep wakeup sources per chip: ESP32-C5 / ULP “esp_sleep_enable_ulp_wakeup() function can be used to enable this wakeup source. … #define SOC_ULP_SUPPORTED”
- Deep-sleep wakeup sources per chip: ESP32-C5 / RTC memory for RTC_DATA_ATTR “In ESP32-C5, there is only RTC FAST memory, so if some variables in the program are marked by RTC_DATA_ATTR, RTC_SLOW_ATTR or RTC_FAST_ATTR attributes, all of them go to RTC FAST memory. … SOC_RTC_FAST_MEM_SUPPORTED”
- ESP-IDF v5.5.5: components/soc/esp32c6/include/soc/soc_caps.h primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-C6 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-C6: 0-7 … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7”
- Deep-sleep wakeup sources per chip: ESP32-C6 / GPIO wakeup (deep sleep) “SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP … #define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | BIT0 | BIT1 | BIT2 | BIT3 | BIT4 | BIT5 | BIT6 | BIT7)”
- Deep-sleep wakeup sources per chip: ESP32-C6 “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-C6: 0-7 … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7”
- ESP-IDF v5.5.5 docs (ESP32-C6): sleep_modes primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-C6 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */”
- Deep-sleep wakeup sources per chip: ESP32-C6 / ULP “esp_sleep_enable_ulp_wakeup() function can be used to enable this wakeup source. … #define SOC_ULP_SUPPORTED”
- Deep-sleep wakeup sources per chip: ESP32-C6 / RTC memory for RTC_DATA_ATTR “In ESP32-C6, there is only RTC FAST memory, so if some variables in the program are marked by RTC_DATA_ATTR, RTC_SLOW_ATTR or RTC_FAST_ATTR attributes, all of them go to RTC FAST memory. … SOC_RTC_FAST_MEM_SUPPORTED”
- ESP-IDF v5.5.5: components/soc/esp32c61/include/soc/soc_caps.h primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-C61 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6”
- Deep-sleep wakeup sources per chip: ESP32-C61 / GPIO wakeup (deep sleep) “SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP … #define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | BIT0 | BIT1 | BIT2 | BIT3 | BIT4 | BIT5 | BIT6)”
- Deep-sleep wakeup sources per chip: ESP32-C61 “SOC_PM_SUPPORT_EXT1_WAKEUP … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6”
- ESP-IDF v5.5.5 docs (ESP32-C61): sleep_modes primary
What it confirms (1)
- Deep-sleep wakeup sources per chip: ESP32-C61 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */”
- ESP-IDF v5.5.5: components/soc/esp32h2/include/soc/soc_caps.h primary
What it confirms (2)
- Deep-sleep wakeup sources per chip: ESP32-H2 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-H2: 7-14 … On ESP32-H2, although GPIO7 is an RTC GPIO, it is not led out for external wakeup. … #define RTCIO_CHANNEL_0_GPIO_NUM 7 … #define RTCIO_CHANNEL_1_GPIO_NUM 8 … #define RTCIO_CHANNEL_2_GPIO_NUM 9 … #define RTCIO_CHANNEL_3_GPIO_NUM 10 … #define RTCIO_CHANNEL_4_GPIO_NUM 11 … #define RTCIO_CHANNEL_5_GPIO_NUM 12 … #define RTCIO_CHANNEL_6_GPIO_NUM 13 … #define RTCIO_CHANNEL_7_GPIO_NUM 14”
- Deep-sleep wakeup sources per chip: ESP32-H2 “SOC_PM_SUPPORT_EXT1_WAKEUP … - ESP32-H2: 7-14 … On ESP32-H2, although GPIO7 is an RTC GPIO, it is not led out for external wakeup. … #define RTCIO_CHANNEL_0_GPIO_NUM 7 … #define RTCIO_CHANNEL_1_GPIO_NUM 8 … #define RTCIO_CHANNEL_2_GPIO_NUM 9 … #define RTCIO_CHANNEL_3_GPIO_NUM 10 … #define RTCIO_CHANNEL_4_GPIO_NUM 11 … #define RTCIO_CHANNEL_5_GPIO_NUM 12 … #define RTCIO_CHANNEL_6_GPIO_NUM 13 … #define RTCIO_CHANNEL_7_GPIO_NUM 14”
- ESP-IDF v5.5.5 docs (ESP32-H2): sleep_modes primary
What it confirms (2)
- Deep-sleep wakeup sources per chip: ESP32-H2 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */”
- Deep-sleep wakeup sources per chip: ESP32-H2 / RTC memory for RTC_DATA_ATTR “In ESP32-H2, there is only RTC FAST memory, so if some variables in the program are marked by RTC_DATA_ATTR, RTC_SLOW_ATTR or RTC_FAST_ATTR attributes, all of them go to RTC FAST memory. … SOC_RTC_FAST_MEM_SUPPORTED”
- ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/soc_caps.h primary
What it confirms (4)
- Deep-sleep wakeup sources per chip: ESP32-P4 / ext1 GPIOs “SOC_PM_SUPPORT_EXT1_WAKEUP … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7 … #define RTCIO_CHANNEL_8_GPIO_NUM 8 … #define RTCIO_CHANNEL_9_GPIO_NUM 9 … #define RTCIO_CHANNEL_10_GPIO_NUM 10 … #define RTCIO_CHANNEL_11_GPIO_NUM 11 … #define RTCIO_CHANNEL_12_GPIO_NUM 12 … #define RTCIO_CHANNEL_13_GPIO_NUM 13 … #define RTCIO_CHANNEL_14_GPIO_NUM 14 … #define RTCIO_CHANNEL_15_GPIO_NUM 15”
- Deep-sleep wakeup sources per chip: ESP32-P4 / GPIO wakeup (deep sleep) “SOC_GPIO_SUPPORT_DEEPSLEEP_WAKEUP … #define SOC_GPIO_DEEP_SLEEP_WAKE_VALID_GPIO_MASK (0ULL | 0xFFFF)”
- Deep-sleep wakeup sources per chip: ESP32-P4 / Touch “SOC_PM_SUPPORT_TOUCH_SENSOR_WAKEUP … esp_sleep_enable_touchpad_wakeup() function can be used to enable this wakeup source.”
- Deep-sleep wakeup sources per chip: ESP32-P4 “SOC_PM_SUPPORT_EXT1_WAKEUP … #define RTCIO_CHANNEL_0_GPIO_NUM 0 … #define RTCIO_CHANNEL_1_GPIO_NUM 1 … #define RTCIO_CHANNEL_2_GPIO_NUM 2 … #define RTCIO_CHANNEL_3_GPIO_NUM 3 … #define RTCIO_CHANNEL_4_GPIO_NUM 4 … #define RTCIO_CHANNEL_5_GPIO_NUM 5 … #define RTCIO_CHANNEL_6_GPIO_NUM 6 … #define RTCIO_CHANNEL_7_GPIO_NUM 7 … #define RTCIO_CHANNEL_8_GPIO_NUM 8 … #define RTCIO_CHANNEL_9_GPIO_NUM 9 … #define RTCIO_CHANNEL_10_GPIO_NUM 10 … #define RTCIO_CHANNEL_11_GPIO_NUM 11 … #define RTCIO_CHANNEL_12_GPIO_NUM 12 … #define RTCIO_CHANNEL_13_GPIO_NUM 13 … #define RTCIO_CHANNEL_14_GPIO_NUM 14 … #define RTCIO_CHANNEL_15_GPIO_NUM 15”
- ESP-IDF v5.5.5 docs (ESP32-P4): sleep_modes primary
What it confirms (3)
- Deep-sleep wakeup sources per chip: ESP32-P4 / ext1 modes “wake up if any of the selected pins is high (ESP_EXT1_WAKEUP_ANY_HIGH) … wake up if any of the selected pins is low (ESP_EXT1_WAKEUP_ANY_LOW) … SOC_PM_SUPPORT_EXT1_WAKEUP_MODE_PER_PIN (1) /*!<Supports one bit per pin to configure the EXT1 trigger level */”
- Deep-sleep wakeup sources per chip: ESP32-P4 / ULP “esp_sleep_enable_ulp_wakeup() function can be used to enable this wakeup source. … #define SOC_ULP_SUPPORTED”
- Deep-sleep wakeup sources per chip: ESP32-P4 / RTC memory for RTC_DATA_ATTR “In ESP32-P4, there is only RTC FAST memory, so if some variables in the program are marked by RTC_DATA_ATTR, RTC_SLOW_ATTR or RTC_FAST_ATTR attributes, all of them go to RTC FAST memory. … SOC_RTC_FAST_MEM_SUPPORTED”
- ESP-IDF v5.5.5 docs (ESP32-C3): sleep_modes primary
What it confirms (1)
- Deep-sleep wakeup sources per chip: ESP32-C3 / RTC memory for RTC_DATA_ATTR “In ESP32-C3, there is only RTC FAST memory, so if some variables in the program are marked by RTC_DATA_ATTR, RTC_SLOW_ATTR or RTC_FAST_ATTR attributes, all of them go to RTC FAST memory. … SOC_RTC_FAST_MEM_SUPPORTED”