esp32-S3 + visual studio code 开发环境搭建

一、首先在下面链接网页中下载esp-idf v5.1.1离线安装包 ,并安装到指定位置。dl.espressif.cn/dl/esp-idf/https://dl.espressif.cn/dl/esp-idf/

安装过程中会提示需要长路径支持,所以windows系统需要开启长路径使能

Step 1: 打开运行,并输入regedit

Step 2: 找到路径"计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem"。

Step 3: 在右侧窗口中找到名称为"LongPathsEnabled"的"DWORD (32 位) 值"条目,并双击它。 Step 4: 将数值数据更改为1,然后选择"确定"按钮。

Step 5: ESP-IDF离线安装包中点击 应用修复。

安装完成后,切换到ESP-IDF安装的Python环境路径,例如:C:\Espressif\python_env\idf5.1_py3.11_env\Scripts>

输入 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

搜索Espressif IDF并安装

安装完成后 ,按下 F1 或 Ctrl+Shift+P 打开命令行,输入 esp-idf extension,并点击"配置 ESP-IDF 插件"打开如下界面:

选择Grobal,然后点击ESPRESS

安装出现错误:

"D:\Espressif\tools\idf-python\3.11.2\python.exe -m pip" is not valid. (ERROR_INVALID_PIP)

除安装文件夹下 *:\Espressif\tools 内的 idf-git 和 idf-python 两个文件夹,在vscode内重试一下就好了。

相关推荐
Ven%3 小时前
VsCode如何使用默认程序打开word Excel pdf等文件
ide·vscode·pdf·编辑器
Silence4Allen3 小时前
VSCode 设置源代码根目录
ide·vscode·python·编辑器·pythonpath
张3蜂5 小时前
Jupyter Notebook 全面介绍:从原理到实战部署
ide·python·jupyter
深色風信子5 小时前
Eclipse 插件开发 2
java·ide·eclipse
mosepplin5 小时前
VSCODE 报错Fatal error: can‘t create CMakeFiles/hello_world.elf.dir/C_/Users/...
ide·vscode·编辑器
林枫依依5 小时前
Unity Webgl在编辑器中报错:Cannot connect to destination host
unity·编辑器·webgl
青松@FasterAI6 小时前
【动手学大模型开发】VSCode 连接远程服务器
服务器·ide·vscode
海天一色y8 小时前
Pycharm(十六)面向对象进阶
ide·python·pycharm
斗转星移314 小时前
Ubuntu20.04 中使用vscode中编辑查看PlantUML
linux·vscode·uml·plantuml
聂 可 以15 小时前
调整IntelliJ IDEA当前文件所在目录(包路径)的显示位置
java·ide·intellij-idea