首次用vscode编译helloworld问题
-
- Posts: 8
- Joined: Sat Jul 08, 2023 12:38 pm
首次用vscode编译helloworld问题
你好,我是mac电脑安装了vscode和esp-idf。为什么显示identifier "CONFIG_IDF_TARGET" is undefined和identifier "CONFIG_FREERTOS_HZ" is undefined,是不是哪里没有配置好。
-
- Posts: 8
- Joined: Sat Jul 08, 2023 12:38 pm
Re: 首次用vscode编译helloworld问题
macos 13.2.1
vscode Version: 1.79.2 (Universal)
esp-idf v5.1.0
你好,我是mac电脑安装了vscode和esp-idf。为什么显示identifier "CONFIG_IDF_TARGET" is undefined和identifier "CONFIG_FREERTOS_HZ" is undefined,是不是哪里没有配置好。
[{
"resource": "/Users/lomon/esp/example/hello_world/hello_world/main/hello_world_main.c",
"owner": "C/C++: IntelliSense",
"code": "20",
"severity": 8,
"message": "identifier \"CONFIG_IDF_TARGET\" is undefined",
"source": "C/C++",
"startLineNumber": 25,
"startColumn": 12,
"endLineNumber": 25,
"endColumn": 29
},{
"resource": "/Users/lomon/esp/example/hello_world/hello_world/main/hello_world_main.c",
"owner": "C/C++: IntelliSense",
"code": "20",
"severity": 8,
"message": "identifier \"CONFIG_FREERTOS_HZ\" is undefined",
"source": "C/C++",
"startLineNumber": 46,
"startColumn": 27,
"endLineNumber": 46,
"endColumn": 45
}]
vscode Version: 1.79.2 (Universal)
esp-idf v5.1.0
你好,我是mac电脑安装了vscode和esp-idf。为什么显示identifier "CONFIG_IDF_TARGET" is undefined和identifier "CONFIG_FREERTOS_HZ" is undefined,是不是哪里没有配置好。
[{
"resource": "/Users/lomon/esp/example/hello_world/hello_world/main/hello_world_main.c",
"owner": "C/C++: IntelliSense",
"code": "20",
"severity": 8,
"message": "identifier \"CONFIG_IDF_TARGET\" is undefined",
"source": "C/C++",
"startLineNumber": 25,
"startColumn": 12,
"endLineNumber": 25,
"endColumn": 29
},{
"resource": "/Users/lomon/esp/example/hello_world/hello_world/main/hello_world_main.c",
"owner": "C/C++: IntelliSense",
"code": "20",
"severity": 8,
"message": "identifier \"CONFIG_FREERTOS_HZ\" is undefined",
"source": "C/C++",
"startLineNumber": 46,
"startColumn": 27,
"endLineNumber": 46,
"endColumn": 45
}]
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: 首次用vscode编译helloworld问题
你正常编译一次后,会出现在 build/config/sdkconfig.h 文件里。
Who is online
Users browsing this forum: No registered users and 114 guests