Xinyuan-LilyGO / T-Display-S3

MIT License
734 stars 174 forks source link

Boot Loop After Flashing Firmware #106

Closed chriscow closed 1 year ago

chriscow commented 1 year ago

I tried flashing the factory firmware from the Lilygo repo

commit 0837f8806c69acbeee3e0014740f6dac3edf708f (HEAD -> main, origin/main, origin/HEAD) Merge: d70a949 ce76621 Author: Micky 513673326@qq.com Date: Thu Feb 16 11:25:31 2023 +0800

Merge branch 'main' of https://github.com/Xinyuan-LilyGO/T-Display-S3)

but my device is now in a boot loop. It looks like it flashes OK (see output below) but nothing works after that and when you look at the output in the serial monitor, it's clearly stuck. I have no idea what to try next. Any ideas?

Thanks for your help!

Flash factory firmware output: T-Display-S3/example/factory/firmware

$ esptool.py --chip esp32s3 --port /dev/cu.usbmodem1451301 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 16MB 0x0 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin

esptool.py v4.5
Serial port /dev/cu.usbmodem1451301
Connecting...
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:22:e4:fc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x001a3fff...
Warning: Image file at 0x0 is protected with a hash checksum, so not changing the flash size setting. Use the --flash_size=keep option instead of --flash_size=16MB in order to remove this warning, or use the --dont-append-digest option for the elf2image command in order to generate an image file without a hash checksum
Compressed 14896 bytes to 10242...
Wrote 14896 bytes (10242 compressed) at 0x00000000 in 0.2 seconds (effective 476.9 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 392.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 564.5 kbit/s)...
Hash of data verified.
Compressed 1653920 bytes to 1224539...
Wrote 1653920 bytes (1224539 compressed) at 0x00010000 in 10.7 seconds (effective 1236.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

After reseting, the device just hangs with this log of a boot loop in Serial Monitor after flashing:

ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403bb22e
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x43c
load:0x403b6000,len:0xbd0
load:0x403ba000,len:0x29c8
entry 0x403b61d8
ESP-ROM:esp32s3-20210327

[ ... repeats ...]

chriscow commented 1 year ago

I have NO idea what happened but it appears to be working now. Closing this issue.