问题现象:
检测到 #include 错误。请更新 includePath。已为此翻译单元(F:\espressif\prj\Code\station\main\station_example_main.c)禁用波形曲线。
解决方法:
增加头文件包含路径,更改编译器路径
完整:
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
"F:\\espressif\\esp-idf\\components\\**",
"F:\\espressif\\tools\\tools\\xtensa-esp32-elf\\esp-2020r3-8.4.0\\xtensa-esp32-elf\\xtensa-esp32-elf\\include\\",
"F:\\espressif\\tools\tools\\xtensa-esp32s2-elf\\esp-2020r3-8.4.0\\xtensa-esp32s2-elf\\xtensa-esp32s2-elf\\include\\"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
//"compilerPath": "/usr/bin/gcc",
"compilerPath": "F:\\espressif\\tools\\tools\\cmake\\3.16.4\\bin",
"cStandard": "gnu17",
"cppStandard": "gnu++14",
"intelliSenseMode": "linux-gcc-x64"
}
],
"version": 4
}