Skip to content

Unable to change ESP32 CPU frequency in sdkconfig and boards.txt #1752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
usrdes opened this issue Aug 13, 2018 · 4 comments
Closed

Unable to change ESP32 CPU frequency in sdkconfig and boards.txt #1752

usrdes opened this issue Aug 13, 2018 · 4 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@usrdes
Copy link

usrdes commented Aug 13, 2018

Hardware:

Board: ESP32 Dev Module
Core Installation/update date: 12/Aug/2018
IDE name: Arduino IDE 1.8.5
Flash Frequency: 80Mhz
PSRAM: Enabled
Upload Speed: 921600

Description:

Any Arduino sketch that depends on CPU frequency other than 240 MHz, appears to fail.
Changing the sdkconfig as follows makes no difference:

ESP32-specific

CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=160
CONFIG_SPIRAM_SUPPORT=y

AND making changes in board.tx file as follows shows no change:
esp32.build.f_cpu=160000000L

Sketch:

Example from this URL:
https://github.com/earlephilhower/ESP8266Audio

Modified to just access a web radio. You will need to add your ssid and password in this file,
also change the ".txt" to .ino before using in Arduino IDE:

StreamMP3FromHTTP.txt


### Debug Messages:
The audio playback is obviously much faster. 
Other than that the sketch works fine.
(one compile note about i2c call being deprecated, but the sketch works fine)
@lbernstone
Copy link
Contributor

@usrdes
Copy link
Author

usrdes commented Aug 13, 2018

@lbernstone
Thank you, I looked at your github links *before * I posted my first post above.
I'd like to use the Arduino IDE, & not the ESP-IDF.
For me ( a non software guy) Arduino is a much easier user interface to use.
It would help if the Arduino IDE -> Tools -> had a CPU freq select.
Thanks for your links

@stale
Copy link

stale bot commented Aug 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 1, 2019
@stale
Copy link

stale bot commented Aug 15, 2019

This stale issue has been automatically closed. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants