Windows Powershell to build, configure, flash etc.

Zeni241
Posts: 86
Joined: Tue Nov 20, 2018 4:28 am

Windows Powershell to build, configure, flash etc.

Postby Zeni241 » Wed Mar 11, 2020 3:25 pm

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.

User avatar
AndreiGramakov
Posts: 5
Joined: Fri Apr 03, 2020 8:03 am
Location: Brno, CZ
Contact:

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

Postby AndreiGramakov » Fri Apr 03, 2020 8:39 am

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
Embedded Sofware Engineer @ Espressif Systems

Who is online

Users browsing this forum: No registered users and 366 guests