这里写目录标题
介绍
在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