-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Using github o update IDF SDK on Arduino IDE leads to compilation errors #5734
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
Comments
To solve this issue it's necessary to copy: Arduino15\packages\esp32\hardware\esp32\2.0.0\tools\sdk\esp32\include\freertos\include\esp_additions\freertos_tasks_c_additions.h and Arduino15\packages\esp32\hardware\esp32\2.0.0\tools\sdk\esp32\include\freertos\include\esp_additions\freertos\task_snapshot.h to this folder: |
How did you replace v2.0.0 with master? |
@chegewara, The steps to reproduce the issue are in the description. |
Step c is incorrect. The github version should be put in your sketchbook folder. This is typically in your Documents folder on Windows, so c:\users\username\Documents\Arduino\hardware\espressif\esp32 |
I want to update IDF libraries as the same as in Master latest. In the step to reproduce the issue, I just refer to Arduino15/.... to make it easier. The link you pointed talks about |
Yes, don't do that. Let board manager manage its files. You can manage the ones in your sketchbook folder. Make the espressif folder and clone esp32 into it. |
@lbernstone, I did exatcly as you said. Compiled the sketch from #5107 and tested it ---> it didn't work at all. Looking into the log from Arduino IDE while compiling and linking, I only see references to C:\Users\rocor\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\ folder. None to the sketchbook folder. My issue is regarding Linking the latest IDF libxxx.a files found in C:\Users\rocor\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.0\tools\sdk\esp32\lib folder. For some reason https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#windows doesn't work. |
This is the linking command line from Arduino IDE:
It's easy to see that it links using |
Please accept the fact you are doing it wrong. As you can see there is 2 versions of esp32 boards. One from normal installation and another from custom installation. |
@chegewara, yes, I hadn't seen that there was another board (in sketchbook). Thanks for the screenshots. @lbernstone and @chegewara Thanks for the help! |
Hardware:
Board: ESP32 Dev Module
Core Installation version: 2,0,0
IDE name: Arduino IDE 1.8.15
Flash Frequency: 80MHz
PSRAM enabled: no
Upload Speed: 115200?
Computer OS: Windows 10
Description:
When replacing Arduino 2.0.0 with latest Master, I got an error.
Steps to reproduce:
a) Install Arduino ESP32 Board with V2.0.0
b) Clone Arduino github on a separated directory
c) Copy contents from GitHub cloned folder /tools/sdk/esp32/* to PC Arduino IDE folder Arduino15/packages/esp32/hardware/esp32/2.0.0/tools/sdk/esp32/
d) At this point the IDF sdk is now updated to the latest github master branch. All set to build an application.
e) Compile any sketch and get an error message as in Debug Messages below:
Sketch:
Debug Messages:
The text was updated successfully, but these errors were encountered: