Hi, Using the ESP-IDF framework in PlatformIO, I’m trying to get binary files to be linked in to objects using the component.mk directive: COMPONENT_EMBED_FILES. But it seems that PlatformIO is ignoring component.mk files in my project hierarchy.
The contents of component.mk is simply: COMPONENT_EMBED_FILES := sound.wav
The main.c files references the binary object as by creating an external reference to it as shown below:
extern const uint8_t sound_wav_start[] asm(“_binary_sound_wav_start”);
extern const uint8_t sound_wav_end[] asm(“_binary_sound_wav_end”);
Has anyone had success including binary files in their project under PlatformIO using the ESP-IDF framework?
Hallo
I am new to this forum, but the troubles with PlatformIO to treat the “component.mk” Files has forced to register me
I build the project with esp-idf @janoist1 refers to:
Building with PlatformIO gives the errors of the previous post
here are the relevant lines i greped out
$ make > make.txt 2>&1
$ grep -C 7 index.html make.txt
CC build/main/http_server.o
CC build/main/wifi_manager.o
CC build/main/main.o
CC build/main/json.o
EMBED build/main/style.css.bin.o
EMBED build/main/jquery.gz.bin.o
EMBED build/main/code.js.bin.o
EMBED build/main/index.html.bin.o
AR build/main/libmain.a
CC build/mbedtls/library/ecp_curves.o
CC build/mbedtls/library/sha512.o
CC build/mbedtls/library/pkcs12.o
CC build/mbedtls/library/ccm.o
CC build/mbedtls/library/pkcs5.o
CC build/mbedtls/library/pk.o
@ivankravets Watever you need to fix the issue with the component.mk File you get it
beacause the espidf-framework in PlatformIO is useless for Projects with embedded Files (like picures, json.js, certs …)