(原) 手动安装esp32的arduino环境

原创文章,请后转载,并注明出处。

众所周知的原因,github.com下载东西,速度得看命。

今天又在新版arduino上安装esp32环境,大致方法如下:

  1. 下载arduino
  2. git整个esp32环境: git clone https://github.com/espressif/arduino-esp32.git
  3. 下载工具包

看资源包:C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\esp32\xx.xx.xx\package中的 package_esp32_index.template.json 文件,它指出我应该下载哪些文件
我的运行环境是:x86_64-mingw32
手动下载zip到C:\Users\xxx\AppData\Local\Arduino15\packages\arduino\hardware\esp32\xx.xx.xx\tools\dist目录中
列如:https://codeload.github.com/espressif/esp32-arduino-libs/zip/91077b905f50a66c4ecfae2fd5070530c932e97f 下载到 dist 目录下为 esp32-arduino-libs-91077b905f50a66c4ecfae2fd5070530c932e97f.zip 文件,下载后将自动解压。
https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-x86_64-w64-mingw32.zip 下载为 xtensa-esp32-elf-12.2.0_20230208-x86_64-w64-mingw32.zip
https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s2-elf-12.2.0_20230208-x86_64-w64-mingw32.zip 下载为 xtensa-esp32s2-elf-12.2.0_20230208-x86_64-w64-mingw32.zip
https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s3-elf-12.2.0_20230208-x86_64-w64-mingw32.zip 下载为 xtensa-esp32s3-elf-12.2.0_20230208-x86_64-w64-mingw32.zip
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/xtensa-esp-elf-gdb-12.1_20221002-x86_64-w64-mingw32.zip
https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/riscv32-esp-elf-12.2.0_20230208-x86_64-w64-mingw32.zip
https://github.com/espressif/binutils-gdb/releases/download/esp-gdb-v12.1_20221002/riscv32-esp-elf-gdb-12.1_20221002-x86_64-w64-mingw32.zip
https://github.com/espressif/openocd-esp32/releases/download/v0.12.0-esp32-20230419/openocd-esp32-win32-0.12.0-esp32-20230419.zip
https://github.com/espressif/arduino-esp32/releases/download/2.0.9/esptool-v4.6-win64.zip
https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.0.0-gnu12/x86_64-w64-mingw32.mklittlefs-c41e51a.200706.zip
还有这个:https://github.com/igrr/mkspiffs/releases/download/0.2.3/mkspiffs-0.2.3-arduino-esp32-win32.zip
也就是把所有x86_64-mingw32环境对应的工具都下载到本地解压。
这里 https://d.serctl.com/手动下载到dist中,再运行get.exe。

相关文章