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

Fatal error when trying to include FreeRTOSConfig.h: No such file or directory #1423

Open
PaulChristopher opened this Issue May 21, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@PaulChristopher
Copy link

PaulChristopher commented May 21, 2018

Hardware:

Board: DOIT ESP32 DEVKIT V1
Core Installation/update date: Manual installation with zip file from github on 23/03/2018
IDE name: Arduino IDE 1.8.5.
Flash Frequency: 80Mhz
Upload Speed: 921600

Description:

I want to use the lightweight µGFX library which supports FreeRTOS to build simple GUI applications, see https://ugfx.io/.
Some of the µGFX library files header files such as FreeRTOS.config.h, semphr.de. Compiling the sketch and the library gives a fatal error: "FreeRTOSConfig.h: No such file or directory".

Looking into platform.txt line 25, this path is included: "-I{compiler.sdk.path}/include/freertos". The mentioned directory is empty and has only one subfolder "freertos" with all the necessary file.

I could make the sketch/library get compiled by copying all the files from "{compiler.sdk.path}/include/freertos/freertos" to "{compiler.sdk.path}/include/freertos".

However, the µGFX library isn't outputting anything. So this ticket is starter to figure out what might be the cause for this. Am I using the FreeRTOS system wrong? Or is the µGFX library broken?

Why can't the µGFX library just simply include "FreeRTOSConfig.h"? I read somewhere, that this files get dynamically created? But what about the other includes such as semphr.h?

@lbernstone

This comment has been minimized.

Copy link
Contributor

lbernstone commented May 21, 2018

I don't think you are going to get the performance you want running this through arduino-esp32, which is an abstraction on top of freertos. I would recommend using arduino-esp32 as an esp-idf component if you really want the additional libraries. That said, you should be able to #include <freertos/FreeRTOSConfig.h> to get it included in your sketch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment