m5stack / M5Core2

M5Core2 Arduino Library
MIT License
263 stars 115 forks source link

Unexpected EOF when uploading firmware.bin #91

Closed RaceTrackr closed 2 years ago

RaceTrackr commented 2 years ago

Cannot get Platform.io to upload to M5Stack Core2 Using "Hello world" sketch Upload works fine via Arduino IDE Cannot get past the unexpected EOF when using platform.io

Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.4% (used 17352 bytes from 4521984 bytes)
Flash: [=         ]   6.7% (used 438907 bytes from 6553600 bytes)
Building .pio/build/m5stack-core2/firmware.bin
esptool.py v3.1
Merged 1 ELF section
Configuring upload protocol...
AVAILABLE: esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Use manually specified: 
/dev/tty.wchusbserial53810043471
Uploading .pio/build/m5stack-core2/firmware.bin
sh: -c: line 0: unexpected EOF while looking for matching `"'
sh: -c: line 1: syntax error: unexpected end of file
*** [upload] Error 2
Tinyu-Zhao commented 2 years ago

I've been using platform.io and have had no problems, can you provide more details?