Skip to content
esp-labsESP32-S3 bench guide

Under the hood

Memory, clocks and power modes

Where your code and data live, which clock drives what, and how much each power mode saves.

The address map

The CPU sees one big address space: ROM, internal SRAM, the flash and PSRAM through the caches, and the peripherals' registers.

The ESP32-S3 address map, low addresses at the top
The ESP32-S3 address map, low addresses at the top
RegionStartEndSizeHighlighted
External memory, data side0x3C0000000x3DFFFFFF32 MBYes
Internal SRAM 1 (data bus)0x3FC880000x3FCEFFFF416 KBYes
Internal SRAM 20x3FCF00000x3FCFFFFF64 KB
Internal ROM 1 (data bus)0x3FF000000x3FF1FFFF128 KB
Internal ROM 00x400000000x4003FFFF256 KB
Internal ROM 1 (instruction bus)0x400400000x4005FFFF128 KB
Internal SRAM 00x403700000x40377FFF32 KB
Internal SRAM 1 (instruction bus)0x403780000x403DFFFF416 KBYes
External memory, instruction side0x420000000x43FFFFFF32 MBYes
RTC SLOW memory0x500000000x50001FFF8 KB
Peripheral registers0x600000000x600D0FFF836 KB
RTC FAST memory0x600FE0000x600FFFFF8 KB

Where your sketch lives

  • External memory, data side

    32 MB window onto the PSRAM (read and write) and the flash (read only), through the data cache. Big buffers like a frame or a sound clip live here.

    Technical reference §4.3.3.1

  • Internal SRAM 1 (data bus)

    416 KB, the same memory as SRAM 1 on the instruction bus. Your variables, heap and stacks.

    Technical reference §4.3.2

  • Internal SRAM 1 (instruction bus)

    The same 416 KB as SRAM 1 on the data bus, seen as instruction memory: code placed in internal RAM runs from here.

    Technical reference §4.3.2

  • External memory, instruction side

    32 MB window onto the flash (or PSRAM), through the instruction cache, in 64 KB pages. Code stored in flash runs from here.

    Technical reference §4.3.3.1

The clock tree

One 40 MHz crystal feeds a PLL; dividers make the CPU, APB and peripheral clocks from it, while slow RC oscillators keep the RTC ticking in sleep.

Clock sources, dividers and the blocks they clock
Clock sources, dividers and the blocks they clock
FromToVia
XTAL_CLK, main crystal (40 MHz)PLL_CLK (320 / 480 MHz)
XTAL_CLK, main crystal (40 MHz)CPU_CLK (80 / 160 / 240 MHz)÷ (n+1), 20 MHz at reset
PLL_CLK (320 / 480 MHz)CPU_CLK (80 / 160 / 240 MHz)÷ 2, 3, 4 or 6
RC_FAST_CLK, fast RC oscillator (17.5 MHz)CPU_CLK (80 / 160 / 240 MHz)
RC_FAST_CLK, fast RC oscillator (17.5 MHz)RC_FAST_DIV_CLK (RC_FAST ÷ 256)÷ 256
CPU_CLK (80 / 160 / 240 MHz)CPU cores (240 MHz)
CPU_CLK (80 / 160 / 240 MHz)APB_CLK (80 MHz)
CPU_CLK (80 / 160 / 240 MHz)CRYPTO_PWM_CLK (160 MHz)
PLL_CLK (320 / 480 MHz)PLL_F160M_CLK (160 MHz)
PLL_CLK (320 / 480 MHz)PLL_D2_CLK
PLL_CLK (320 / 480 MHz)Wi-Fi and Bluetooth LE
APB_CLK (80 MHz)UART
APB_CLK (80 MHz)SPI
APB_CLK (80 MHz)RMT
APB_CLK (80 MHz)LED PWM
APB_CLK (80 MHz)SAR ADC
XTAL_CLK, main crystal (40 MHz)UART
XTAL_CLK, main crystal (40 MHz)I2C
XTAL_CLK, main crystal (40 MHz)I2S
XTAL_CLK, main crystal (40 MHz)LED PWM
XTAL_CLK, main crystal (40 MHz)System timer (16 MHz)
RC_FAST_CLK, fast RC oscillator (17.5 MHz)UART
RC_FAST_CLK, fast RC oscillator (17.5 MHz)I2C
RC_FAST_CLK, fast RC oscillator (17.5 MHz)LED PWMkeeps PWM running in light sleep
PLL_F160M_CLK (160 MHz)I2S
PLL_D2_CLKI2S
PLL_D2_CLKSAR ADC
CRYPTO_PWM_CLK (160 MHz)Crypto accelerators
RC_SLOW_CLK, slow RC oscillator (0.136 MHz)RTC_SLOW_CLK
XTAL32K_CLK, 32 kHz crystal (0.032 MHz)RTC_SLOW_CLK
RC_FAST_DIV_CLK (RC_FAST ÷ 256)RTC_SLOW_CLK
RTC_SLOW_CLKRTC: power manager, RTC watchdog
XTAL_CLK, main crystal (40 MHz)RTC_FAST_CLK÷ 2
RC_FAST_CLK, fast RC oscillator (17.5 MHz)RTC_FAST_CLK
RTC_FAST_CLKULP coprocessor, on-chip sensors (17.5 MHz)

Power modes

Each step down the ladder switches more of the chip off, and the current drops by orders of magnitude.

Power off draws 340,000 times less than Active, Wi-Fi sending.

Typical current in each power mode, on a log scale, and what stays on
Typical current in each power mode, on a log scale, and what stays on
ItemValueStays on
Active, Wi-Fi sending340 mACPU, RF circuits, Wi-Fi, all peripherals
Active, Bluetooth LE sending176 mA · ×1.9 lessCPU, RF circuits, Bluetooth LE, all peripherals
Active, listening88 mA · ×3.9 lessCPU, RF circuits, all peripherals
Modem-sleep66.2 mA · ×5.1 lessCPU, digital peripherals, RTC
Light-sleep0.24 mA · ×1,400 lessRTC, RAM contents, digital peripherals (optional)
Deep-sleep with the ULP running0.17 mA · ×2,000 lessRTC, RTC memory, ULP coprocessor
Deep-sleep0.008 mA · ×43,000 lessRTC, RTC memory
Power off0.001 mA · ×340,000 less