Hi,
The esp8266 SDK build doesn’t work for me any more, so I try to support it with platformio. It requires building all or a subset of the components that make up the SDK.
How do I enumerate these, and the include directories in there ?
Including 100 lines like
join(FRAMEWORK_DIR, "include"),
join(FRAMEWORK_DIR, “components”, “app_update/include”),
join(FRAMEWORK_DIR, “components”, “bootloader_support/include”),
doesn’t look right. I looked at the platformio-espressif32 but it appears to rely on cmake/the esp-idf to do that. I don’t find much platformio documentation at all (for a platformio user there’s stuff but I don’t find anything related to what I’m asking), is the standard approach “look for existing examples” ?
So thanks to earlier help I was able to get things going a bit but the above is meant to get me further than :
victus: {333} pio run
Processing esp8266-d1mini (platform: esp8266rtos; framework: esp8266rtos; board: d1_mini)
------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/esp8266rtos/d1_mini.html
PLATFORM: Espressif 8266 - RTOS v3.4 (4.2.1) > WeMos D1 R2 and mini
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- esp8266rtos @ 0.1.0
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 1.40802.0 (4.8.2)
FRAMEWORK_DIR /home/danny/.platformio/packages/esp8266rtos
env.GetLibBuilders() []
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio/build/esp8266-d1mini/src/main.o
Compiling .pio/build/esp8266-d1mini/src/startup.o
src/main.c:2:31: fatal error: freertos/FreeRTOS.h: No such file or directory
#include "freertos/FreeRTOS.h"
^
compilation terminated.
*** [.pio/build/esp8266-d1mini/src/main.o] Error 1
src/startup.c:22:23: fatal error: nvs_flash.h: No such file or directory
*******************************************************************
* Looking for nvs_flash.h dependency? Check our library registry!
*
* CLI > platformio lib search "header:nvs_flash.h"
* Web > https://registry.platformio.org/search?q=header:nvs_flash.h
*
*******************************************************************
#include "nvs_flash.h"
^
compilation terminated.
*** [.pio/build/esp8266-d1mini/src/startup.o] Error 1
============================================== [FAILED] Took 0.42 seconds ==============================================
so building the list of includes from a script, and then obviously generating the libraries to avoid the subsequent linker errors.
Thanks !