Skip to content
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

Make tweaks in sdkconfig also possible in Arduino #9456

Open
1 task done
weoiss1998 opened this issue Apr 5, 2024 · 3 comments
Open
1 task done

Make tweaks in sdkconfig also possible in Arduino #9456

weoiss1998 opened this issue Apr 5, 2024 · 3 comments
Labels
Type: Feature request Feature request for Arduino ESP32

Comments

@weoiss1998
Copy link

Related area

General

Hardware specification

All ESP32 modules

Is your feature request related to a problem?

My current problem is that my ESP32 is booting too slowly. I have seen in the ESP-IDF docs that it is possible to switch off the logs so that the ESP32 boots much faster.
I have seen that it is possible to move the entire project from Arduino to the ESP-IDF, but this involves considerable effort.

For this reason, I wanted to ask whether it is possible to make these settings accessible in the Arduino-ESP project.

Translated with DeepL.com (free version)

Describe the solution you'd like

I would be happy if I have a config file where I can select this performance options.

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@weoiss1998 weoiss1998 added the Type: Feature request Feature request for Arduino ESP32 label Apr 5, 2024
@lbernstone
Copy link
Contributor

lbernstone commented Apr 5, 2024

You can switch off the application's logs in the Arduino IDE. It is not the boot log that is slowing things down generally (and that is turned off with a hardware setting, not software). If you need the shortest boot cycle possible, you can disable verifying the image, which can get your bootloader time under 25ms. That is an sdkconfig option pre-set in arduino-esp32.
arduino-esp32 includes compiled versions of the esp-idf in order to speed up and simplify the compile. You need to recompile those libraries in order to change these embedded options. You can use the template to set up a build environment with arduino as a component. It would be hard to get a consistent sdkconfig without menuconfig, and you will likely want to use menuconfig to determine what options you need to change for different variants.
It is also possible to compile arduino as an IDF component in platformio using both the arduino and esp-idf frameworks (framework = arduino, espidf).
The Arduino IDE is simply not set up to support such a feature.

@lucasssvaz
Copy link
Collaborator

If you need to tweak the IDF configuration you can either use Arduino as a component or manually recompile the libs using https://github.com/espressif/esp32-arduino-lib-builder

@SuGlider
Copy link
Collaborator

SuGlider commented Apr 8, 2024

As already said, Arduino IDE uses precompiled libraries and it is not possible to change any sdkconfig setting.
A way to use Arduino and be able to change the sdkconfig is by using Arduino as IDF Component.
It will allow to build the Arduino project using IDF tools, such as idf.py build and idf.py menuconfig


Related to the itme it takes to boot: Does your project use PSRAM?
Arduino checks the whole memory (scanning it) before starting the sketch.
There is a way to skip it (that takes about 500ms).
For not testing PSRAM, just add BYPASS_SPIRAM_TEST(true); in the sketch code.

#5737 (comment)
#6135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

No branches or pull requests

4 participants