I created a project using the template esp-arduino-blinker on one of my computers, and have been using it for development, which works well. Recently I started using git to move it to my other two computers for development, but I found that I can no longer use some idf components. By checking the idf version definition macro, I found that my original project idf version is 5.2.x, while the idf version on the new computer is 4.4.7. I tried everything reported deleting the platform and packages downloaded by pio under the Users/ path and then reinstalling, or modifying the ini to force the definition of the version number, it always doesn’t work. My question is, how can I make my project run under idf5.2.x?
The official platform-espressif32 doesn’t even support the Arduino-as-component and ESP-IDF 5.x variant, since it uses the older Arduino-ESP32 2.x core.
The only way I can imagine is that you originally used https://github.com/Jason2866/platform-espressif32 as the forked espressif32 platform. That does use Arduino-ESP32 3.x with the ESP-IDF 5.x to match.
So, did you set platform = https://github.com/Jason2866/platform-espressif32.git
in your platformio.ini
? You should get at least ESP-IDF 5.1.4 then.
PACKAGES:
- framework-arduinoespressif32 @ 3.0.2+sha.5d60d44
- framework-espidf @ 3.50104.0 (5.1.4)
- tool-cmake @ 3.21.3
- tool-esptoolpy @ 4.7.5
- tool-idf @ 1.0.1
- tool-mconf @ 1.4060000.20190628 (406.0.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 3.2.0
- tool-ninja @ 1.9.0
- tool-riscv32-esp-elf-gdb @ 11.2.0+20220823
- tool-xtensa-esp-elf-gdb @ 11.2.0+20230208
- toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
- toolchain-xtensa-esp32 @ 12.2.0+20230208