Page 1 of 1

Windows Powershell to build, configure, flash etc.

Posted: Wed Mar 11, 2020 3:25 pm
by Zeni241
Currently I am using ESP-IDF command prompt to build, configure, flash etc. How can I use windows Powershell to run commands like idf.py menuconfig etc.?

I am using idf version 4.0 with CMake.

Re: Windows Powershell to build, configure, flash etc.

Posted: Fri Apr 03, 2020 8:39 am
by AndreiGramakov
Hi!
While you are using 4.0 which has no pwsh support (I recommend to update, really) probably the simplest solution would be make it in the Inception style. in PowerShell go to your IDF directory and run

only once

Code: Select all

cmd /c install.bat
and then

Code: Select all

cmd /c "export.bat && powershell"
if you have IDF_PATH in your environment

you can write from any directory

Code: Select all

cmd /c "$env:IDF_PATH\export.bat && PowerShell"
and right after start to use idf.py

See more here:
https://docs.espressif.com/projects/esp ... x.html#id4
and here:
https://docs.espressif.com/projects/esp ... x.html#id4