Set up the compilation environment for ESP8266-RTOS-SDK using Git on Windows

Software to be installed:

  1. Git Bash
  2. 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
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”.

请添加图片描述
请添加图片描述
请添加图片描述


For more guide:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值