Set up ESP-MDF development environment on Windows

This blog is only for users who support access to Github.

Software that needs to be installed in advance

  1. Git Bash
  2. Python environment,To install version of Python3.8 , When you install,Please check the “Add to PATH” box.
  3. Use the “Quick Setup Tool” of the online version to install the compilation environment for the “ESP-IDF master”. Please refer to the description of the “ESP-IDF Tools Installer”.
  • Open " Git Bash ", go to the “E” disk , and create an empty folder

    cd E:
    
    mkdir esp-mdf-master
    
  • Go to the “esp-mdf-master” directory and start cloning esp-mdf

    cd esp-mdf-master
    
    git clone https://github.com/espressif/esp-mdf.git
    
  • Go to the "esp-mdf-master/esp-mdf " directory and start cloning esp-mdf sub-repository

    cd esp-mdf-master/esp-mdf
    
    git submodule update --init --recursive
    
  • Go to the “esp-mdf-master/esp-mdf/esp-idf” directory and start cloning esp-idf sub-repository

    cd esp-mdf-master/esp-mdf/esp-idf
    
    git submodule update --init --recursive
    
  • Open the “ESP-IDF 4.4 CMD” compilation window.

    在这里插入图片描述

  • In the " ESP-IDF 4.4 CMD " compilation environment, go to the " esp-mdf-master/esp-mdf/esp-idf " directory and set environment variables for " esp-idf "

    E:
    
    cd esp-mdf-master\esp-mdf\esp-idf
    
    export IDF_PATH=E:\esp-mdf-master\esp-mdf\esp-idf
    
  • On the " esp-mdf-master/esp-mdf/esp-idf " directory and run the follows command

    install.bat
    
    export.bat
    
  • On the " esp-mdf-master/esp-mdf "directory and set environment variables for " esp-mdf "

    cd ..
    
    set MDF_PATH=E:\esp-mdf-master\esp-mdf
    
  • Then start testing the examples under the " ESP-MDF ", for example:

    cd examples\function_demo\mwifi\router
    
    idf.py menuconfig
    
    idf.py build
    
    idf.py -p COM31  flash monitor	
    
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值