Closed
Description
Recently I got my hands on prototype board that uses ESP32S3 chip. It requires entering flash mode pressing buttons.
I can't manage to flash it using espflash
~/projects/hub ❯ espflash flash -p /dev/tty.usbserial-110 -b 115200 target/xtensa-esp32s3-espidf/release/hub х INT 18:47:11
[2022-12-17T02:47:35Z INFO ] Serial port: '/dev/tty.usbserial-110'
[2022-12-17T02:47:35Z INFO ] Connecting...
[2022-12-17T02:47:36Z INFO ] Unable to connect, retrying with extra delay...
[2022-12-17T02:47:37Z INFO ] Unable to connect, retrying with default delay...
[2022-12-17T02:47:38Z INFO ] Unable to connect, retrying with extra delay...
[2022-12-17T02:47:39Z INFO ] Unable to connect, retrying with default delay...
[2022-12-17T02:47:39Z INFO ] Unable to connect, retrying with extra delay...
[2022-12-17T02:47:40Z INFO ] Unable to connect, retrying with default delay...
[2022-12-17T02:47:41Z INFO ] Unable to connect, retrying with extra delay...
Error: espflash::connection_failed
× Error while connecting to device
╰─▶ Failed to connect to the device
help: Ensure that the device is connected and the reset and boot pins are not being held down
Tho it works perfectly fine using idf.py
~/esp/hello_world ❯ idf.py -p /dev/tty.usbserial-110 flash -b 115200 х INT 18:47:46
Executing action: flash
Running ninja in directory /Users/user/esp/hello_world/build
Executing "ninja flash"...
[1/5] cd /Users/user/esp/hello_world/build/esp-idf/esptool_py && /Users/user/.espressif/python_env...o_world/build/partition_table/partition-table.bin /Users/user/esp/hello_world/build/hello_world.bin
hello_world.bin binary size 0x2eaf0 bytes. Smallest app partition is 0x100000 bytes. 0xd1510 bytes (82%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cd /Users/user/esp/hello_world/build/bootloader/esp-idf/esptool_py && /Users/user/.espressif/python_env/idf4.4_py3.10_env/bin/python /Users/user/esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /Users/user/esp/hello_world/build/bootloader/bootloader.bin
Bootloader binary size 0x5180 bytes. 0x2e80 bytes (36%) free.
[2/3] cd /Users/user/esp/esp-idf/components/esptool_py && /Users/user/.espressif/tools/cmake/3.23....user/esp/hello_world/build" -P /Users/user/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
esptool.py esp32s3 -p /dev/tty.usbserial-110 -b 115200 --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.3.2
Serial port /dev/tty.usbserial-110
Connecting....
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:eb:d0:64
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x0003efff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20864 bytes to 13011...
Writing at 0x00000000... (100 %)
Wrote 20864 bytes (13011 compressed) at 0x00000000 in 1.5 seconds (effective 111.9 kbit/s)...
Hash of data verified.
Compressed 191216 bytes to 101048...
Writing at 0x00010000... (14 %)
Writing at 0x0001b615... (28 %)
Writing at 0x00020e4d... (42 %)
Writing at 0x00026d7e... (57 %)
Writing at 0x0002ee12... (71 %)
Writing at 0x000376b2... (85 %)
Writing at 0x0003d5c4... (100 %)
Wrote 191216 bytes (101048 compressed) at 0x00010000 in 9.4 seconds (effective 162.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 378.6 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Done
Has anyone else stumbled on this?
Thanks!
p.s. It works fine when I try to flash dev board
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done