1.依赖插件

2.launch.json配置
{
"version": "0.2.0",
"configurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "Eclipse CDT GDB Adapter"
},
{
"type": "espidf",
"name": "Launch",
"request": "launch"
}
]
}
3.settings.json配置
{
"clangd.path": "C:\\Espressif_5_4\\Espressif\\tools\\esp-clang\\esp-18.1.2_20240912\\esp-clang\\bin\\clangd.exe",
"clangd.arguments": [
"--compile-commands-dir=build", // 指定 compile_commands.json 所在目录
"--header-insertion=never", // 防止自动插入 include
"--background-index", // 开启后台索引,提升跳转能力
"--query-driver=C:/Espressif_5_4/Espressif/tools/**/xtensa-esp32s3-elf-gcc.exe" // 允许使用 ESP 的交叉编译器
],
"clangd.onConfigChanged": "restart",
"clangd.checkUpdates": true,
"clangd.restartAfterCrash": true,
"idf.espIdfPathWin": "C:/Espressif_5_4/Espressif/frameworks/esp-idf-v5.4/",
"idf.pythonInstallPath": "C:\\Espressif_5_4\\Espressif\\tools\\idf-python\\3.11.2\\python.exe",
"idf.espAdfPathWin": "C:\\Espressif_5_4\\esp-adf\\",
"idf.openOcdConfigs": [
"board/esp32s3-builtin.cfg"
],
"idf.portWin": "COM6",
"idf.toolsPathWin": "C:\\Espressif_5_4\\Espressif",
"idf.flashType": "UART",
"idf.customExtraVars": {
"IDF_TARGET": "esp32s3"
},
"files.associations": {
"*.h": "c",
"*.c": "c",
"*.cpp": "cpp"
}
}
747

被折叠的 条评论
为什么被折叠?



