-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
The sdkconfig.h include path has been moved with arduino-esp32 core v2.x and later #814
Comments
Mhh, checked with a S3. Dont have a entry to |
This probably the reason for. You can delete hidden folder |
@Jason2866 I deleted the .platform folder and everything under it and tried again. But still the [env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino #include <Arduino.h>
void setup() {}
void loop() {} Given that the problem is not reproduced in your environment, I assume that my environment has a singularity. So, do you have any clues to proceed diagnosing this problem by myself? P.S. |
Hi @Hieromon ! I managed to reproduce the issue and it seems it's a common problem for both PlatformIO and Arduino IDE as they are autogenerated from the same source. I guess it might be a good idea to ask the maintainers of the Arduino core whether it's expected behavior. |
@Hieromon I use my own fork for building Arduino (libraries) from IDF.
My platform is MacOs Monterey latest version with a Macbook M1 Air. |
@Jason2866 I've been tentatively using the package you've presented for a while until platformio's espressif32 framework catches up with the esp32arduino core 2.0.3 head. It was based on the workaround you presented in the comment. But, as @valeros suggested, the problem is probably on the arduino core side. For example, hard-coded like as the Thank you @valeros. Ok, I agree. I'll try to diagnose the problem a bit more on my end, enclose the problem, and then throw an issue to esp32 arduino core. |
Tbh, idk whats different. When using the release platform-espressif32@4.3.0 i have this error too
|
Well the line is there!! |
Will be fixed with PR espressif/arduino-esp32#6798 |
Should be fixed in the latest Arduino package. |
Thanks for the espressif32 platform for almost catching up with the esp32 arduino core 2.0 head.
The distribution package's folder structure has been changed to support multiple ESP32 architectures in arduino core 2.0 and later. The folder location of sdkconfig.h has been moved from
tools/sdk/esp32/include/config
totools/sdk/[ARCH]/qspi_qspi/include
and no longer exists with esp32 arduino core 2.0.2.Especially , only the ESP32S3 is special, as there are multiple folder hierarchies leading to sdkconfig.h, depending on the type of External RAM (PSRAM) interface embedded in the WROVER module.
e.g.
tools/sdk/esp32s3/[INTERFACE]/include
. INTERFACE := 'opi_opi
' | 'opi_qspi
' | 'qspi_opi
' | 'qspi_qspi
'On the other hand, PIO outputs
tools/sdk/[ARCH]/include/config
to the include path and browse path of c_cpp_properties.json for VSCODE generated according to the configuration in platformio.ini. Its folder should no longer exist.As a result, VSCODE IntelliSense warns that
tools/sdk/esp32/include/config could not be found
.That said, there is no real harm done, so we can leave it alone for a while.
Environment
platformio.ini
c_cpp_properties.json:
The text was updated successfully, but these errors were encountered: