Follow these steps to setup ESP-IDF and to compile ESP-Hosted-FG using the ESP-IDF configured Windows Powershell Command Line tool.
-
Install and setup ESP-IDF on Windows as documented in the Standard Setup of Toolchain for Windows.
-
Use the ESP-IDF Powershell Command Prompt to execute
setup.ps1
in theesp_hosted_fg/esp/esp_driver
directory. It will setupesp-idf
as a submodule to be used bynetwork_adapter
.⚠️ This command is dangerous. It will revert all your local changes. Stash if need to keep them. -
Setup compiling environment by running
export.ps1
inesp-idf
directory -
In the
network_adapter
directory of this project, input commandidf.py set-target <chip_name>
to set target. -
Use
idf.py build
to recompilenetwork_adapter
and generate new firmware. -
Use
idf.py flash
to flash the firmware. -
Use
idf.py monitor
to monitor the serial out. You can combine these two steps (flash and monitor) by runningidf.py flash monitor
.