How to use ESP-IDF current version from

if I want to use ESP-IDF current version from
GitHub - espressif/esp-idf: Espressif IoT Development Framework. Official development framework for Espressif SoCs. lastest dev. or lastest stable version( 3.1-beta1),
how to config them?

Thank you.

We don’t support beta software.

And how about ESP8266_RTOS_SDK version 2.0.0?

Wish to use .
Thank you


If you really want to use that, on your risk, you can do this way:
Clone (or download) the esp-idf repo then copy the folders: components, make and tools to
C:\Users\[your user]\.platformio\packages\framework-espidf

If something doesn’t work properly after doing this… please don’t complain here…

Thank you for advice.

Result is still not work, maybe some components from new dev don’t match to old framework-espidf.

That’s why @ivankravets recommended to use the official stable release installed by PlatformIO

We plan to add support for staging/upstream version of ESP-IDF soon. It’s team works in this way. We already did that for Arduino ESP8266/ESP32:

1 Like

Is there any update on this? I also need to test out the current git version because of enhanced power-save functionality.

BTW, where do I find the source for the pio framework-espidf repo?

In terms of use-case, I understand that it’s awkward to “support” current git, but I don’t really see that there is much of an option. In general, when there is a problem/bug the first thing I have to do is to get the latest version of the framework from git to see whether it’s fixed. If platformio doesn’t support that, then it’s a real PITA.

any update on this? while actually i use the last not stable platform with “platform = GitHub - platformio/platform-espressif32: Espressif 32: development platform for PlatformIO” on platformio.ini, this not use the packages from the espressif repo, actually, i really dont find where this packages come from.

the packages have some issues right now that was solved on the espressif repo.

Try Redirecting...

Try adding to your environment section something like

platform_packages =
  ; use upstream Git version
  framework-espidf @
1 Like

yeah! that work! sadly it fail to compile because missing some libraries, this is because the last idf framework change the ubication of some files and the compiler doesnt find them. if you got some clue on how to change how or where compiler search for, i will apreciate that.

Lots of component paths are defined here with others also being written throughout the script. You can either modifiy your local <home directy>/.platformio/platforms/espressif32/builder/frameworks/ file or fork the gitrepo and say platform = <your git link here> in the platformio.ini. Or, wait for PIO to integrate if officially.


I wasn’t able to get ESP-IDF 4 working using the above methods. Do you have an ETA on when PlatformIO will support version 4?

PlatformIO does not integrate beta releases of frameworks. And I haven’t seen that Espressif has announced a date when production release of ESP-IDF 4.0 will be ready.

So unless you know more about Espressif’s roadmap, it’s probably not possible to give you an ETA, not even a rough estimate.

1 Like

Espressif have now released V4 (ESP-IDF V4.0 has been released - ESP32 Forum).
I suppose it is early to ask when this will be supported in PlatformIO but do you have an idea when work might start on porting this?


Looks like it shouldn’t be too long! :wink: