Unable to flash ESP32-S3 DevKitC 1 N8R8

mikelisfbay
Posts: 7
Joined: Mon Feb 17, 2020 11:41 pm

Unable to flash ESP32-S3 DevKitC 1 N8R8

Postby mikelisfbay » Mon Apr 04, 2022 12:40 am

Hi,

I need help. I just bought the ESP32 S3 board from Adafruit. I am not able to flash it even if I pressed down the boot button. I keep getting the invalid head of packet (0x1B). If you know the solution, please help me.

Thank you,
Michael
================================ The Screen Shot of the error message ====================

michael@michael-Inspiron-7472:~/Documents/ESP32_IDF44b_projects/examples/esp32_s3_devkitc1/get-started/hello_world$ idf.py -p /dev/ttyUSB0 flash

Executing action: flash
Running ninja in directory /home/michael/Documents/ESP32_IDF44b_projects/examples/esp32_s3_devkitc1/get-started/hello_world/build
Executing "ninja flash"...
[1/5] cd /home/michael/Documents/ESP32_IDF44b_projects/examples/esp32_s3...examples/esp32_s3_devkitc1/get-started/hello_world/build/hello-world.bin
hello-world.bin binary size 0x296f0 bytes. Smallest app partition is 0x100000 bytes. 0xd6910 bytes (84%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cd /home/michael/Documents/ESP32_IDF44b_projects/examples/esp32_s3_devkitc1/get-started/hello_world/build/bootloader/esp-idf/esptool_py && /home/michael/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/michael/esp_v44b/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /home/michael/Documents/ESP32_IDF44b_projects/examples/esp32_s3_devkitc1/get-started/hello_world/build/bootloader/bootloader.bin
Bootloader binary size 0x49d0 bytes. 0x3630 bytes (73%) free.
[2/3] cd /home/michael/esp_v44b/esp-idf/components/esptool_py && /usr/bi...ome/michael/esp_v44b/esp-idf/components/esptool_py/run_serial_tool.cmake
esptool.py esp32s3 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x0 bootloader/bootloader.bin 0x10000 hello-world.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.2-dev
Serial port /dev/ttyUSB0
Connecting......
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e3:5b:44
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00004fff...
Flash will be erased from 0x00010000 to 0x00039fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 18896 bytes to 11765...
Writing at 0x00000000... (100 %)

A fatal error occurred: Invalid head of packet (0x1B)
CMake Error at run_serial_tool.cmake:50 (message):
/home/michael/.espressif/python_env/idf4.4_py3.8_env/bin/python
/home/michael/esp_v44b/esp-idf/components/esptool_py/esptool/esptool.py
--chip esp32s3 failed


FAILED: CMakeFiles/flash
cd /home/michael/esp_v44b/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/michael/esp_v44b/esp-idf" -D SERIAL_TOOL="/home/michael/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/michael/esp_v44b/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32s3" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="/home/michael/Documents/ESP32_IDF44b_projects/examples/esp32_s3_devkitc1/get-started/hello_world/build" -P /home/michael/esp_v44b/esp-idf/components/esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1

================================================ idf.py -p /tty/USB0 monitor ======================
My helloworld is not flashed into the device. It is still the firmware that came with the device.

michael@michael-Inspiron-7472:~/Documents/ESP32_IDF44b_projects/examples/esp32_s3_devkitc1/get-started/hello_world$ idf.py -p /dev/ttyUSB0 monitor

....


I (478) TinyUSB: TinyUSB Driver installed
I (488) example: USB initialization DONE
SBuild:Mar 27 2021
device reports readiness to read but returned no data (device disconnected or multiple access on port?)
rst:01 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOTc8
load:0x403b6000,len:0x8c8
load:0x403ba000,len:0x2c04
entWaiting for the device to reconnect
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x15c8
load:0x403b6000,len:0x8c8
load:0x403ba000,len:0x2c04
entry 0x403b61c4
I (24) boot: ESP-IDF v4.4-dev-2594-ga20df743f1-dirty 2nd stage bootloader
I (25) boot: compile time 16:57:21
I (25) boot: chip revision: 0
I (28) boot.esp32s3: SPI Speed : 80MHz
I (33) boot.esp32s3: SPI Mode : DIO
I (38) boot.esp32s3: SPI Flash Size : 2MB
I (43) boot: Enabling RNG early entropy source...
W (48) bootloader_random: RNG for ESP32-S3 not currently supported
I (55) boot: Partition Table:
I (59) boot: ## Label Usage Type ST Offset Length
I (66) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (73) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (81) boot: 2 factory factory app 00 00 00010000 00100000
I (88) boot: End of partition table
I (92) esp_image: segment 0: paddr=00010020 vaddr=3c020020 size=090e0h ( 37088) map
I (108) esp_image: segment 1: paddr=00019108 vaddr=3fc90dd0 size=0253ch ( 9532) load
I (111) esp_image: segment 2: paddr=0001b64c vaddr=40374000 size=049cch ( 18892) load
I (122) esp_image: segment 3: paddr=00020020 vaddr=42000020 size=1b660h (112224) map
I (147) esp_image: segment 4: paddr=0003b688 vaddr=403789cc size=08404h ( 33796) load
I (154) esp_image: segment 5: paddr=00043a94 vaddr=50000000 size=00010h ( 16) load

Who is online

Users browsing this forum: Basalt, Bing [Bot] and 323 guests