I've had M5STACK installed on IDE 2.1 under Windows 10 for quite awhile and started getting some errors regarding missing executables so I decided to uninstall everything and start over. I uninstalled the IDE and deleted the folder Arduino 15 in %AppData% and reinstalled. Starting the IDE it seems to have remembered everything including the M5STACK board that was ast selected. It prompts to install the boards but the install fails. Is there anyway to do a clean install. The error is:
Error: 13 INTERNAL: Cannot install platform: installing platform m5stack:esp32@2.0.6: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index: 253710190 != 253710193
Hi Kurt,
i had a very similar problem and was able to resolve it the following way. Seemingly the newest release of the M5Stack board is broken.
Uninstall the M5Stack board in the boards manager and close the Arduino IDE
Browse to [Your username]/AppData/Local/Arduino15 and delete the entire content of said folder.
Uninstall the Arduino IDE, install the IDE again and launch it.
Confirm the prompt in the background asking for permission to communicate through the firewall
When launching the IDE again it maybe prompts you to install the M5Stack boards. Click on "Manual Install". If this prompt does not show up, open the boards manager and search for M5Stack
Install Version 2.0.5-1.0 (not the latest one!)
Steps 1-5 may be unnecessary but after that, it worked fine again.
Thanks. I did this for IDE 2.1.0 and reinstalled the lastest M5STACK and this worked but I installed IDE 1.8.57 from the MS Store and I cannot install the boards there. I am missing esptool from
C:\Users\Kurt\Documents\ArduinoData\packages\m5stack\hardware\esp32\2.0.6\tools\esptool.exe
There was a link on the downloads page so I assumed it was where the latest version was now.
I had to download the earlier version of then M5STACK boards to get it to work.