Software to be installed:
- Git Bash
- Python Environment,ESP8266 Master require Python v3 environment. Please check “add to PATH” while installing
- Open Git Bash,Enter a local disk,create an empty folder, enter the folder you just created
cd D:
mkdir ESP8266
cd ESP8266
- Enter ESP8266 directory and clone ESP8266_RTOS_SDK ,For more recourses: Espressif Systems。
git clone -b v3.4 https://github.com/espressif/ESP8266_RTOS_SDK.git
- Go to the
ESP8266_RTOS_SDK
directory,running the folling command to clone the submodule repository:
cd ESP8266_RTOS_SDK
git submoudule update --int --recursive
git pull
- Configure environment variables for ESP8266_RTOS_SDK
export IDF_PATH=$(pwd)
- Execute the required toolchain
./install.sh
. ./export.sh
- Now you can test the example routines, for example:
cd examples/get-started/hello_world
idf.py build
idf.py -p COM31 flash monitor
- If you need to modify the code of “ESP8266_RTOS_SDK” for further development, you can set up the environment by installing “Visual Studio Code” IDE. Then, open ESP8266_RTOS_SDK for code editing within the “Visual Studio Code” environment:
- Alternatively, in the “Git Bash” terminal, run the command “‘code .’” to open the currently compiled ESP8266_RTOS_SDK directly in “Visual Studio Code”.