Not sure where to go from here. I got pioarduino running. (at least as far as I know, extension is there, enabled, pioarduino selected at startup)
I tried to compile a project I had working just two weeks ago. It uses an Ellecrow 7" display board with esp32-S3.
I tried re-creating the project from scratch with bare minimum and a different name, but that didn’t help. Deleting the cache and platform dirs, to force a new download. A couple of searches and AI “fixes” have done nothing.
I keep getting an error about sdkconfig.h not found.
Starts with:
PlatformIO/.platformio/packages/framework-arduinoespressif32-libs/esp32s3/include/newlib/platform_include/sys/cdefs.h:7:10: fatal error: sdkconfig.h: No such file or directory
I get the “box” with a message about “looking for dependency header…”
I’ve followed that, installed it via CLI, added header and modified the *.ini file, and none work.
Then it goes on about BLE errors, which I assume are related.
esp_gatt_defs.h: No such file or directory
So far, nothing I do seems to help. Any suggestions?
Then delete that folder. If in doubt, delete the entire C:\Users\<user>\.platformio\packages\ folder. The platform will redownload the packages it needs.
Nope.
I deleted everything, and it installed a whole boatload of stuff, but still not working.
It’s hanging on .platformio/packages/framework-arduinoespressif32-libs/esp32s3/include/newlib/platform_include/sys/cdefs.h:7:10: fatal error: sdkconfig.h:
It always comes down to sdkconfig.h.
It’s like it’s there, but something is just preventing pio from “seeing” it.
Are the paths very long? If the file exists on the disk but due to relative path traversal gets long, enable Win32 NTFS long paths. See e.g. https://arduino-pico.readthedocs.io/en/latest/platformio.html#important-steps-for-windows-users-before-installing.
Otherwise, check if a newly created project can be built cleanly, not your older project, with the same platform version.
I got that message about “long paths not enabled” the other day, not sure why because I know I had them enabled. So, I re-enabled them.
Now, after much searching and reading… and trying a few things…
One was adding "custom_sdkconfig = " to the ini file. pioarduino devin said to leave it blank. But it screamed about that, so I added “custom_sdkconfig = sdkconfig” and it seemed happy. At least the file was created.
Another was creating a new, blank project, just to get that to compile. That by itself was no help, but better, much further along.
I changed the board from the “esp32-s3-devkitc-1-myboard” to “esp32-s3-devkitc-1”. Not sure what effect that has or will have on the board usage.
I re-installed CMake.
I got an error about spaces in path name, so I created a(nother) new blank project, with no spaces in the project path.
So far, no luck, but another error! Yay! Now it’s:
collect2.exe: error: ld returned 1 exit status.
I believe it said “file not found”. I can’t find that as of now, but I believe that’s what it said.
Now it’s compiling! No changes made either. But still just the “starter project”, no real code, libraries or ini file.
We’ll see what happens when I start adding stuff back.
It might be further along now, I’m not sure.
It’s stopping on an LVGL issue, so I’m not sure if it’s past the previous error or not.
Not sure what’s going on with LVGL either. The libraries from an older project don’t match up.
If it is fixed, not sure what fixed it. So no help there.