airy10 / esphome-m5stickC

esphome components for the M5StickC
81 stars 75 forks source link

Cannot upload the sample code #2

Closed giuseppegimo closed 4 years ago

giuseppegimo commented 4 years ago

Hi. First of all, thank you!!! :)

I'm trying to upload the sample code on my m5stick but I get this error:

... Serial port COM15 Connecting.... Chip is ESP32-PICO-D4 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, Coding Scheme None MAC: d8:a0:1d:56:bc:80 Uploading stub... Running stub... Stub running... Changing baud rate to 460800 Changed. Configuring flash size...

A fatal error occurred: Timed out waiting for packet header *** [upload] Error 2 ========================= [FAILED] Took 16.00 seconds =========================

On the stick there is a sample code uploaded with che arduino IDE and it's working.

Any suggestion?

Thank you! Giuseppe

giuseppegimo commented 4 years ago

I solved by modifying the "platformio.ini" file changing the upload speed:

;upload_speed = 460800
upload_speed = 115200

Thanks!