I am trying to use the latest esp-idf 4.3.1 by tweaking my platformio.ini file which currently picks up esp-idf 4.3.0 by default. I am not familiar with the necessary steps and runes to do so.
My failing platformio.ini file:
[platformio]
src_dir = main
[env:esp32dev]
;platform = espressif32
platform = https://github.com/platformio/platform-espressif32.git
platform_packages = framework-espidf @ https://github.com/espressif/esp-idf#v4.3.1
board = esp32dev
board_build.partitions = partitions.csv
framework = espidf
monitor_speed = 115200
I was hoping that this would pull esp-idf 4.3.1 and compile it. But I end up with an early build error since the framework-espidf directory is not fully populated:
$ pio run
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git; board: esp32dev; framework: espidf)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.2+sha.1e0f147) > 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-espidf 1.1.0+sha.2e74914
- tool-cmake 3.16.4
- tool-esptoolpy 1.30100.210531 (3.1.0)
- tool-ninja 1.7.1
- toolchain-esp32ulp 1.22851.191205 (2.28.51)
- toolchain-xtensa32 2.80400.210211 (8.4.0)
Reading CMake configuration...
-- Configuring incomplete, errors occurred!
See also "/home/ov/work/CO2Ampel/sensor-devices/esp32/espidf_co2/bleprph_wifi_coex/.pio/build/esp32dev/CMakeFiles/CMakeOutput.log".
CMake Error at CMakeLists.txt:5 (include):
include could not find load file:
/home/ov/.platformio/packages/framework-espidf/tools/cmake/project.cmake
Do I need to override anything else? Or is it not that trivial to achieve this?