Unable to compile M5Stack factory Arduino examples

Alternatively, you can make PlatformIO use the proper Arduino-ESP32 2.0.14 directly by using only this platformio.ini

[env:m5stack-stamps3]
platform = espressif32
board = m5stack-stamps3
framework = arduino
lib_deps = 
   m5stack/M5Dial@^1.0.2
   m5stack/M5Unified@^0.1.11
   m5stack/M5GFX@^0.1.11
platform_packages =
   framework-arduinoespressif32@https://github.com/espressif/arduino-esp32/archive/refs/tags/2.0.14.zip

Compilation will succeed for both these configurations.

1 Like