espsss / reference / quick / cpu-frequency

CPU frequency: allowed setCpuFrequencyMhz() values

setCpuFrequencyMhz() accepts a short fixed list of PLL frequencies plus whole-MHz fractions of the crystal. Anything else returns false and logs the supported list.

In short

  • setCpuFrequencyMhz() asks ESP-IDF's rtc_clk_cpu_freq_mhz_to_config() whether a value is possible; on failure it returns false and logs the supported frequencies.1
  • Above the crystal frequency only fixed PLL values work (for example 80, 160, 240 MHz on ESP32-S3); at or below it the CPU runs from the XTAL divided by a whole number.2
  • getSupportedCpuFrequencyMhz() returns the list accepted by the running chip; getCpuFrequencyMhz() and getXtalFrequencyMhz() return MHz, getApbFrequency() returns Hz.3
  • In the Arduino IDE CPU Frequency menu only 80 MHz and above are labelled "(WiFi)" ("(WiFi/BT)" on ESP32).4

Per chip

ChipMax CPU (datasheet)PLL values, MHzCrystalIDE defaultIDE menu, MHz
ESP32240 MHz (ESP32-S0WD: 160 MHz)580, 160, 240626 or 40 MHz7240 MHz4240, 160, 80 (WiFi/BT); 40, 20, 10 (40 MHz XTAL); 26, 13 (26 MHz XTAL)4
ESP32-S2240 MHz880, 160, 240940 MHz10240 MHz4240, 160, 80 (WiFi); 40, 20, 104
ESP32-S3up to 240 MHz1180, 160, 240240 MHz12240 MHz4240, 160, 80 (WiFi); 40, 20, 104
ESP32-C2up to 120 MHz1380, 1201426 or 40 MHz15120 MHz4—
ESP32-C3up to 160 MHz1680, 1601740 MHz18160 MHz4160, 80 (WiFi); 40, 20, 104
ESP32-C5up to 240 MHz1980, 160, 2402040 or 48 MHz21240 MHz4240, 120, 80 (WiFi); 40, 20, 10. 120 is in the menu, but rtc_clk has no 120 MHz setting on this chip: setCpuFrequencyMhz() rejects it and the sketch keeps the default frequency4
ESP32-C6HP core up to 160 MHz (LP core up to 20 MHz)2280, 120, 1602340 MHz24160 MHz4160, 120, 80 (WiFi); 40, 20, 104
ESP32-C61up to 160 MHz2580, 1602640 MHz27160 MHz4160, 120, 80 (WiFi); 40, 20, 10. 120 is in the menu, but rtc_clk has no 120 MHz setting on this chip: setCpuFrequencyMhz() rejects it and the sketch keeps the default frequency4
ESP32-H296 MHz2848, 64, 962932 MHz3096 MHz4—
ESP32-P4400 MHz3190, 180, 360 (rev. < v3.0 build); 100, 200, 400 (rev. v3.x build)3240 MHz33360 MHz4—

PLL values are the ones rtc_clk_cpu_freq_mhz_to_config() maps to the PLL; all lower values come from the crystal (next table). IDE default and menu are for the generic "<chip> Dev Module" board in boards.txt. The ESP32-P4 PLL set depends on the chip-revision option the IDF libraries were built with.

Crystal-derived values

At or below the crystal frequency ESP-IDF divides the XTAL by a whole number. arduino-esp32 3.3.12 then drops the values that are not an exact division, and a few more per target.

ChipAccepted, MHz
ESP3240, 20, 10 (40 MHz XTAL); 26, 13 (26 MHz XTAL)1
ESP32-S240, 20, 10, 8, 5, 4, 21
ESP32-S340, 20, 10, 8, 5, 4, 2, 11
ESP32-C240, 20, 10, 8, 5, 4, 2, 1 (40 MHz XTAL); 26, 13, 2, 1 (26 MHz XTAL)1
ESP32-C340, 20, 10, 8, 5, 4, 2, 11
ESP32-C540, 20, 10, 8, 5, 4, 2, 1 (40 MHz XTAL)1
ESP32-C640, 20, 10, 51
ESP32-C6140, 20, 10, 8, 5, 4, 2, 11
ESP32-H232, 16, 8, 4, 2, 11
ESP32-P440, 20, 10, 8, 5, 4, 2, 11

Derived from the two source files, not measured. getSupportedCpuFrequencyMhz() prints the actual list on the chip. ESP32-C5 with a 48 MHz crystal is not listed: there 40 MHz is taken from the PLL.

What happens to APB

ESP32, ESP32-S2

APB stays at 80 MHz while the CPU runs at 80 MHz or more; below that APB follows the crystal-derived CPU clock.1

ESP32-H2

APB is 32 MHz from the 96 and 64 MHz PLL settings, 24 MHz at 48 MHz, and equal to the CPU clock when running from XTAL or RC_FAST.1

Other chips

A PLL frequency leaves APB at its nominal APB_CLK_FREQ; switching the CPU to the crystal brings APB down to the CPU frequency.1

Peripheral callbacks

Before and after the switch setCpuFrequencyMhz() calls the callbacks registered with addApbChangeCallback() with the old and new APB frequency.1

void setup() {
  Serial.begin(115200);
  Serial.printf("XTAL %lu MHz, CPU %lu MHz, APB %lu Hz\n",
                getXtalFrequencyMhz(), getCpuFrequencyMhz(), getApbFrequency());
  Serial.println(getSupportedCpuFrequencyMhz());
  if (!setCpuFrequencyMhz(80)) {
    Serial.println("80 MHz not accepted");
  }
}

void loop() {}

Pitfalls

Rated frequency is checked separately

ESP32 parts whose eFuse says they are rated for 160 MHz reject values above 160; on ESP32-P4 values above 360 MHz need chip revision v3.0 or newer.1

ESP32-C6 below 40 MHz

Only power-of-two crystal dividers up to 32 work on ESP32-C6; arduino-esp32 rejects 8, 4, 2 and 1 MHz because programming them resets the chip.1

120 MHz in the ESP32-C5 and ESP32-C61 menus

The CPU Frequency menu of both Dev Modules offers 120 MHz, but rtc_clk_cpu_freq_mhz_to_config() only knows 240, 160 and 80 MHz on ESP32-C5 and 160 and 80 MHz on ESP32-C61 above the crystal. The core calls setCpuFrequencyMhz(F_CPU / 1000000) at startup; with 120 it returns false and logs the supported list, so the sketch keeps the default frequency.4

The menu must match the crystal

The arduino-esp32 docs say the CPU Frequency option must match the crystal on the board and the radio usage.34

Sources

Each number links here; open “What it confirms” for the exact quotes. Checked 2026-11-28.

  1. arduino-esp32 3.3.12: cores/esp32/esp32-hal-cpu.c primary
    What it confirms (17)
    • CPU frequency: allowed setCpuFrequencyMhz() values: in short “if (!rtc_clk_cpu_freq_mhz_to_config(cpu_freq_mhz, &conf) || !cpuFreqIsUsable(&conf)) { … CPU clock could not be set to %" PRIu32 " MHz. Supported frequencies: %s”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … #define REF_TICK_DIV_MIN 10 … if (conf->freq_mhz < REF_TICK_DIV_MIN * REF_CLK_FREQ / MHZ) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S2 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … #define REF_TICK_DIV_MIN 2 … if (conf->freq_mhz < REF_TICK_DIV_MIN * REF_CLK_FREQ / MHZ) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S3 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C2 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C3 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C5 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C6 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … ESP32-C6 PCR_CPU_LS_DIV_NUM only accepts 0, 1, 3, 7, 15, 31 (dividers 1, 2, 4, 8, 16, 32). … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C61 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-H2 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-P4 / Accepted, MHz “if ((conf->source_freq_mhz % conf->freq_mhz) != 0) { … xtal_freq / freq_mhz;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32, ESP32-S2 “#if CONFIG_IDF_TARGET_ESP32 || CONFIG_IDF_TARGET_ESP32S2 … if (conf->freq_mhz >= 80) { … return 80 * MHZ; … return (conf->source_freq_mhz * MHZ) / conf->div;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-H2 “#elif CONFIG_IDF_TARGET_ESP32H2 … AHB_CLK cannot exceed 32 MHz. … return 24 * MHZ; … return 32 * MHZ; … XTAL/RC_FAST: f_cpu = f_ahb. APB follows AHB (apb_div 1).”
    • CPU frequency: allowed setCpuFrequencyMhz() values: Other chips “Switching the CPU to the XTAL takes the bus clocks down with it … so APB_CLK ends up at the CPU … frequency. Only a PLL-derived CPU frequency leaves APB_CLK at its nominal frequency. … return APB_CLK_FREQ;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: Peripheral callbacks “triggerApbChangeCallback(APB_BEFORE_CHANGE, capb, apb); … triggerApbChangeCallback(APB_AFTER_CHANGE, capb, apb);”
    • CPU frequency: allowed setCpuFrequencyMhz() values: pitfall: Rated frequency is checked separately “Both eFuse bits set means the part is rated for 160 MHz instead of the usual 240 MHz … Only revision 3 and newer are rated for 400 MHz … return chip_info.revision >= 300;”
    • CPU frequency: allowed setCpuFrequencyMhz() values: pitfall: ESP32-C6 below 40 MHz “ESP32-C6 PCR_CPU_LS_DIV_NUM only accepts 0, 1, 3, 7, 15, 31 (dividers 1, 2, 4, 8, 16, 32). … Programming those values trips HAL_ASSERT or leaves the … PCR in an illegal state and the chip resets (boot loop).”
  2. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32s3/rtc_clk.c primary
    What it confirms (2)
    • CPU frequency: allowed setCpuFrequencyMhz() values: in short “if (freq_mhz <= xtal_freq && freq_mhz != 0) { … source = SOC_CPU_CLK_SRC_XTAL; … freq_mhz == 240”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S3 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 160 … freq_mhz == 240”
  3. arduino-esp32 3.3.12: cores/esp32/esp32-hal-cpu.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: in short “Use getSupportedCpuFrequencyMhz() to list the frequencies accepted by the running chip. … uint32_t getCpuFrequencyMhz(); // In MHz … uint32_t getXtalFrequencyMhz(); // In MHz … uint32_t getApbFrequency(); // In Hz”
  4. arduino-esp32 3.3.12: boards.txt primary
    What it confirms (19)
    • CPU frequency: allowed setCpuFrequencyMhz() values: in short “esp32s3.menu.CPUFreq.80=80MHz (WiFi) … esp32s3.menu.CPUFreq.40=40MHz … esp32.menu.CPUFreq.80=80MHz (WiFi/BT)”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32 / IDE default “esp32.build.f_cpu=240000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32 / IDE menu, MHz “esp32.menu.CPUFreq.240=240MHz (WiFi/BT) … esp32.menu.CPUFreq.160=160MHz (WiFi/BT) … esp32.menu.CPUFreq.80=80MHz (WiFi/BT) … esp32.menu.CPUFreq.40=40MHz (40MHz XTAL) … esp32.menu.CPUFreq.26=26MHz (26MHz XTAL) … esp32.menu.CPUFreq.20=20MHz (40MHz XTAL) … esp32.menu.CPUFreq.13=13MHz (26MHz XTAL) … esp32.menu.CPUFreq.10=10MHz (40MHz XTAL)”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S2 / IDE default “esp32s2.build.f_cpu=240000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S2 / IDE menu, MHz “esp32s2.menu.CPUFreq.240=240MHz (WiFi) … esp32s2.menu.CPUFreq.160=160MHz (WiFi) … esp32s2.menu.CPUFreq.80=80MHz (WiFi) … esp32s2.menu.CPUFreq.40=40MHz … esp32s2.menu.CPUFreq.20=20MHz … esp32s2.menu.CPUFreq.10=10MHz”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S3 / IDE default “esp32s3.build.f_cpu=240000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S3 / IDE menu, MHz “esp32s3.menu.CPUFreq.240=240MHz (WiFi) … esp32s3.menu.CPUFreq.160=160MHz (WiFi) … esp32s3.menu.CPUFreq.80=80MHz (WiFi) … esp32s3.menu.CPUFreq.40=40MHz … esp32s3.menu.CPUFreq.20=20MHz … esp32s3.menu.CPUFreq.10=10MHz”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C2 / IDE default “esp32c2.build.f_cpu=120000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C3 / IDE default “esp32c3.build.f_cpu=160000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C3 / IDE menu, MHz “esp32c3.menu.CPUFreq.160=160MHz (WiFi) … esp32c3.menu.CPUFreq.80=80MHz (WiFi) … esp32c3.menu.CPUFreq.40=40MHz … esp32c3.menu.CPUFreq.20=20MHz … esp32c3.menu.CPUFreq.10=10MHz”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C5 / IDE default “esp32c5.build.f_cpu=240000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C5 / IDE menu, MHz “esp32c5.menu.CPUFreq.240=240MHz (WiFi) … esp32c5.menu.CPUFreq.120=120MHz (WiFi) … esp32c5.menu.CPUFreq.80=80MHz (WiFi) … esp32c5.menu.CPUFreq.40=40MHz … esp32c5.menu.CPUFreq.20=20MHz … esp32c5.menu.CPUFreq.10=10MHz … esp32c5.menu.CPUFreq.120.build.f_cpu=120000000L … freq_mhz == 240 … freq_mhz == 160 … freq_mhz == 80 … // unsupported frequency … setCpuFrequencyMhz(F_CPU / 1000000); … CPU clock could not be set to %" PRIu32 " MHz. Supported frequencies: %s”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C6 / IDE default “esp32c6.build.f_cpu=160000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C6 / IDE menu, MHz “esp32c6.menu.CPUFreq.160=160MHz (WiFi) … esp32c6.menu.CPUFreq.120=120MHz (WiFi) … esp32c6.menu.CPUFreq.80=80MHz (WiFi) … esp32c6.menu.CPUFreq.40=40MHz … esp32c6.menu.CPUFreq.20=20MHz … esp32c6.menu.CPUFreq.10=10MHz”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C61 / IDE default “esp32c61.build.f_cpu=160000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C61 / IDE menu, MHz “esp32c61.menu.CPUFreq.160=160MHz (WiFi) … esp32c61.menu.CPUFreq.120=120MHz (WiFi) … esp32c61.menu.CPUFreq.80=80MHz (WiFi) … esp32c61.menu.CPUFreq.40=40MHz … esp32c61.menu.CPUFreq.20=20MHz … esp32c61.menu.CPUFreq.10=10MHz … esp32c61.menu.CPUFreq.120.build.f_cpu=120000000L … freq_mhz == 80 … freq_mhz == 160 … // unsupported frequency … setCpuFrequencyMhz(F_CPU / 1000000); … CPU clock could not be set to %" PRIu32 " MHz. Supported frequencies: %s”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-H2 / IDE default “esp32h2.build.f_cpu=96000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-P4 / IDE default “esp32p4.build.f_cpu=360000000L”
    • CPU frequency: allowed setCpuFrequencyMhz() values: pitfall: 120 MHz in the ESP32-C5 and ESP32-C61 menus “esp32c5.menu.CPUFreq.120.build.f_cpu=120000000L … esp32c61.menu.CPUFreq.120.build.f_cpu=120000000L … setCpuFrequencyMhz(F_CPU / 1000000); … freq_mhz == 240 … freq_mhz == 160 … freq_mhz == 80 … // unsupported frequency … CPU clock could not be set to %" PRIu32 " MHz. Supported frequencies: %s”
  5. ESP32 Series Datasheet v5.3 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32 / Max CPU (datasheet) “clock frequency of up to 240 MHz (160 MHz for ESP32-S0WD (NRND))”
  6. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 160 … freq_mhz == 240”
  7. ESP-IDF v5.5.5: components/soc/esp32/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32 / Crystal “SOC_XTAL_SUPPORT_26M … SOC_XTAL_SUPPORT_40M”
  8. ESP32-S2 Series Datasheet v1.9 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S2 / Max CPU (datasheet) “single-core 32-bit LX7 microprocessor, up to 240 MHz”
  9. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32s2/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S2 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 160 … freq_mhz == 240”
  10. ESP-IDF v5.5.5: components/soc/esp32s2/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S2 / Crystal “SOC_XTAL_SUPPORT_40M”
  11. ESP32-S3 Series Datasheet v2.2 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S3 / Max CPU (datasheet) “Clock speed: up to 240 MHz”
  12. ESP-IDF v5.5.5: components/soc/esp32s3/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-S3 / Crystal “SOC_XTAL_SUPPORT_40M”
  13. ESP8684 Series Datasheet v2.3 (ESP32-C2 group) primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C2 / Max CPU (datasheet) “Four-stage pipeline that supports an operating clock frequency up to 120 MHz”
  14. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32c2/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C2 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 120”
  15. ESP-IDF v5.5.5: components/soc/esp32c2/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C2 / Crystal “SOC_XTAL_SUPPORT_26M … SOC_XTAL_SUPPORT_40M”
  16. ESP32-C3 Series Datasheet v2.5 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C3 / Max CPU (datasheet) “Clock speed: up to 160 MHz”
  17. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32c3/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C3 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 160”
  18. ESP-IDF v5.5.5: components/soc/esp32c3/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C3 / Crystal “SOC_XTAL_SUPPORT_40M”
  19. ESP32-C5 Series Datasheet v1.5 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C5 / Max CPU (datasheet) “Clock speed: up to 240 MHz”
  20. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32c5/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C5 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 160 … freq_mhz == 240”
  21. ESP-IDF v5.5.5: components/soc/esp32c5/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C5 / Crystal “SOC_XTAL_SUPPORT_40M … SOC_XTAL_SUPPORT_48M”
  22. ESP32-C6 Series Datasheet v1.6 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C6 / Max CPU (datasheet) “Four-stage pipeline that supports an operating clock frequency up to 160 MHz”
  23. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32c6/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C6 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 120 … freq_mhz == 160”
  24. ESP-IDF v5.5.5: components/soc/esp32c6/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C6 / Crystal “SOC_XTAL_SUPPORT_40M”
  25. ESP32-C61 Series Datasheet v1.1 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C61 / Max CPU (datasheet) “Clock speed: up to 160 MHz”
  26. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32c61/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C61 / PLL values, MHz “freq_mhz == 80 … freq_mhz == 160”
  27. ESP-IDF v5.5.5: components/soc/esp32c61/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-C61 / Crystal “SOC_XTAL_SUPPORT_40M”
  28. ESP32-H2 Series Datasheet v1.3 primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-H2 / Max CPU (datasheet) “Clock speed: up to 96 MHz”
  29. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32h2/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-H2 / PLL values, MHz “freq_mhz == 48 … freq_mhz == 64 … freq_mhz == 96”
  30. ESP-IDF v5.5.5: components/soc/esp32h2/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-H2 / Crystal “SOC_XTAL_SUPPORT_32M”
  31. ESP32-P4 Series Datasheet Pre-release v0.7 (preliminary; covers chip revision v3.x) primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-P4 / Max CPU (datasheet) “32-bit RISC-V dual-core processor up to 400 MHz for HP system”
  32. ESP-IDF v5.5.5: components/esp_hw_support/port/esp32p4/rtc_clk.c primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-P4 / PLL values, MHz “#if CONFIG_ESP32P4_SELECTS_REV_LESS_V3 … freq_mhz == 90 … freq_mhz == 180 … freq_mhz == 360 … freq_mhz == 100 … freq_mhz == 200 … freq_mhz == 400”
  33. ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/soc_caps.h primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: ESP32-P4 / Crystal “SOC_XTAL_SUPPORT_40M”
  34. arduino-esp32 3.3.12: docs/en/guides/tools_menu.rst primary
    What it confirms (1)
    • CPU frequency: allowed setCpuFrequencyMhz() values: pitfall: The menu must match the crystal “This option is critical and must be selected according to the high-frequency crystal present on the board and the radio usage (Wi-Fi and Bluetooth).”