第一步:猫开启虚拟网卡模式,然后下载platformio,新建一个ESP32S3的工程,并编译
第二步:关闭VSCode,按下键盘上的 Win + R 键打开"运行"窗口,输入 regedit 进入注册表编辑器。在注册表编辑器顶部的地址栏中,直接复制并粘贴以下路径后回车
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
在右侧列表中找到名为 LongPathsEnabled 的项。双击它,将"数值数据"从 0 修改为 1,然后点击"确定",开启长路径支持
第三步:蚂蚁图标 ➡ New Terminal ➡ 终端输入更新版本
C:\Users\用户名\.platformio\penv\Scripts\python.exe -m pip install -U https://github.com/pioarduino/platformio-core/archive/refs/heads/develop.zip
查看版本是否为6.2.0更高或者没有post
pio --version
第四步:重启VScode,将ini文件修改为
env:4d_systems_esp32s3_gen4_r8n16
platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip
board = 4d_systems_esp32s3_gen4_r8n16
framework = arduino
如果因为网络安装失败,多安装几下
pio pkg install
第五步:编译,成功了即可