1 ESP32 S3 Arduino环境配置
1.1 离线包下载
- 已发布2.0.4正式版
- 已发布2.0.3正式版 ESP32 Arduino 2.0.3 based on ESP-IDF 4.4.1
如果在线安装比较慢,可下载打包版安装。使用方法:下载esp32安装包,直接运行,程序会自动解压到相应位置。
-下载地址1 阿里云盘: https://www.aliyundrive.com/s/9nRrSNqCMDD
-下载地址2 社区成员 鱼小黑 提供:https://cloud.codess-nas.top:5213/s/2Ocn
- Arduino中文社区
https://www.arduino.cn/thread-81194-1-1.html
- 近日乐鑫科技官方将arduino-esp32库的esp32-s3-support分支合并到了master分支,Arduino环境下安装esp32-s3支持库的过程变得更加简单。乐鑫科技官方arduino-esp32库地址: github.com/espressif/a…
1.2 S3开发板配置
1.3 编译和调试
- 编译和调试
2 ESP32 S3 VSCode环境配置
2.1 安装Arduino
- 商店安装Arduino
2.2 点击Arduino插件设置,打开编辑setting.json
- 打开编辑setting.json
- 设置Arduino.path,这个很关键
{
"Arduino.path": "C:/Program Files (x86)/Arduino"
"C_Cpp.intelliSenseEngine": "Tag Parser",
"editor.insertSpaces": true,
"files.autoGuessEncoding": true,
"arduino.logLevel": "info",
"explorer.confirmDelete": false,
"editor.detectIndentation": false,
"idf.gitPathWin": "D:/Soft/Espressif/tools/idf-git/2.34.2/cmd/git.exe",
"idf.espIdfPathWin": "D:/Soft/Espressif/frameworks/esp-idf-v4.4/",
"idf.pythonBinPathWin": "D:/Soft/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe",
"idf.toolsPathWin": "D:\\Soft\\Espressif",
"idf.customExtraPaths": "D:\\Soft\\Espressif\\tools\\xtensa-esp32-elf\\esp-2021r2-patch2-8.4.0\\xtensa-esp32-elf\\bin;D:\\Soft\\Espressif\\tools\\xtensa-esp32s2-elf\\esp-2021r2-patch2-8.4.0\\xtensa-esp32s2-elf\\bin;D:\\Soft\\Espressif\\tools\\xtensa-esp32s3-elf\\esp-2021r2-patch2-8.4.0\\xtensa-esp32s3-elf\\bin;D:\\Soft\\Espressif\\tools\\riscv32-esp-elf\\esp-2021r2-patch2-8.4.0\\riscv32-esp-elf\\bin;D:\\Soft\\Espressif\\tools\\esp32ulp-elf\\2.28.51-esp-20191205\\esp32ulp-elf-binutils\\bin;D:\\Soft\\Espressif\\tools\\esp32s2ulp-elf\\2.28.51-esp-20191205\\esp32s2ulp-elf-binutils\\bin;D:\\Soft\\Espressif\\tools\\cmake\\3.20.3\\bin;D:\\Soft\\Espressif\\tools\\openocd-esp32\\v0.11.0-esp32-20211220\\openocd-esp32\\bin;D:\\Soft\\Espressif\\tools\\ninja\\1.10.2;D:\\Soft\\Espressif\\tools\\idf-exe\\1.0.3;D:\\Soft\\Espressif\\tools\\ccache\\4.3\\ccache-4.3-windows-64;D:\\Soft\\Espressif\\tools\\dfu-util\\0.9\\dfu-util-0.9-win64",
"idf.customExtraVars": "{\"OPENOCD_SCRIPTS\":\"D:\\\\Soft\\\\Espressif\\\\tools\\\\openocd-esp32\\\\v0.11.0-esp32-20211220/openocd-esp32/share/openocd/scripts\",\"IDF_CCACHE_ENABLE\":\"1\"}",
"cmake.configureOnOpen": true
}
2.3 找到Arduino.json文件并打开并添加编译文件的输出路径
- 如果不添加则编译会出现warning,提示编译速度巨慢。路径这里按照自己的需求设置即可
2.4 找到开发板
- 选择ESP32 S3开发板(1,2)
2.5 LED编程
- 电路图
2.6 效果编译,上传下载
- 执行编译,上传
3 查看Arduino框架
C:\Users\秦凯新\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3
https://blog.csdn.net/weixin_42880082/article/details/125957546
3.1 串口引脚对应
3.2 引脚MAP
4 库安装
- arduino自带的库,全都放在安装目录的libraries文件夹里,往后自己添加的库,则全部放在项目文件夹位置( 点击:文件_首选项_项目文件夹位置 )。
- 安装方法(它们全部都会放在项目文件夹位置):
- 1.在arduino里点击:项目_加载库_管理库_库管理器,直接搜索下载
- 2.上github或者从网络上获取的压缩包,解压到项目文件夹位置里就行
5 统一环境配置
- 解压
- 修改串口
- 修改库位置