ESP32 搭建 ESP-WHO 的编译环境

esp-who 说明参见 这里。

esp-who 只支持 两个版本的 IDF:v3.3.1v4.0.0

  • 安装工具链,执行如下命令:

    sudo apt-get install git wget libncurses-dev flex bison gperf python python-click python-pip python-setuptools python-serial python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache libffi-dev libssl-dev
    
  • 克隆 esp-who 仓库

    git clone --recursive https://github.com/espressif/esp-who.git 
    
    git submodule update -f --init --recursive
    
    git pull
    
  • 设置 esp-who 下的 esp-idf 环境变量

    export IDF_PATH=~/esp/esp-who-master/esp-who/esp-idf
    
  • 执行 esp-who/esp-idf 的 工具链脚本

    cd ~/esp/esp-who-master/esp-who/esp-idf
    
     ./install.sh
     
    . ./export.sh
    
  • 编译 esp-who/example 下的工程

    cd~/esp/esp-who-v4.0.0/esp-who/examples/single_chip/camera_web_server
    
    
    idf.py build
    
    idf.py flash
    

你可能感兴趣的:(环境搭建,(Environment,Setup))