How do I use idf.py with VSCode + Windows?
Posted: Mon Oct 24, 2022 9:05 pm
I primarily use ESP-IDF on a Windows machine, coding in VSCode. Whenever I run into a problem, everything seems to mention idf.py, but I have never been able to work out how to use it. If I try to run it from a terminal, despite having added the filepath to PATH, added IDF_PATH as a variable etc, I get something like this:
Is it meant to be run on Windows, and if so, how?
Code: Select all
PS F:\Users\Isaac\Documents\ESP-IDF\onoff_server> idf.py fullclean
idf.py : The term 'idf.py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ idf.py fullclean
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (idf.py:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException