ESP32 S3 Box Lite unstable uploading
Posted: Mon Mar 13, 2023 10:14 am
Hi, I bought mentioned box in Official Espressif Ali Store. Programming it using USB-C is really tedious.
I stared with online tool which wasn't working at all with USB C.
Then tried with platformio and esptool. After several attempts with different upload speeds progress reached several % and failed corrupting internal program.
Then I tried external CPxx bridge and it was ok, using 115200 baud I managed to upload some LED blink.
Then I tried again using USB C it faled several times, succeeded 2-3 times and then again only failes with at most partially uploaded code.
I was trying using boot/reset buttons: pressing boot all the time during upload, ejecting USB, presing boot then inserting USB. I have nothing wired to exposed GPIOs
What should I do?
One type of error:
2nd type of error:
Packages:
PACKAGES:
- framework-espidf @ 3.50000.0 (5.0.0)
- tool-cmake @ 3.16.4
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- tool-idf @ 1.0.1
- tool-mconf @ 1.4060000.20190628 (406.0.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- tool-ninja @ 1.9.0
- toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
- toolchain-riscv32-esp @ 11.2.0+2022r1
PLATFORM: Espressif 32 (6.0.1) > Espressif ESP32-S3-Box
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
I stared with online tool which wasn't working at all with USB C.
Then tried with platformio and esptool. After several attempts with different upload speeds progress reached several % and failed corrupting internal program.
Then I tried external CPxx bridge and it was ok, using 115200 baud I managed to upload some LED blink.
Then I tried again using USB C it faled several times, succeeded 2-3 times and then again only failes with at most partially uploaded code.
I was trying using boot/reset buttons: pressing boot all the time during upload, ejecting USB, presing boot then inserting USB. I have nothing wired to exposed GPIOs
What should I do?
One type of error:
Code: Select all
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM12
Uploading .pio\build\esp32s3box\firmware.bin
esptool.py v4.4
Serial port COM12
Connecting...
Chip is ESP32-S3 (revision v0.1)
Flash will be erased from 0x00010000 to 0x00063fff...
Compressed 20816 bytes to 13274...
Writing at 0x00000000... (100 %)
A fatal error occurred: Packet content transfer stopped (received 1 bytes)
*** [upload] Error 2
Code: Select all
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 546.9 kbit/s)...
Hash of data verified.
Compressed 342080 bytes to 190394...
Writing at 0x00010000... (8 %)
Writing at 0x0001c9c5... (16 %)
Writing at 0x00024973... (25 %)
Writing at 0x0002a705... (33 %)
Traceback (most recent call last):
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool.py", line 34, in <module>
esptool._main()
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\__init__.py", line 1026, in _main
main()
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\__init__.py", line 826, in main
operation_func(esp, args)
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\cmds.py", line 556, in write_flash
esp.flash_defl_block(block, seq, timeout=timeout)
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\loader.py", line 109, in inner
return func(*args, **kwargs)
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\loader.py", line 991, in flash_defl_block
self.check_command(
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\loader.py", line 407, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\loader.py", line 376, in command
p = self.read()
File "C:\Users\padamczyk\.platformio\packages\tool-esptoolpy\esptool\loader.py", line 308, in read
return next(self._slip_reader)
StopIteration
*** [upload] Error 1
PACKAGES:
- framework-espidf @ 3.50000.0 (5.0.0)
- tool-cmake @ 3.16.4
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- tool-idf @ 1.0.1
- tool-mconf @ 1.4060000.20190628 (406.0.0)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- tool-ninja @ 1.9.0
- toolchain-esp32ulp @ 1.23500.220830 (2.35.0)
- toolchain-riscv32-esp @ 11.2.0+2022r1
PLATFORM: Espressif 32 (6.0.1) > Espressif ESP32-S3-Box
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash