Proper way to change ESP configuration for Arduino
Posted: Sat Dec 05, 2020 11:36 am
I have been using Arduino IDE for ESP32 development. In the project, I have low wifi download speed
( https://github.com/espressif/arduino-esp32/issues/4529 ), and intend to increase the speed by updating wifi configuration parameters according to official recommendations ( https://docs.espressif.com/projects/esp ... parameters )
I have downloaded esp-idf on my Windows machine and followed the instructions ( https://github.com/espressif/arduino-es ... mponent.md ) . In a template project, I created componenets/arduino folder and downloaded the esp32-arduino to this folder. Then I did "idf.py menuconfig" ("make menuconfig" doesn't work) and build was successful. When I compare the generated sdkconfig file in example ("C:\ESP32\esp-idf\examples\get-started\hello_world") and the one stored in original Arduino("C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\tools\sdk"), I noticed that that these files have both a lot of common and also many different fields. Now in order to use the updated configurations, as I have understood, there are two options:
1) Go to "C:\ESP32\esp-idf\examples\get-started\hello_world\build\esp-idf", copy all the files with "*.a" extension, and move them to arduino "C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\tools\sdk\lib" into respective folders. Is this correct? Should anything else be done to update configuration in Arduino?
2) Move the arduino project code to the esp-idf example, and try to run it this way. Though I don't have a clue how it should be done.
I would appreciate your recommendations. I guess this process is much more complicated compared to Linux.
P.S. ESP-IDF version is 4.0. Inside esp-idf example, componenets/arduino version is also 4.0 to match versions.
( https://github.com/espressif/arduino-esp32/issues/4529 ), and intend to increase the speed by updating wifi configuration parameters according to official recommendations ( https://docs.espressif.com/projects/esp ... parameters )
I have downloaded esp-idf on my Windows machine and followed the instructions ( https://github.com/espressif/arduino-es ... mponent.md ) . In a template project, I created componenets/arduino folder and downloaded the esp32-arduino to this folder. Then I did "idf.py menuconfig" ("make menuconfig" doesn't work) and build was successful. When I compare the generated sdkconfig file in example ("C:\ESP32\esp-idf\examples\get-started\hello_world") and the one stored in original Arduino("C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\tools\sdk"), I noticed that that these files have both a lot of common and also many different fields. Now in order to use the updated configurations, as I have understood, there are two options:
1) Go to "C:\ESP32\esp-idf\examples\get-started\hello_world\build\esp-idf", copy all the files with "*.a" extension, and move them to arduino "C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\tools\sdk\lib" into respective folders. Is this correct? Should anything else be done to update configuration in Arduino?
2) Move the arduino project code to the esp-idf example, and try to run it this way. Though I don't have a clue how it should be done.
I would appreciate your recommendations. I guess this process is much more complicated compared to Linux.
P.S. ESP-IDF version is 4.0. Inside esp-idf example, componenets/arduino version is also 4.0 to match versions.