sipeed教程:SenseCraft 模型助手部署 | Seeed Studio Wiki
一、安装ESP-IDF
鉴于我的电脑之前安装过esp-idf v4.3版本,而ESP32-S3需要v4.4及以上版本才支持,所以将esp-idf更新到最新5.1版本。
新安装参照:ESP-IDF Windows 开发环境搭建_esp-idf-tools_火柴棍mcu的博客-CSDN博客
乐鑫开源 / esp-idf gitee仓库: https://gitee.com/EspressifSystems/esp-idf?_from=gitee_search
1、启动ESP-IDF 4.3 PowerShell应用
2、更新esp-idf
git checkout master
git pull
git submodule update --init --recursive
如遇:unable to access 'https://github.com/espressif/esp-idf.git/': Recv failure: Connection was reset
解决方法:unable to access ‘https://github.com/.../...git‘: Recv failure: Connection was reset-CSDN博客
二、获取edgelab-example-esp32代码
esp-idf目录下创建projects目录
mkdir projects
cd projects
git clone https://github.com/Seeed-Studio/edgelab-example-esp32
cd edgelab-example-esp32
git submodule init
git submodule update
三、编译例程
1、进如例程目录,查看例程:
cd examples
ls
有以下几个例程:
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2023/12/3 11:37 at_server_demo
d----- 2023/12/3 11:37 data_models_demo
d----- 2023/12/3 11:37 data_storage_demo
d----- 2023/12/3 11:37 fomo_detection_demo
d----- 2023/12/3 11:37 mobilenetv2_classification_demo
d----- 2023/12/3 11:37 network_demo
d----- 2023/12/3 11:37 pfld_meter_demo
d----- 2023/12/3 11:37 serial_echo_demo
d----- 2023/12/3 11:37 task_executor_demo
d----- 2023/12/3 11:37 yolo_detection_demo
其中data_models_demo、fomo_detection_demo、mobilenetv2_classification_demo、yolo_detection_demo几个是机器学习相关的。
2、编译data_models_demo
cd data_models_demo
idf.py set-target esp32s3
idf.py build