How to modify ESP-IDF source code

Hello all,

I have found a bug on esp-idf, and it’s simple to resolve. However, I cannot find the esp-idf source code, only the compiled .o object file. Is it possible to modify esp-idf source code?
Im currently on windows and the lattest version of Platformio

Thanks in advance,

Gabriel Gardin

PlatformIO stores the framework code (which ESP-IDF is one of) in its <user home folder>/.platformio/packages folder, specifically of ESP-IDF for example, C:\Users\<user>\.platformio\packages\framework-espidf.

You can use the platform_packages instruction in the platformio.ini to point at a modified framework version that is e.g. sourced from a Github project of yours. The easiest way to achieve that would be to duplicate C:\Users\<user>\.platformio\packages\framework-espidf, fix the bug in the one source file, upload that folder to Github and reference it per above instruction.