Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SergioArrighi opened this issue Jul 12, 2024 · 1 comment
Open

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

SergioArrighi opened this issue Jul 12, 2024 · 1 comment

Comments

@SergioArrighi
Copy link

SergioArrighi commented Jul 12, 2024

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

@me-no-dev
Copy link
Owner

You should #include "freertos/FreeRTOS.h", though why you are getting this error is unclear to me. Maybe there is another FreeRTOS.h that is messing up compilation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants