使用乐鑫官方资源搭建基于Arduino的ESP32的开发环境
目录
一、配置IDE管理器
二、自动安装板支持包
三、手动安装板支持包
四、网盘的ESP32全系列基本库的板支持包
使用乐鑫官方库搭建Arduino开发环境。
乐鑫官方Github:GitHub - espressif/arduino-esp32: Arduino core for the ESP32Arduino core for the ESP32. Contribute to espressif/arduino-esp32 development by creating an account on GitHub.
![](https://img-blog.csdnimg.cn/img_convert/1971d3b768bf6adbb40b373f412f0aae.png)
https://github.com/espressif/arduino-esp32
一、配置IDE管理器
根据个人习惯,您可以使用VScode,也可以使用Arduino IDE进行开发。
ARDUINO 团队在2022年9月14日发布了正式版的Arduino IDE 2.0。此后又数次更新。Arduino IDE 2的强大功能,已经让我不再想在VScode中配置Arduino了,关于新版的具体功能,大家自己检索或到Arduino官网研究。
新版Arduino IDE 百度网盘下载:
链接:百度网盘 请输入提取码
提取码:hcgv
打开Arduino→文件→首选项
在附加开发板管理器网址中添加以下两个链接中的一个
Stable release link:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Development release link:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
![](https://img-blog.csdnimg.cn/7151439d2d144343b520dfa0a5a85970.png)
在国内连接这个网址稳定些:
https://dl.espressif.com/dl/package_esp32_index.json
二、自动安装板支持包
保存好之后点击 工具 → 开发板 → 打开开发板管理器
![](https://img-blog.csdnimg.cn/dfab162621b942329bc6af8e1ca8fe5a.png)
在弹出的界面搜索框输入ESP32,点击安装。
如果安装中有错误,就手动安装吧。
三、手动安装板支持包
![](https://img-blog.csdnimg.cn/208e426f57d8425688b8ae5bcd4378b0.png)
依次下载上图标号中的文件:
找到"host": "i686-mingw32"下的下载路径
依次使用下载工具下载下面文件:
https://github.com/espressif/arduino-esp32/releases/download/1.0.6/esp32-1.0.6.zip
![](https://img-blog.csdnimg.cn/58cd269d5bb2476486388a948116a28a.png)
https://github.com/espressif/arduino-esp32/releases/download/1.0.5-rc5/xtensa-esp32-elf-win32-1.22.0-97-gc752ad5-5.2.0.zip
![](https://img-blog.csdnimg.cn/4b3a128b2f3546ce890e454188bca8a1.png)
https://github.com/espressif/arduino-esp32/releases/download/1.0.5-rc5/esptool-3.0.0.2-windows.zip
![](https://img-blog.csdnimg.cn/6c279690763645c18947c6ebcaa90e6a.png)
https://github.com/igrr/mkspiffs/releases/download/0.2.3/mkspiffs-0.2.3-arduino-esp32-win32.zip
将下载后的4个文件放到目录“C:\Users\Evan\AppData\Local\Arduino15\staging\packages”(将Evan替换为您的用户名)下:
![](https://img-blog.csdnimg.cn/73511e010f814eb1b783998016e8da44.png)
按下图手动添加库【注意:安装此库以前,须确认文件“package_stmicroelectronics_index.json”在您的目录C:\Users\Evan\AppData\Local\Arduino15”(将Evan替换为您的用户名)中,如果你的IDE中下载错误,请从下文的网盘中自取】。
因库已经准备好了,安装进程非常快,安装成功后的界面如下:
![](https://img-blog.csdnimg.cn/d415617fcaff4fccb5fadf91f27891b4.png)
至此,ESP32的Arduino库安装成功。
四、网盘的ESP32全系列基本库的板支持包
百度网盘下载地址:
链接:https://pan.baidu.com/s/1mkxMkzJgM2QdSLrKPQp3bw
提取码:0u2v
Enjoy^-^
转载请注明出处:使用乐鑫官方资源搭建基于Arduino的ESP32的开发环境_笑春风oO的博客-CSDN博客