Hello all
I have just acquired an ESP32 devkit and am trying to program it through Clion with the new platform io plugin.
While I have successfully uploaded examples to the board with the use of espressif’s toolchain, I cannot make it work inside Clion.
My flow:
Create new project → select my board - espdif → copy paste an example inside src/main.c, build
When trying to build it, I get two errors:
Error: Couldn’t find the main target of the project!
Warning: Could not find “sdkconfig.json” file
Espressif’s website states that the sdkconfig.json should be automatically generated and put inside the build directory. in case it is not there, rerun CMake or idf.py in order to create it.
No matter how many different approaches I have tried, the file does not seem to be generated ever, the same with sdkconfig.h (another prerequisite for main.c)
Anyone has encountered this error before?