首次用vscode编译helloworld问题

lomon-emerson
Posts: 8
Joined: Sat Jul 08, 2023 12:38 pm

首次用vscode编译helloworld问题

Postby lomon-emerson » Sat Jul 08, 2023 12:41 pm

你好,我是mac电脑安装了vscode和esp-idf。为什么显示identifier "CONFIG_IDF_TARGET" is undefined和identifier "CONFIG_FREERTOS_HZ" is undefined,是不是哪里没有配置好。

lomon-emerson
Posts: 8
Joined: Sat Jul 08, 2023 12:38 pm

Re: 首次用vscode编译helloworld问题

Postby lomon-emerson » Mon Jul 10, 2023 7:35 am

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
}]

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 首次用vscode编译helloworld问题

Postby ESP_Gargamel » Tue Jul 11, 2023 6:31 am

你正常编译一次后,会出现在 build/config/sdkconfig.h 文件里。

Who is online

Users browsing this forum: No registered users and 59 guests