Skip to content

[ESP32-C2] setCpuFrequencyMhz(): Bad frequency: 120 MHz! Options are: 240, 160, 80, 26 and 13 MHz #8955

Closed
@TD-er

Description

@TD-er

Board

ESP32-C2

Device Description

Just any ESP32-C2

Hardware Configuration

Nothing attached to the board

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 11

Flash frequency

40MHz

PSRAM enabled

no

Upload speed

115200

Description

Cannot set the default CPU frequency, even though it is initially running at this frequency.
Debug error:

[   401][E][esp32-hal-cpu.c:195] setCpuFrequencyMhz(): Bad frequency: 120 MHz! Options are: 240, 160, 80, 26 and 13 MHz

Reported frequencies of this board:

  • ESP Chip ID: 1005908 (0x0F5954)
  • ESP Chip Frequency: 120 MHz
  • ESP Crystal Frequency: 26 MHz
  • ESP APB Frequency: 40 MHz
  • ESP Chip Model: ESP32-C2
  • ESP Chip Revision: 1.0

Sketch

setCpuFrequencyMhz(120);

Debug Message

[   401][E][esp32-hal-cpu.c:195] setCpuFrequencyMhz(): Bad frequency: 120 MHz! Options are: 240, 160, 80, 26 and 13 MHz

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions