Proper way to change ESP configuration for Arduino

rrzayev
Posts: 3
Joined: Sat Dec 05, 2020 11:10 am

Proper way to change ESP configuration for Arduino

Postby rrzayev » 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.

chegewara
Posts: 2376
Joined: Wed Jun 14, 2017 9:00 pm

Re: Proper way to change ESP configuration for Arduino

Postby chegewara » Sun Dec 06, 2020 5:17 pm

Recommended arduino as component is to use:
- arduino v1.0.4 with esp-idf v3.3
- arduino release/v4.2 with esp-idf master (NOT v4.2)

Other arduino branches (except master) are outdated and wont be updated.


rrzayev
Posts: 3
Joined: Sat Dec 05, 2020 11:10 am

Re: Proper way to change ESP configuration for Arduino

Postby rrzayev » Mon Dec 07, 2020 12:18 pm

Thank you very much. I will try it and inform you.

rrzayev
Posts: 3
Joined: Sat Dec 05, 2020 11:10 am

Re: Proper way to change ESP configuration for Arduino

Postby rrzayev » Fri Dec 11, 2020 9:47 am

You can find the steps in this link: https://github.com/espressif/arduino-esp32/issues/4529

Though I am not sure that I do everything correctly. Because the demo code works well with increased wifi speed, but my own project doesn't work properly anymore.

Who is online

Users browsing this forum: Google [Bot] and 49 guests