Build error: No such file or directory #include "esp_heap_alloc_caps.h"

tucano
Posts: 2
Joined: Sun Dec 11, 2022 8:23 am

Build error: No such file or directory #include "esp_heap_alloc_caps.h"

Postby tucano » Mon Dec 12, 2022 12:08 pm

I'm following a video examplehttps://www.youtube.com/watch?v=DLqj01asDM0 about inter-task communication using queues that I found on YouTube, but I can't build the project using ESP-IDF in VS Code.

Code: Select all

#include "esp_heap_alloc_caps.h"
and

Code: Select all

#include "freertos/heap_regions.h"
are not being retrieved and I don't know what to change in my JSON config files.

This is my c_cpp_properties.json

Code: Select all

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            ],
            "intelliSenseMode": "windows-msvc-x64",
            "compileCommands": "${workspaceFolder}/build/compile_commands.json"
        },
        {
            "name": "ESP-IDF",
            "compilerPath": "c:\\Users\\arthu\\.espressif\\tools\\xtensa-esp32-elf\\esp-2021r2-patch5-8.4.0\\xtensa-esp32-elf\\bin\\xtensa-esp32-elf-gcc.exe",
            "cStandard": "c11",
            "cppStandard": "c++17",
            "includePath": [
                "${config:idf.espIdfPath}/components/**",
                "${config:idf.espIdfPathWin}/components/**",
                "${config:idf.espAdfPath}/components/**",
                "${config:idf.espAdfPathWin}/components/**",
                "${workspaceFolder}/**"
            ],
            "browse": {
                "path": [
                    "${config:idf.espIdfPath}/components",
                    "${config:idf.espIdfPathWin}/components",
                    "${config:idf.espAdfPath}/components/**",
                    "${config:idf.espAdfPathWin}/components/**",
                    "${workspaceFolder}"
                ],
                "limitSymbolsToIncludedHeaders": false
            },
            "configurationProvider": "ms-vscode.makefile-tools"
        }
    ],
    "version": 4
}

Who is online

Users browsing this forum: No registered users and 95 guests