-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Flasher stub: Increase CPU frequency to 240 MHz for ESP32-S3 (ESPTOOL-521) #781
Conversation
One note is that we should restore the original setting when exiting the stub (e.g. if |
could you please update the PR to first store the original settings before increasing CPU freq and to restore the original settings when exiting the stub? (commands in question: If not, I can finish this feature, please let me know! |
Do you think there is any issues regarding power consumption (peak power for example) of the increased cpu frequency? |
The only issue I can think of might be the chip becoming more prone to browning out if an insufficient power supply is used. |
I was more thinking of people who try to flash a board that runs on a weak power supply, like a battery or something. |
@Emill yes, I believe we are mentioning the same thing. I think we can implement this and see if any serious issues with weaker power supplies arise. |
I can revert the previous cpu setting whenever When For, |
We need to restore the settings in all of these four cases, the CPU freq can be increased only while stub logic is running. |
Hi @Emill, |
Hi. Please pick this up as I am quite busy at the moment... :) |
… USB-JTAG/Serial Closes espressif/esptool#781 Closes espressif/esptool#779
Description of change
Increase clock speeds for ESP32-S3.
This increases CPU frequency from 20 MHz to 240 MHz and SPI frequency from 5 MHz to 20 MHz.
This results in ~2x faster flashing performance in total.
The power consumption impact has not been studied.
This change fixes the following bug(s):
(#779), but only for ESP32-S3. Someone who has access to other boards can probably submit a similar patch for such boards.
I have tested this change with the following hardware & software combinations:
ESP32-S3-WROOM-1
I have run the esptool.py automated integration tests with this change and the above hardware. The results were: