Reinstalling with latest Arduino IDE
Reinstalling with latest Arduino IDE
I have done a few projects with the nodemcu, but not in the last year or so. I am trying to revive my setup using the latest IDE and a new system. So new install. Everything is fine until I try to install arduino-esp32-master from github as a zip. It downloads fine but adding it as a library to the IDE fails. It is quite large and I get a long list of missing .h file errors. I feel like I am missing something basic here. Is this file intended to be imported into Arduino as a zip library?? Feeling like a newb.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Reinstalling with latest Arduino IDE
You should either install with board manager or git clone the repo.
https://docs.espressif.com/projects/ard ... lling.html
https://docs.espressif.com/projects/ard ... lling.html
Re: Reinstalling with latest Arduino IDE
The boards (using board manager) installed fine. That is not my problem. My problem is installing the support libraries here. https://github.com/espressif/arduino-esp32. The normal procedure is to download the lib in zip form and then add it as a zip library. That fails every time for me even after multiple downloads.
Re: Reinstalling with latest Arduino IDE
I decided to try again using the board manager urls in your post. They were different than the one I found. But it still gives me errors. This is much the same as before. Failing to find libs that I know are in the git repo I linked to earlier.
Documents\\Arduino\\libraries\\WiFi-master\\src" "-Ic:\\Users\\temp\\Documents\\Arduino\\libraries\\HTTPClient\\src" "-IC:\\Users\\temp
..................................................
Alternatives for sdkconfig.h: []
ResolveLibrary(sdkconfig.h)
-> candidates: []
In file included from c:\Users\temp\Documents\Arduino\libraries\HTTPClient\src\HTTPClient.cpp:30:
c:\Users\temp\Documents\Arduino\libraries\esp32/esp32-hal-log.h:22:10: fatal error: sdkconfig.h: No such file or directory
22 | #include "sdkconfig.h"
| ^~~~~~~~~~~~~
compilation terminated.
Documents\\Arduino\\libraries\\WiFi-master\\src" "-Ic:\\Users\\temp\\Documents\\Arduino\\libraries\\HTTPClient\\src" "-IC:\\Users\\temp
..................................................
Alternatives for sdkconfig.h: []
ResolveLibrary(sdkconfig.h)
-> candidates: []
In file included from c:\Users\temp\Documents\Arduino\libraries\HTTPClient\src\HTTPClient.cpp:30:
c:\Users\temp\Documents\Arduino\libraries\esp32/esp32-hal-log.h:22:10: fatal error: sdkconfig.h: No such file or directory
22 | #include "sdkconfig.h"
| ^~~~~~~~~~~~~
compilation terminated.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Reinstalling with latest Arduino IDE
The built in libraries are included when you install via board manager, no need for further acrobatics. Remove the mess you have made in your libraries folder. Keep it simple.
Re: Reinstalling with latest Arduino IDE
I wish that were true. If it were, I wouldn't be here. Perhaps I missed something. My process was simple.lbernstone wrote: ↑Wed Apr 27, 2022 9:07 amThe built in libraries are included when you install via board manager, no need for further acrobatics. Remove the mess you have made in your libraries folder. Keep it simple.
1. new install of arduino.
2. Install esp board support using board manager. (installs w/o error)
2a. Change board to nodemcu.
3. install JemRF zip file that contains sketch I am trying to work on. (installs w/o error)
4. FAIL to compile due to missing libraries
5. Find what seem to be missing libs here:https://github.com/espressif/arduino-esp32.
6. Attempt to install those libs from zip file on Git through arduino lib manager.
7. FAILS to install the zip file with a long list of errors.
8. Come here for support as directed on GIT.
If something in this process is incorrect, please tell me which step was wrong, or missed, or whatever. I can start from scratch if necessary.
But my initial question also remains. How is this lib intended to be used?? It will not install using arduino lib manager. https://github.com/espressif/arduino-esp32. Is it supposed to be installed as part of a board manager install?
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Reinstalling with latest Arduino IDE
arduino-esp32 is a board. That is why it is installed through board manager, rather than library manager. The included libraries are specific to the esp32, so should not be installed separately.
You say you are choosing NodeMCU. Do you mean NodeMCU-32s? The original NodeMCU is esp8266-based, and will not work with esp32 code.
You can test that your installation is working by opening any of the examples (File->Examples) specific for the esp32 board you have chosen, eg. ESP32 Async UDP->AsyncUDPClient. Choose Sketch->Verify/Compile, and it should compile cleanly. You can see at the top of this code that it includes two libraries that are part of the board package. If it compiles properly, your environment is functioning. If your other code is not working, perhaps the problem lies there, and you can post those errors.
You say you are choosing NodeMCU. Do you mean NodeMCU-32s? The original NodeMCU is esp8266-based, and will not work with esp32 code.
You can test that your installation is working by opening any of the examples (File->Examples) specific for the esp32 board you have chosen, eg. ESP32 Async UDP->AsyncUDPClient. Choose Sketch->Verify/Compile, and it should compile cleanly. You can see at the top of this code that it includes two libraries that are part of the board package. If it compiles properly, your environment is functioning. If your other code is not working, perhaps the problem lies there, and you can post those errors.
Re: Reinstalling with latest Arduino IDE
I think that nailed it. I am trying to get the nodemcu(esp12e) working. So you have answered two questions for me. 1.The zip I am downloading is not just a library. 2. It contains the wrong libraries!!lbernstone wrote: ↑Wed Apr 27, 2022 4:39 pmarduino-esp32 is a board. That is why it is installed through board manager, rather than library manager. The included libraries are specific to the esp32, so should not be installed separately.
You say you are choosing NodeMCU. Do you mean NodeMCU-32s? The original NodeMCU is esp8266-based, and will not work with esp32 code.
You can test that your installation is working by opening any of the examples (File->Examples) specific for the esp32 board you have chosen, eg. ESP32 Async UDP->AsyncUDPClient. Choose Sketch->Verify/Compile, and it should compile cleanly. You can see at the top of this code that it includes two libraries that are part of the board package. If it compiles properly, your environment is functioning. If your other code is not working, perhaps the problem lies there, and you can post those errors.
So I am going to start over. Then ask a different question directed toward the failure of the first compile error for jemrf on nodemcu 1.0.
THANKS!!! for your help. I was far down the wrong rabbit hole.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Reinstalling with latest Arduino IDE
Ok, there is a forum for the esp8266 as well
https://www.esp8266.com/
https://www.esp8266.com/
Who is online
Users browsing this forum: No registered users and 57 guests