INFO Reading configuration /config/esphome/smart-a4.yaml... WARNING GPIO2 is a Strapping PIN and should be avoided. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins WARNING GPIO15 is a Strapping PIN and should be avoided. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins WARNING GPIO4 is a Strapping PIN and should be avoided. Attaching external pullup/down resistors to strapping pins can cause unexpected failures. See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins INFO Generating C++ source... INFO Compiling app... Processing kc868-a4 (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 3.5.0) -------------------------------------------------------------------------------- Library Manager: Installing Hash INFO Installing Hash Library Manager: Installing ESP8266WiFi INFO Installing ESP8266WiFi HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf Dependency Graph |-- AsyncTCP-esphome @ 1.2.2 |-- WiFi @ 1.0 |-- FS @ 1.0 |-- Update @ 1.0 |-- ESPAsyncWebServer-esphome @ 2.1.0 | |-- AsyncTCP-esphome @ 1.2.2 |-- DNSServer @ 1.1.0 |-- ESPmDNS @ 1.0 RAM: [= ] 12.7% (used 41756 bytes from 327680 bytes) Flash: [===== ] 49.5% (used 908014 bytes from 1835008 bytes) ========================= [SUCCESS] Took 9.83 seconds ========================= INFO Successfully compiled program. esptool.py v3.3.1 Serial port /dev/ttyUSB0 Connecting.......... Chip is ESP32-D0WD-V3 (revision 3) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: 30:c6:f7:58:6e:34 Uploading stub... Running stub... Stub running... Changing baud rate to 460800 Changed. Configuring flash size... Auto-detected Flash size: 4MB Flash will be erased from 0x00010000 to 0x000edfff... Flash will be erased from 0x00001000 to 0x00005fff... Flash will be erased from 0x00008000 to 0x00008fff... Flash will be erased from 0x0000e000 to 0x0000ffff... Compressed 908128 bytes to 519505... Writing at 0x000681f7... (31 %) A fatal error occurred: Serial data stream stopped: Possible serial noise or corruption. INFO Upload with baud rate 460800 failed. Trying again with baud rate 115200. esptool.py v3.3.1 Serial port /dev/ttyUSB0 Connecting....... ERROR Running command failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?) ERROR Please try running esptool.py --before default_reset --after hard_reset --baud 115200 --port /dev/ttyUSB0 --chip esp32 write_flash -z --flash_size detect 0x10000 /data/kc868-a4/.pioenvs/kc868-a4/firmware.bin 0x1000 /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/bin/bootloader_dio_40m.bin 0x8000 /data/kc868-a4/.pioenvs/kc868-a4/partitions.bin 0xe000 /data/cache/platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin locally.