Page 1 of 1

FreeRTOS.h no such file or directory

Posted: Sun Nov 29, 2020 10:56 am
by michESP32
Dear, I am a newby of ESP32 board and everything that is related to the programming of such a microcontroller. I have installed ESP-IDF on my Windows machine, and trying to run the blink example code, using vscode as IDE. I also have modified the c_cpp_properties.json file created by vscode in order to change the "inlcudePath" line, so that the IDE can find all libraries contained in the component directory. Well, when I try to run the code I get the following: freertos/FreeRTOS.h: No such file or directory. The c_cpp_properties.json file is the following:

Code: Select all

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                
                "C:/esp/esp-idf/components/**"
                
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "compilerPath": "C:\\esp\\tools\\.espressif\\tools\\xtensa-esp32-elf\\esp-2020r3-8.4.0\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc.exe",
            "cStandard": "gnu17",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "gcc-x86"
        }
    ],
    "version": 4
}
What is happening? Thank you.

Re: FreeRTOS.h no such file or directory

Posted: Tue Dec 01, 2020 5:06 pm
by veelox
If you're on ESP IDF, do you have any CMakeLists.txt with idf_component_register(SRCS ".....c" REQUIRES freertos)