ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
Just installed ESP-IDF v5.1.
Created a new project using the blink example, it compiles but shows red squiggles.
Created a new project using the blink example, it compiles but shows red squiggles.
-
- Posts: 1
- Joined: Tue Jul 04, 2023 11:06 am
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
Same for me here with the HelloWorld example; missing are here:
* CONFIG_IDF_TARGET
* CONFIG_FREERTOS_HZ
The issue seems to exist for quite some time, see here: https://www.reddit.com/r/esp32/comments ... _examples/ (4yr ago)
When trying to #define the missing identifiers (before #include) I get a warning of a redefinition (inside some sdk header files).
I am totally new to the ESP32 (IDF) world, so currently do not really understand what is going on. But it seems the missing values are defined in the sdkconfig(.h) or config.env files.
So, I do not have a solution, but can confirm the behaviour.
I am using the Espressif IDF release v5.1 on VS Code v1.79.2 on Windows 11.
* CONFIG_IDF_TARGET
* CONFIG_FREERTOS_HZ
The issue seems to exist for quite some time, see here: https://www.reddit.com/r/esp32/comments ... _examples/ (4yr ago)
When trying to #define the missing identifiers (before #include) I get a warning of a redefinition (inside some sdk header files).
I am totally new to the ESP32 (IDF) world, so currently do not really understand what is going on. But it seems the missing values are defined in the sdkconfig(.h) or config.env files.
So, I do not have a solution, but can confirm the behaviour.
I am using the Espressif IDF release v5.1 on VS Code v1.79.2 on Windows 11.
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
I have the same issue on idf 5.1 on Apple Silicon.
It still compiles, but feels wrong
It still compiles, but feels wrong
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
Could you please check if you have compile_commands.json location correctly configured? See https://github.com/espressif/vscode-esp ... mmandsjson.
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
I'm using VSCode v1.82 and extension Espressif IDF v1.6.4 on Windows 10.
I have the same problem after installing idf v5.1. Even existing projects using idf v5.0 occur the same problem.
I tried adding "compileCommands": "${workspaceFolder}\\build\\compile_commands.json" to the configurations in the c_cpp_properties.json file, but it doesn't work for me.
I have the same problem after installing idf v5.1. Even existing projects using idf v5.0 occur the same problem.
I tried adding "compileCommands": "${workspaceFolder}\\build\\compile_commands.json" to the configurations in the c_cpp_properties.json file, but it doesn't work for me.
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
I face the same issue and used the solution below and works for me. Please add
"${workspaceFolder}/build/config",
in the c_cpp_properties.json , see below
OR
from https://github.com/espressif/vscode-esp ... URATION.md
last section, please add
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
"${workspaceFolder}/build/config",
in the c_cpp_properties.json , see below
OR
from https://github.com/espressif/vscode-esp ... URATION.md
last section, please add
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
-
- Posts: 1
- Joined: Mon Oct 09, 2023 9:43 pm
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
@kmmaran,
In my case, the problem was solved. Thank you.
In my case, the problem was solved. Thank you.
-
- Posts: 1
- Joined: Thu Oct 26, 2023 2:46 pm
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
@kmmaran, Thank you!
-
- Posts: 1
- Joined: Sun Apr 21, 2024 2:40 pm
Re: ESP-IDF v5.1 - identifier "CONFIG_FREERTOS_HZ" is undefined
Thank you - it was driving me crazy!
-
- Posts: 1
- Joined: Tue May 28, 2024 6:18 pm
Who is online
Users browsing this forum: Baidu [Spider], pepgra and 173 guests