Hello @Fortes83
which ESP-IDF version did you use?
I found for the compilation to succeed ESP-IDF version v4.4.6 (as stated here) needs to be used.
Note: I do not (yet) have a M5Cardputer so I cannot verify whether the resulting firmware image runs ok or not.
Thanks
Felix