Why doesn’t the example " espidf-arduino-blink " compile ?
I get the following in the terminal.
Processing esp32dev (board: esp32dev; platform: espressif32; framework: arduino, espidf)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via-v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: Espressif 32 (3.2.1) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 0.0.0+sha.d011dd7
- framework-espidf 3.40001.200521 (4.0.1)
- tool-cmake 3.16.4
- tool-esptoolpy 1.30000.201119 (3.0.0)
- tool-idf 1.0.1
- tool-mconf 1.4060000.20190628 (406.0.0)
- tool-ninja 1.9.0
- toolchain-esp32ulp 1.22851.191205 (2.28.51)
- toolchain-xtensa32 2.80400.210114 (8.4.0)
Warning! Arduino framework as an ESP-IDF component doesn’t handle thevariant
field! The defaultesp32
variant will be used.
Reading CMake configuration…
– The C compiler identification is unknown
– The CXX compiler identification is unknown
– Configuring incomplete, errors occurred!
See also “C:/Users/Jim/Documents/PlatformIO/Projects/espidf-arduino-blink/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log”.
See also “C:/Users/Jim/Documents/PlatformIO/Projects/espidf-arduino-blink/.pio/build/esp32dev/CMakeFiles/CMakeError.log”.CMake Error at CMakeLists.txt:2 (include):
include could not find load file:C:\Users\Jim\.platformio\packages\framework-espidf@3.40001.200521/tools/cmake/project.cmake
CMake Error at CMakeLists.txt:3 (project):
No CMAKE_C_COMPILER could be found.Tell CMake where to find the compiler by setting either the environment
variable “CC” or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.CMake Error at CMakeLists.txt:3 (project):
No CMAKE_CXX_COMPILER could be found.Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.============================================================================================== [FAILED] Took 1.72 seconds ==============================================================================================The terminal process “C:\Users\Jim.platformio\penv\Scripts\platformio.exe ‘run’” terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.