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?
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
@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 …)