@hallinen Yes, I saw your comment over on https://github.com/m5stack/M5AtomS3/issues/23
The solution to my identical issue/14 was to burn-back (erase all) to 'Arduino15/staging/packages' and re-install the M5 latest board definition.
Tinyu-Zhao's solution was:
"Perhaps there is a local cache package that is not downloading the latest M5Stack version definition
Please delete the following path, uninstall the M5Stack 2.0.6 definition and try again
/Users//Library/Arduino15/staging/packages"