I’m trying to run the examples provided for the esp32 and all of them are throwing an error that it cannot find sdkconfig.h in a number of files. Here are a few when I try to run the hello-world example:
In file included from /Users/james.fiszer/.platformio/packages/framework-espidf/components/bootloader/src/main/flash_encrypt.c:19:0:
/Users/james.fiszer/.platformio/packages/framework-espidf/components/log/include/esp_log.h:20:23: fatal error: sdkconfig.h: No such file or directory
compilation terminated.
In file included from /Users/james.fiszer/.platformio/packages/framework-espidf/components/bootloader/src/main/secure_boot.c:19:0:
/Users/james.fiszer/.platformio/packages/framework-espidf/components/log/include/esp_log.h:20:23: fatal error: sdkconfig.h: No such file or directory
compilation terminated.
Howdy folks, I fancy myself as an ESP32 kind of guy and am starting my journey on platformio. The sdkconfig.h file is generated from the ESP32 environment. Assuming platformio wasn’t present, one would download the ESP-IDF SDK and then download an application template (both from Github). One would then run the make command to build a tool …
make menuconfig
When run, this produces a terminal based application which shows menus for the configuration of an ESP32 environment. This contains a wealth of options and it is extremely common to modify these options on a project by project basis. For example, one can describe that one wants Bluetooth or WiFi or change the baud rate for upload or change the diagnostics logging levels. Once the tool has been run, a file called “sdkconfig” is generated which contains your saved settings. In addition, a file called “sdkconfig,h” is built which is the missing file needed for ESP32 ESP-IDF application compilation.
From the little study I have done so far, it appears that platformio has no current support for this technique and hence we must download and run a project outside of platformio in order to build the “sdkconfig.h”. This seems to work but is less than ideal. I understand ESP32 pretty well and would be delighted to collaborate with folks knowledgable on platformio to assist in getting an environment which would be natural and positive for ESP32 users. In addition, we can start to look at the ESP-IDF component model (ESP32 libraries) and how those can relate to platformio.
I just switched over from arduino framework to the esp-idf one and I am having the same problem trying to run the esp-idf hello-world example.
I just updated the framework and platform io. - any help would be appreciated.
[Update] Figured it out. Lines were missing from my sdkcofig.h file that was imported as part off the example