Hello @BertM
I get the same error using platform 6.4.0 which supports Arduino 2.0.11.
You can see the used platform / Arduino version in your log:
PLATFORM: Espressif 32 (6.4.0) > M5Stack StampS3
framework-arduinoespressif32 @ 3.20011.230801 (2.0.11)
Try modifying the platform
parameter to:
platform = espressif32@6.9.0 ; 6.9.0 - 2.0.17
This should download platform version 6.9.0 with Arduino version 2.0.17 and with that the error is gone for me.
Thanks
Felix