Answers checklist.
IDF version.
6.0.1
Espressif SoC revision.
ESP32-C5 (Rev 1.2)
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom
Power Supply used.
USB
What is the expected behavior?
With Flash Encryption enabled, the CPU should operate at its maximum frequency of 240 MHz during normal execution and dynamically scale down to 160 MHz only when executing an encrypted flash write, then return to 240 MHz afterward.
What is the actual behavior?
The CPU frequency is permanently locked at 160 MHz when Flash Encryption is enabled, preventing the chip from running at 240 MHz at all.
240 MHz option in sdkconfig not available
Steps to reproduce.
- Configure an ESP-IDF project for target
esp32c5 (Revision 1.2).
- Set the default CPU frequency to 240 MHz in
menuconfig.
- Enable Flash Encryption in
menuconfig (Security features -> Enable flash encryption on boot).
- Build, flash, and boot the device.
- Check the CPU frequency at runtime (e.g., via
esp_clk_cpu_freq()) and observe that it is fixed at 160000000 Hz.
Debug Logs.
I (1869) cpu_start: Pro cpu start user code
I (1870) cpu_start: cpu freq: 160000000 Hz
Diagnostic report archive.
No response
More Information.
No response
Answers checklist.
IDF version.
6.0.1
Espressif SoC revision.
ESP32-C5 (Rev 1.2)
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Custom
Power Supply used.
USB
What is the expected behavior?
With Flash Encryption enabled, the CPU should operate at its maximum frequency of 240 MHz during normal execution and dynamically scale down to 160 MHz only when executing an encrypted flash write, then return to 240 MHz afterward.
What is the actual behavior?
The CPU frequency is permanently locked at 160 MHz when Flash Encryption is enabled, preventing the chip from running at 240 MHz at all.
240 MHz option in sdkconfig not available
Steps to reproduce.
esp32c5(Revision 1.2).menuconfig.menuconfig(Security features->Enable flash encryption on boot).esp_clk_cpu_freq()) and observe that it is fixed at 160000000 Hz.Debug Logs.
Diagnostic report archive.
No response
More Information.
No response