Xinyuan-LilyGO / TTGO_TWatch_Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't upload to T-Watch S3 due to running code

MrSniffer opened this issue · comments

I uploaded my code to the T-Watch S3 several times. I compiled a new version to debug, and now it doesn't upload fully. The USB port is running but my previous sketch is rebooting rapidly. PlatformIO starts uploading but then craps out. How can I recover and upload new code?

Uploading .pio\build\twatch\firmware.bin
esptool.py v4.5.1
Serial port COM5
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 48:27:e2:e9:c3:7c
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 0x00104fff...
Compressed 15040 bytes to 10333...
Writing at 0x00000000... (100 %)
Wrote 15040 bytes (10333 compressed) at 0x00000000 in 0.3 seconds (effective 410.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 141...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (141 compressed) at 0x00008000 in 0.1 seconds (effective 381.2 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 520.0 kbit/s)...
Hash of data verified.
Compressed 1000928 bytes to 653043...
Writing at 0x00010000... (2 %)
Writing at 0x0001c3fb... (5 %)
Writing at 0x00027e3f... (7 %)
Writing at 0x0002c3c3... (10 %)
Writing at 0x00031884... (12 %)
Writing at 0x0003bfde... (15 %)
Writing at 0x00044c76... (17 %)
Writing at 0x00049c8e... (20 %)
Writing at 0x0004f16b... (22 %)
Writing at 0x000544ea... (25 %)
Writing at 0x0005960e... (27 %)
Writing at 0x0005ebc1... (30 %)
Writing at 0x000649dc... (32 %)
Writing at 0x00069fe9... (35 %)
Writing at 0x0006f3b9... (37 %)
Writing at 0x0007450b... (40 %)
Writing at 0x00079321... (42 %)
Writing at 0x0007e25c... (45 %)
Writing at 0x0008353d... (47 %)
Writing at 0x00088344... (50 %)
Writing at 0x0008d884... (52 %)
Writing at 0x00093ba5... (55 %)
Writing at 0x00098c49... (57 %)
Writing at 0x0009e07b... (60 %)
Writing at 0x000a3b0e... (62 %)
Writing at 0x000a905c... (65 %)
Writing at 0x000ade54... (67 %)
Writing at 0x000b2f85... (70 %)
Writing at 0x000b7e95... (72 %)
Writing at 0x000bd2ad... (75 %)
Writing at 0x000c27bc... (77 %)
Writing at 0x000c8519... (80 %)
Writing at 0x000cdba6... (82 %)
Writing at 0x000d31bf... (85 %)
Writing at 0x000dc7c9... (87 %)
Writing at 0x000e3621... (90 %)
Writing at 0x000e8f45... (92 %)

A serial exception error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.