基于Windows下离线安装当前最新Arduino ESP32 SDK(2.0.7)固件开发包
Posted perseverance52
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基于Windows下离线安装当前最新Arduino ESP32 SDK(2.0.7)固件开发包相关的知识,希望对你有一定的参考价值。
基于Windows下离线安装当前最新Arduino ESP32 SDK(2.0.7)固件开发包
✨写这篇的文章的初衷,是由于在前几天想通过离线一键安装包方式实现升级安装,结果发现解压后,可以找到开发板,但是无法上传代码,由于原作者在封装安装包的时候,将有效资源放的是其他平台上使用的,导致工程可以编译,但是上传会报错,特此加以补充安装方法。
- 📜在使用
https://arduino.me/packages/esp32.json
离线安装包,编译-上传报错内容:
java.io.IOException: Cannot run program "REMOVE/esptool.exe": CreateProcess error=2, 系统找不到指定的文件。
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:132)
at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:88)
at processing.app.ArduinoHelper.run(ArduinoHelper.java:151)
at processing.app.ArduinoHelper.run(ArduinoHelper.java:101)
at org.mixly.Browser_new.upload(Browser_new.java:2004)
at org.mixly.Browser_new.access41(Browsernew.java:1924)atorg.mixly.Browsernew
54.run(Browser_new.java:1727)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件。
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 11 more
📢以上的离线资源地:
https://arduino.me/a/esp32
。(Arduino IDE安装esp32 SDK(Windows)版本:2.0.7 2023.2.21更新),目前还是不建议搭建去使用;esp8266当前提供的离线安装包(版本:3.1.1)没有问题。
- 📌乐鑫官方提供的安装说明:
https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html
- 📍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
✨这里以开发版本为例.从上面的.json文件信息中提取出必要的安装文件,然后利用HFS工具搭建离线本地服务进行安装。
- 📓具体搭建请相关参考《利用HFS软件一分钟搭建好ESP8266基于Arduino开发环境》
🔖这里只提供离线安装的必要资源文件。
- 📜测试了编译上传OK。
🛠如何获取安装SDK固件包的必要文件以及对应版本信息
📑通过将上面的json文件保存到本地,并打开,找到最前面最新SDK固件版本的位置:
"name": "esp32",
"architecture": "esp32",
"version": "2.0.7",
"category": "ESP32",
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.7/esp32-2.0.7.zip",
"archiveFileName": "esp32-2.0.7.zip",
"checksum": "SHA-256:b5a7a54fca36501d1108413310ec50ae2df655c14c3881325903cde2c7ae5f80",
"size": "278966011",
"help":
"online": ""
,
"boards": [
"name": "ESP32 Dev Board"
,
"name": "ESP32-S2 Dev Board"
,
"name": "ESP32-S3 Dev Board"
,
"name": "ESP32-C3 Dev Board"
],
"toolsDependencies": [
"packager": "esp32",
"name": "xtensa-esp32-elf-gcc",
"version": "esp-2021r2-patch5-8.4.0"
,
"packager": "esp32",
"name": "xtensa-esp32s2-elf-gcc",
"version": "esp-2021r2-patch5-8.4.0"
,
"packager": "esp32",
"name": "xtensa-esp32s3-elf-gcc",
"version": "esp-2021r2-patch5-8.4.0"
,
"packager": "esp32",
"name": "riscv32-esp-elf-gcc",
"version": "esp-2021r2-patch5-8.4.0"
,
"packager": "esp32",
"name": "openocd-esp32",
"version": "v0.11.0-esp32-20221026"
,
"packager": "esp32",
"name": "esptool_py",
"version": "4.5"
,
"packager": "esp32",
"name": "mkspiffs",
"version": "0.2.3"
,
"packager": "esp32",
"name": "mklittlefs",
"version": "3.0.0-gnu12-dc7f933"
]
,
🔰以上是当前安装SDK固件包所需的固件名和版本信息,具体的链接在json内容下面,本次提供的资源就是以上所需的文件资源。
🍁安装必要文件
- ✅当前最新的SDK固件包开发版本:
esp32-2.0.7
- 📌
https://github.com/espressif/arduino-esp32/releases/download/2.0.7/esp32-2.0.7.zip
⛳编译工具链:xtensa-esp32-elf-gcc
-
- xtensa-esp32-elf-gcc
esp-2021r2-patch5-8.4.0 :https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2-patch5/xtensa- esp32-elf-gcc8_4_0-esp-2021r2-patch5-win32.zip
- xtensa-esp32-elf-gcc
-
- xtensa-esp32s2-elf-gcc
esp-2021r2-patch5-8.4.0 :https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2-patch5/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r2-patch5-win32.zip
- xtensa-esp32s2-elf-gcc
-
- xtensa-esp32s3-elf-gcc
esp-2021r2-patch5-8.4.0:https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2-patch5/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r2-patch5-win32.zip
- xtensa-esp32s3-elf-gcc
-
- riscv32-esp-elf-gcc
esp-2021r2-patch5-8.4.0:https://github.com/espressif/crosstool-NG/releases/download/esp-2021r2-patch5/riscv32-esp-elf-gcc8_4_0-esp-2021r2-patch5-win32.zip
- riscv32-esp-elf-gcc
-
- openocd-esp32:
https://github.com/espressif/openocd-esp32/releases/download/v0.11.0-esp32-20221026/openocd-esp32-win32-0.11.0-esp32-20221026.zip
- openocd-esp32:
-
- esptool_py(4.5)
https://github.com/espressif/arduino-esp32/releases/download/2.0.6/esptool-v4.5-win64.zip
- esptool_py(4.5)
-
- mkspiffs(0.2.3) :
https://github.com/igrr/mkspiffs/releases/download/0.2.3/mkspiffs-0.2.3-arduino-esp32-win32.zip
- mkspiffs(0.2.3) :
-
- mklittlefs:
https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.0.0-gnu12/i686-w64-mingw32.mklittlefs-c41e51a.200706.zip
- mklittlefs:
-
- mkfatfs:
https://github.com/lorol/arduino-esp32fatfs-plugin/raw/master/extra/mkfatfs.zip
- mkfatfs:
- 🔧HFS搭建界面
📚资源文件(使用的是百度企业存储空间)
复制这段内容后打开百度网盘手机App,操作更方便哦
链接: https://pan.baidu.com/s/1l88Tospb5TytdC_svbzwUQ
提取码: ab79
以上是关于基于Windows下离线安装当前最新Arduino ESP32 SDK(2.0.7)固件开发包的主要内容,如果未能解决你的问题,请参考以下文章