Arduino--Arduino IDE上安装ESP32开发环境(两种方法)

介绍

 在Arduino IDE 上安装ESP32开发环境有两种方式:

  • 方式一:IDE添加链接
  • 方式二:下载源码安装

方式一:IDE添加链接安装

点击左上角“文件”–>首选项–>附加开发板管理器网址–>在输入框里面输入网址https://git.oschina.net/dfrobot/FireBeetle-ESP32/raw/master/package_esp32_index.json

在这里插入图片描述点击好,软件就会自己安装了,安装好后重新启动一下Arduino IDE软件。

方式二:下载源码安装

1、克隆arduino-esp32源码或直接下载

在arduino开发环境的安装目录arduino-1.8.4\hardware下建立一个文件夹 espressif,然后将arduino-esp32源码克隆到这个目录下。

Git克隆源码

在文件夹里点右键,选择git bash here(前提是你已经安装了Git)
命令行输入:git clone https://github.com/espressif/arduino-esp32.git

在这里插入图片描述

直接下载源码

 Git下载太慢了可以直接下载。然后解压到这个文件下面也是一样的。

源码地址:https://github.com/espressif/arduino-esp32

点击get.exe安装编译器

等到下载完毕,进入文件夹 arduino-1.8.4\hardware\espressif\arduino-esp32\tool 点击get.exe就可以了

修改一下文件名字–编译的时候不会有警告

arduino-1.8.4\hardware\espressif\esp32

Arduino2.0安装ESP32

文档:https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html

稳定版地址(建议):https://espressif.github.io/arduino-esp32/package_esp32_index.json
开发版地址:https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json

右上角File–》Preferences
如下图,把稳定版地址填到框框里去。点击OK
在这里插入图片描述
在这里插入图片描述

16.48开始下载的
17.00完成安装

Downloading packages
esp32:xtensa-esp32-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:xtensa-esp32s2-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:xtensa-esp-elf-gdb@11.2_20220823
esp32:riscv32-esp-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:riscv32-esp-elf-gdb@11.2_20220823
esp32:openocd-esp32@v0.11.0-esp32-20221026
esp32:esptool_py@4.5.1
esp32:mkspiffs@0.2.3
esp32:mklittlefs@3.0.0-gnu12-dc7f933
esp32:esp32@2.0.9
Installing esp32:xtensa-esp32-elf-gcc@esp-2021r2-patch5-8.4.0
Configuring tool.
esp32:xtensa-esp32-elf-gcc@esp-2021r2-patch5-8.4.0 installed
Installing esp32:xtensa-esp32s2-elf-gcc@esp-2021r2-patch5-8.4.0
Configuring tool.
esp32:xtensa-esp32s2-elf-gcc@esp-2021r2-patch5-8.4.0 installed
Installing esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0
Configuring tool.
esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0 installed
Installing esp32:xtensa-esp-elf-gdb@11.2_20220823
Configuring tool.
esp32:xtensa-esp-elf-gdb@11.2_20220823 installed
Installing esp32:riscv32-esp-elf-gcc@esp-2021r2-patch5-8.4.0
Configuring tool.
esp32:riscv32-esp-elf-gcc@esp-2021r2-patch5-8.4.0 installed
Installing esp32:riscv32-esp-elf-gdb@11.2_20220823
Configuring tool.
esp32:riscv32-esp-elf-gdb@11.2_20220823 installed
Installing esp32:openocd-esp32@v0.11.0-esp32-20221026
Configuring tool.
esp32:openocd-esp32@v0.11.0-esp32-20221026 installed
Installing esp32:esptool_py@4.5.1
Configuring tool.
esp32:esptool_py@4.5.1 installed
Installing esp32:mkspiffs@0.2.3
Configuring tool.
esp32:mkspiffs@0.2.3 installed
Installing esp32:mklittlefs@3.0.0-gnu12-dc7f933
Configuring tool.
esp32:mklittlefs@3.0.0-gnu12-dc7f933 installed
Installing platform esp32:esp32@2.0.9
Configuring platform.
Platform esp32:esp32@2.0.9 installed
  • 32
    点赞
  • 100
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值