-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
ESP32 S3 Wroom Startup is too slow (IDFGH-14081) #14895
Comments
Hi @weoiss1998 May I know if you have done every optimization? Especially Disable Boot ROM Log Printing. Need to burn refuses : |
Hi @zztiger123 , yeah i did this aswell. I have discovered that it is an ESP32 S3 WROOM 2, is this perhaps the reason? |
hi @weoiss1998 here is my test result. I try the example/system/deep_sleep example, and set gpio 6 level to 1 on call_start_cpu0() ( as this function is the entry of appmain https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/startup.html#first-stage-rom-bootloader )and the top of app main, my setting GPIO code is like this: I don't use the genneral GPIO API beacuse this it would be faster to directlty use lower apis.
however, it seems there are still some differences between your result and mine. I want to confirm the level change timing in your logic |
I will try it in the next few days. |
Yes, I have set the GPIO level on the top of app_main, I think it is same. |
My spontaneous guess is that the ESP32 S3 boots from deep sleep faster than if the power is completely disconnected. |
Hi @Xiehanxin, how can I modify the cpu_start.c or where do you add void IRAM_ATTR call_start_cpu0(void)? |
you can found in components/esp_system/port/cpu_start.c |
I found it but the Pin Output doesn't change on my side. |
may I know which pin do you use? |
I tried it with 4 and 6, when I use your Implementation nothing Changes, when I use gpio_set_direction and gpio_set_level it works |
Answers checklist.
IDF version.
5.3.1 and 5.2.3
Espressif SoC revision.
ESP32S3 Wroom
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32 S3 Wroom Dev Kit
Power Supply used.
USB
What is the expected behavior?
https://docs.espressif.com/projects/esp-techpedia/en/latest/esp-friends/advanced-development/performance/reduce-boot-time.html says after optimizing the startup will be around 27ms.
What is the actual behavior?
In my tests it's at the minimum of 56ms.
Steps to reproduce.
Make optimizations of https://docs.espressif.com/projects/esp-techpedia/en/latest/esp-friends/advanced-development/performance/reduce-boot-time.html and check when a pin goes high.
Debug Logs.
No response
More Information.
I tried it with 5.2.3 and 5.3.1. There is practically no difference.
Here is a picture of my logic analyzer:
The text was updated successfully, but these errors were encountered: