Since esp-idf is not directly endorsed by M5Stack, it may be better to ask on espressif forums or perhaps the esp32 reddit community