1.应用宝安装VMware,并激活
2.下载ubuntu 18
https://mirrors.aliyun.com/ubuntu-releases/bionic/ubuntu-18.04.6-desktop-amd64.iso
3.安装并ubuntu18
4. 安装下面软件包
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
5.1 下载gitee工具
git clone https://gitee.com/EspressifSystems/esp-gitee-tools.git
5.2 下载esp-idf(仅克隆 esp-idf,不包含子模块)
git clone -b v4.3.1 https://gitee.com/EspressifSystems/esp-idf.git
5.3 进入工具目录,执行命令更新子模块
cd esp-gitee-tools
./submodule-update.sh ~/esp/esp-idf (~/esp/esp-idf 替换为你的 esp-idf 实际路径)
6. 设置工具
cd ~/esp/esp-idf
export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets"
./install.sh
7. 设置环境变量
. $HOME/esp/esp-idf/export.sh
8. 更新cryptography
python -m pip install --upgrade pip
pip install cryptography==3.4.8
接下来就可以进入helloworld目录进行编译了。