How to use framework esp-idf last version?


I am new to PlatformIO and vs code and have some trouble with project configuration.
In PlateformIO the current version of esp-idf framework is 3.3
But i would like to use the last version of framework esp-idf (i.e currently it’s 4.1)
Is it possible to chose esp-idf version in PlatformIO ? (and of course how ?)
Same for tools (but is it required to use a specific tools version with new version of esp-idf ?)

Many thanks in adavance for your help


Already asked in Support for ESP IDF v4, release is being worked on.


Also yes, you can choose any released version of the platforms or frameworks or compilers as they are released. See docs for platform = …, platform_packages and related release versions for e.g. Releases · platformio/platform-espressif32 · GitHub or Service End for Bintray, JCenter, GoCenter, and ChartCenter | JFrog etc.

Hi Max
Many thanks for yours answers.
I will search more before submit question next time :confused:
I will wait for v4 realease as it comming soon.
Many Thanks

You can try it with the upstream version of dev-platform Espressif 32 — PlatformIO latest documentation

See updated examples:

@valeros also works on a new documentation for ESP-IDF 4.0.

1 Like

Hi Ivan

Sure i will.
Many thanks