Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

ESP32-S3 Dev Board compilation error FreeRTOS.h #185

Open
@SergioArrighi

Description

@SergioArrighi

Hello,

I found another issue regarding this exact problem I am experiencing.
#142

I am using platformio 6.7.0 with esp32-s3-devkitc-1 and -std=c++11.

This is the error I am getting

In file included from .pio/libdeps/esp32-s3-devkitc-1/AsyncTCP/src/AsyncTCP.h:29, from src/StompSubscribeClient.h:9, from src/StompSubscribeClient.cpp:1: /Users/sergioarrighi/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/freertos/include/freertos/semphr.h:31:6: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"

The workaround I found is to do exactly what it said.
In AsyncTPC.h I added the include instruction.

#include "IPAddress.h" #include "sdkconfig.h" #include <FreeRTOS.h> #include <functional> extern "C" { #include "freertos/semphr.h" #include "lwip/pbuf.h" }

Let me know if I should open a PR.

Thanks for the terrific job.
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions