FreeRTOS.h no such file or directory

michESP32
Posts: 1
Joined: Sun Nov 29, 2020 10:39 am

FreeRTOS.h no such file or directory

Postby michESP32 » Sun Nov 29, 2020 10:56 am

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.

veelox
Posts: 16
Joined: Tue Nov 03, 2020 4:21 pm

Re: FreeRTOS.h no such file or directory

Postby veelox » Tue Dec 01, 2020 5:06 pm

If you're on ESP IDF, do you have any CMakeLists.txt with idf_component_register(SRCS ".....c" REQUIRES freertos)

Who is online

Users browsing this forum: MicroController, selec1 and 136 guests