Yes, it flashes that way from the user app. And reset is also performed at the end of the flashing.Could you see what happens when you manually run esptool forcing it to use the USB-JTAG-serial dance?
I had to modify that command to the following line in order for it to work:
Code: Select all
esptool.py --chip esp32c3 -p COM37 -b 460800 --before=usb_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 build/bootloader/bootloader.bin 0x10000 build/test.bin 0x8000 build/partition_table/partition-table.bin
- e:\ESP\projects\test>esptool.py --chip esp32c3 -p COM37 -b 460800 --before=usb_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 build/bootloader/bootloader.bin 0x10000 build/test.bin 0x8000 build/partition_table/partition-table.bin
- esptool.py v4.5.1
- Serial port COM37
- Connecting...
- Chip is ESP32-C3 (revision v0.3)
- Features: WiFi, BLE
- Crystal is 40MHz
- MAC: 7c:df:a1:b3:96:74
- 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 0x0003cfff...
- Flash will be erased from 0x00008000 to 0x00008fff...
- Compressed 20192 bytes to 12374...
- Wrote 20192 bytes (12374 compressed) at 0x00000000 in 0.3 seconds (effective 545.7 kbit/s)...
- Hash of data verified.
- Compressed 181040 bytes to 96201...
- Wrote 181040 bytes (96201 compressed) at 0x00010000 in 1.7 seconds (effective 845.3 kbit/s)...
- Hash of data verified.
- Compressed 3072 bytes to 103...
- Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 372.4 kbit/s)...
- Hash of data verified.
- Leaving...
- Hard resetting via RTS pin...
- If you put the board manually into boot mode, then USB-JTAG COM-port disappears and you have to plug / unplug the cable several times before if finally re-appears.
- If flashed from the boot mode using that command, it doesn't reset into user app and stays in the boot mode after flashing (whereas when flashed from the user app, it resets properly).