(一)资料
1-官方说明文档
https://docs.espressif.com/projects/esp-idf/zh_CN/release-v4.2/esp32/get-started/index.html
2-gitee开源esp-idf代码:
https://gitee.com/EspressifSystems/esp-idf/tree/release%2Fv4.2/
(二)克隆esp-idf
git clone -b release/v4.2 --recursive https://gitee.com/espressif/esp-idf.git
(三)安装依赖
1-
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util
2-官方依赖只是Ubuntu的apt依赖,然而还有一堆python依赖
到上一步克隆的代码目录下,找到 requirements.txt 执行:
python3 -m