下载MicroPython稳定版本包
https://github.com/micropython/micropython/releases
在该页面下载你需要的稳定版本资源包
安装 ESP-IDF
安装依赖
sudo yum -y update && sudo yum install git wget flex bison gperf python3 python3-setuptools cmake ninja-build ccache dfu-util libusbx
sudo apt-get install git wget flex bison gperf python3 python3-venv python3-setuptools cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
sudo pacman -S --needed gcc git make flex bison gperf python cmake ninja ccache dfu-util libusb
串口授权配置 ```bash
Generic Linux
sudo usermod -a -G dialout $USER
Arch Linux
sudo usermod -a -G uucp $USER
重启生效
3. 获取 esp-idf
```bash
mkdir -p ~/esp
cd ~/esp
git clone --recursive https://github.com/espressif/esp-idf.git
# Download an archive with submodules included
https://dl.espressif.com/github_assets/espressif/esp-idf/releases/download/v4.3.3/esp-idf-v4.3.3.zip
# 解压并移动到 ~/esp/ 目录下
unzip esp-idf-v4.3.3.zip
mv esp-idf-v4.3.3 ~/esp/
切换目录
cd ~/esp/esp-idf-v4.3.3
安装esp32相关
./install.sh esp32
安装全部
./insyall.sh all
也可以使用 install.fish 替换 install.sh
安装过程较慢,因为安装过程需要下载多个资源包,最好是成功安装完后备份这些资源包,这样切换电脑开发配置环境就方便快捷点
5. 配置环境别名
```bash
# 可在 .profile|.bashrc|.zprofile 文件添加下面一行
alias get_idf='. $HOME/esp/esp-idf-v4.3.3/export.sh'
# 生效你配置的文件
source ~/.bashrc