Arduino配置esp32开发环境

一、Arduino安装
Arduino是免费的,可以直接下载安装。

二、ESP32 开发环境
它们需要从 github 上下载,下载后放在 “AppData” 下的 “Arduino15”下,每个人的路径可能不同,我的是:C:\Users–\AppData\Local\Arduino15\staging\packages

  1. 找到描述文件
    关闭Arduino,我们需要先找到 都需要下载哪些文件。
    https://github.com/espressif/arduino-esp32/releases/tag/3.2.0
    从上面链接可以看到,最新版本是 3.2.0
    我们下载它的 json 描述文件。
    Arduino配置esp32开发环境_第1张图片
  2. 描述文件内容解析
    打开 json 后,先看到的就是
    Arduino配置esp32开发环境_第2张图片
    这个下载链接,我们需要下载 esp32-3.2.0.zip。
    接着往下翻,
    Arduino配置esp32开发环境_第3张图片
    大红框内的 toolsDependencies 包含的 packager 都需要下载,3.2.0 版本需要下载10个包。
    我们先搜索小红框内的 version。
    Arduino配置esp32开发环境_第4张图片
    我们可以找到对应版本的 下载链接,因为我是 win11 64位,所以我需要下载 2号红框内的包。你要找到你自己的平台包下载。
  3. 所有包合照
    Arduino配置esp32开发环境_第5张图片
    最后一个包
    Arduino配置esp32开发环境_第6张图片
    它没有下载链接,应该是 Arduino 自己从官网下载的内容吧
  4. 将这些包放在 C:\Users–\AppData\Local\Arduino15\staging\packages 中(你的路径可能不同),启动 Arduino
  5. 搜索 ESP32
    Arduino配置esp32开发环境_第7张图片
    我的是已经安装过了,只有“移除”选项,正常是 “安装”。点击“安装”即可进入验证包并安装过程。
  6. 自动安装
    Arduino配置esp32开发环境_第8张图片
    因为我们已经下载了包,所以 Arduino 直接开始进行安装。
    安装过程打印如下
Downloading packages
esp32:esp32-arduino-libs@idf-release_v5.4-2f7dcd86-v1
esp32:esp-x32@2411
esp32:[email protected]_20240403
esp32:esp-rv32@2411
esp32:[email protected]_20240403
esp32:[email protected]
esp32:[email protected]
esp32:[email protected]
esp32:[email protected]
arduino:[email protected]
esp32:[email protected]
Installing esp32:esp32-arduino-libs@idf-release_v5.4-2f7dcd86-v1
Configuring tool.
esp32:esp32-arduino-libs@idf-release_v5.4-2f7dcd86-v1 installed
Installing esp32:esp-x32@2411
Configuring tool.
esp32:esp-x32@2411 installed
Installing esp32:[email protected]_20240403
Configuring tool.
esp32:[email protected]_20240403 installed
Installing esp32:esp-rv32@2411
Configuring tool.
esp32:esp-rv32@2411 installed
Installing esp32:[email protected]_20240403
Configuring tool.
esp32:[email protected]_20240403 installed
Installing esp32:[email protected]
Configuring tool.
esp32:[email protected] installed
Installing esp32:[email protected]
Configuring tool.
esp32:[email protected] installed
Installing esp32:[email protected]
Configuring tool.
esp32:[email protected] installed
Installing esp32:[email protected]
Configuring tool.
esp32:[email protected] installed
Installing arduino:[email protected]
Configuring tool.
arduino:[email protected] installed
Installing platform esp32:[email protected]
Configuring platform.
Platform esp32:[email protected] installed

你可能感兴趣的:(单片机,esp32,单片机)