Hello.
I started to use M5Stack a month ago. I tried several simple projects using Arduino IDE. Before moving to ESP-IDF based development, I tried a trivial (hello world) project to test my settings.
Unfortunately, current https://github.com/m5stack/M5Stack-IDF looks outdated and incomplete. So I use https://github.com/m5stack/M5Stack as an IDF component as well as https://github.com/espressif/arduino-esp32 .
The project directory looks like the following.
Makefile
sdkconfig
components/
arduino/ (recursive clone of https://github.com/espressif/arduino-esp32, idf-update branch)
M5Stack/ (clone of https://github.com/m5stack/M5Stack)
component.mk (should be modified. See below)
...
main/
component.mk
main.cpp (copy of components/M5Stack/examples/Basics/Hello/Hello.ino)
The only tweak I did is the addition of src/utlitity
to the end of these path variables in components/M5Stack/component.mk
.
COMPONENT_SRCDIRS := . src src/utility
COMPONENT_ADD_INCLUDEDIRS := . src src/utility
Without this modification, make cannot correctly find the source codes and headers under src/utility
.
The above setup looks OK and works for other projects.
My questions are:
* Is this a correct setup for ESP-IDF projects? (Is there any better one?)
* Is there any way to avoid the modification of components/M5Stack/component.mk
?
Thank you for attention.