LilyGO / TTGO-T-Beam

336 stars 111 forks source link

TTGO T-beam supreme sketch not working #59

Open YetAnotherModelShip opened 12 months ago

YetAnotherModelShip commented 12 months ago

I have a TTGO T-beam supreme but I cannot get a sketch working. After uploading it always displays: ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x4202639e SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x44c load:0x403c9700,len:0xbe4 load:0x403cc700,len:0x2a68 entry 0x403c98d4

... but not the output of the serial.print() command in my sketch. How can I switch modes or whatever is needed?

yamsboat

starlight-traveler commented 7 months ago

Did you ever manage to figure this out, getting the same error?

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x1 (DOWNLOAD(USB/UART0))
Saved PC:0x40045ab3
waiting for download

As far as I can tell the T-Beam is stuck in receive mode. Take a look at this thread for the same problem in the T-Beam, but no sketch is working.

https://meshtastic.discourse.group/t/t-beam-no-connection/1071/4

Relevant part:

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download

I looked this up and found it was a corrupt boot area leaving it in a receive state. One recommendations was to use a command line tool to re-flash the device.

I used the command line tool esptool.py

I entered the following at the command line:

esptool.py --baud 921600 erase_flash ← erased the flash file esptool.py --baud 921600 write_flash 0x1000 system-info.bin ← wrote out the system bin file esptool.py --baud 921600 write_flash 0x10000 firmware-tbeam-US-0.9.1.bin ← wrote out the file for my meshtastic device