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
env_default = 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
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.
Did someone encounter