0
点赞
收藏
分享

微信扫一扫

Windows 上通过 Gitee 搭建 ESP-Who Master 版本的编译环境

猎书客er 2022-03-12 阅读 55

需要安装的软件:

1 首先安装 esp-idf SDK 的编译环境

  • 先使用在线(或离线)版本的“ESP-IDF 工具安装器” 安装 esp-idf release/v4.4 及以上版本的编译环境,可参见“ESP-IDF 工具安装器”说明。如果使用在线版本的“ESP-IDF 工具安装器” ,且网络环境不支持从 Github 上获取仓库,请在安装过程中勾选如下选项:
    在这里插入图片描述
  • 使用 “ESP-IDF 工具安装器” 安装 esp-idf SDK 编译环境完成后,请使用 ESP-IDF CMD 终端打开编译环境,如下:
    在这里插入图片描述
  • 正常可编译的 esp-idf 界面如下:
    在这里插入图片描述

2 准备通过 Gitee 克隆 esp-who SDK

  • 打开 “ Git Bash ”,进入 “ E ” 盘,创建一个空的文件夹

    cd E:
    
    mkdir esp-who-master
    
    cd esp-who-master
    
  • 进入到 “ esp-who-master ” 目录下, 通过 Gitee 克隆 esp-who

    git clone https://gitee.com/EspressifSystems/esp-who.git
    
  • 同时在 “ esp-who-master ” 目录下克隆 esp-gitee-tools

    git clone https://gitee.com/EspressifSystems/esp-gitee-tools.git
    
  • 然后进入到 esp-gitee-tools 目录下,执行如下命令:

    cd esp-gitee-tools
    
    pwd
    
    export EGT_PATH=$(pwd)
    
  • 进入到 “ esp-who-master/esp-who` ” 目录下开始克隆 esp-who 的子仓库

    cd ..
    
    cd esp-who
    
    $EGT_PATH/submodule-update.sh
    
    git pull
    

3 开始编译 esp-who SDK 下的例程

  • 打开安装好的 “ ESP-IDF 4.4 CMD ” 的编译窗口
    在这里插入图片描述

  • “ ESP-IDF 4.4 CMD ” 的编译窗口下,进入到 “ esp-who-master/esp-who ” 目录下

    cd  esp-who-master\esp-who
    
  • 然后开始测试 “ esp-who-master/esp-who ” SDK 下的例程,例如:

    cd examples\human_face_detection\lcd
    
    idf.py set-target esp32s3      (切换芯片环境,可选)
    
    idf.py menuconfig        (若不需要进行任何配置的设置,可不需要执行此命令)
    
    idf.py build
    
    idf.py -p COM31  flash monitor	
    
举报

相关推荐

0 条评论