-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
How do I run at 160 or 240MHz? #487
Comments
The current libs used sets ESP32 at 240 MHz. You need to manually compile using esp-idf and choose 80/160/240 MHz (using settings in make menuconfig) and then copy over those libs. It's a bit tedious, but it can be done. |
I'm quite sure the 160/240Mhz choice was available in the Boards menu of the Arduino IDE sometime in the past, only it was replaced by 80/40Mhz at some stage. Are those values real ? |
does anybody know, if setting CPU clock at runtime, is even possible on the ESP32 (like it is on ESP8266)? |
@everslick No, this isn't possible on the ESP32. |
thanx, then i can safely remove the setting from the code. |
After having tested my ESP32-EVB board from Olimex with the script on this page https://hilo90mhz.com/arduino-esp32-esp8266-101-speed-test-comparison-chart/ I conclude that whatever you chose in the menu, the ESP32 runs at 240MHz. Maybe someone else could try too and confirm this ... |
Strange ... @me-no-dev told me in some other post that the core of ESP-IDF is compiled with "240MHz" settings and than the speed of the clock cannot yet be changed using the Arduino IDE. |
40MHz/80MHz is the SPI flash frequency setting. It is not related to CPU frequency setting. |
But I do run all of my WroverKits at 80MHz flash? never had an issue. What revision is the kit in question? |
This only applies to WROVER-KIT with a WROVER module mounted on it. The (older) ones with WROOM are not affected. There may be some boards which do work, but we have observed the issue on some boards. This was also reported on esp32.com by loboris. Removing resistors which connect module pins to flash header can be used to work around the issue. |
Ahh ;) do not have one of those |
If i change the 'f_cpu' setting in boards.txt for my board (lolin32) from 240000000L to 160000000L or 80000000L the board seems to run at lower speeds. |
it does not run at lower speed actually, but will mess up some calculations. Libs are build for 240MHz and dynamic freq change is not yet available, but I know it's in the works. Stick to 240MHz until you see the option in the menu to change it :) |
@me-no-dev I just want to say : YOU ROCK !!!! I know that coding just the base connection management must be very complicated but to me the user it's just a matter of using a few library and some little code and I have a wifi connected device with web server and etc... just WOW ! You rock and everyone who made this possible ! |
Any update? |
Whats the status of dynamic speed change as on today? |
i use the following snipped, it seems to do something. :-D
|
How do I run at 160 or 240MHz?
The text was updated successfully, but these errors were encountered: