Xinyuan-LilyGO / LilyGo-T-Relay

MIT License
67 stars 24 forks source link

Infinite boot loop after binary upload #16

Closed N6RDV closed 1 year ago

N6RDV commented 1 year ago

The board was alive upon receival, blinked using running light pattern when powered on via usb dongle I attempted to upload the ESPHome sketch from this site and upload went to 100% but failed to verify the uploaded flash

Now the board is in infinite boot loop. Serial monitor shows infinite stream of

rst:0x10 (RTCWDT_RTC_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
12:30:47.390 -> flash read err, 1000
12:30:47.390 -> ets_main.c 371 
12:30:49.812 -> ets Jun  8 2016 00:22:57

I tried also connecting to the board via https://espressif.github.io/esptool-js/ Most of the times it fails to connect, but from time to time it does So I tried uploading the binary via espressif js tool with the same effect

esptool.js v0.1-dev
Serial port WebSerial VendorID 0x1a86 ProductID 0x55d4
Connecting....
Detecting chip type... ESP32
Chip is ESP32-D0WD (revision 1)
Features: Wi-Fi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ....
Uploading stub...
Running stub...
Stub running...
Changing baudrate to 921600
Changed
Compressed 3084992 bytes to 258749...
Writing at 0x1000... (6%)
Writing at 0x5000... (12%)
Writing at 0x9000... (18%)
Writing at 0xd000... (25%)
Writing at 0x11000... (31%)
Writing at 0x15000... (37%)
Writing at 0x19000... (43%)
Writing at 0x1d000... (50%)
Writing at 0x21000... (56%)
Writing at 0x25000... (62%)
Writing at 0x29000... (68%)
Writing at 0x2d000... (75%)
Writing at 0x31000... (81%)
Writing at 0x35000... (87%)
Writing at 0x39000... (93%)
Writing at 0x3d000... (100%)
Wrote 3084992 bytes (258749 compressed) at 0x1000 in 2.918 seconds.
File  md5: 916dae96966cbb74d0c914e77c70cb76
Flash md5: 4fa117c057552d512f686f7e56fc4fdf
Error: MD5 of file does not match data in flash!

Bad hardware? Should I try another t-relay board, or there's a way to revive this one?

N6RDV commented 1 year ago

Figured out that the problem was in a wrong USB driver used to flash the board via cable.