Espressif 8266 RTOS trouble under Eclipse IDE

Hi everybody,

I just started with Platformio for emebbeded developement two week ago.

As I need a real-time OS, I choose FreeRTOS and use it on Arduinos…

Now, I have a project with ESP8266, for which FreeRTOS libs are not available, but we have the Espressif RTOS SDK.

I decided to give it a try with Platformio and the Eclipse CDT I use a lot. Well… this isn’t a success, to say the least.

I took the platformio example “esp8266-rtos-sdk-blink”, generated the project for eclispe with

platformio --ide eclipse -b mini-d1
and edited the platformio.ini to keep a single board to begin with

----- platformio.ini -----
; PlatformIO Project Configuration File
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; Redirecting...
[platformio]
env_default = d1_mini

[env:d1_mini]
platform = espressif8266
board = d1_mini
framework = esp8266-rtos-sdk

I then import the project in my workpace and check it.

I have the targets as usual, the includes full list with all the header files required, the lib and src files as usual.

But the includes are completely failing whatever lib_ldf_mode I set.

In the source (main.c), I have

#include “esp_common.h”
#include “freertos/task.h”
#include “gpio.h”

Those refer to other include files that are not loaded. Looks like the lib finder is not working.
Note that those paths are present in the “include” list of the Eclipse properties for both GNU C and GNU C++.

Since all ESP8266 projects based on the arduino framework are fine, it seems that the ESP8266 RTOS SDK framework is the culprit somehow.

I am lost here …
Did someone encounter the same problems… and hopefully found a solution ?

A hint maybe ?

Thanks in advance for your help.

S.
Did someone encounter

I guess I encountered the same problem, see

but I did not solve it, I have gone back to using the Arduino platform on ESP8266. I assumed it was the ESP libraries but possibly it is the way PlatformIO accesses them.
All the best

Could you try just re-init a project? Navigate to project folder from Terminal and type pio init --ide eclipse.