Code: Select all
python.exe -m esptool --chip auto --port "COM4" --baud 115200 --before default_reset --a
fter hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x8000 partiti
on_table/partition-table.bin 0x10000 ota_data_initial.bin 0xf000 phy_init_data.bin 0x1000 bootlo
ader/bootloader.bin 0x100000 esp-at.bin 0x20000 at_customize.bin 0x24000 customized_partitions/s
erver_cert.bin 0x39000 customized_partitions/mqtt_key.bin 0x26000 customized_partitions/server_k
ey.bin 0x28000 customized_partitions/server_ca.bin 0x2e000 customized_partitions/client_ca.bin 0
x30000 customized_partitions/factory_param.bin 0x21000 customized_partitions/ble_data.bin 0x3B00
0 customized_partitions/mqtt_ca.bin 0x37000 customized_partitions/mqtt_cert.bin 0x2a000 customiz
ed_partitions/client_cert.bin 0x2c000 customized_partitions/client_key.bin
esptool.py v3.0
Serial port COM4
Connecting........_____.....__
Detecting chip type... ESP32
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:0d:8e:0d:8e:14
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 3072 bytes to 129...
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.0 seconds (effective 646.7 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x00010000 in 0.0 seconds (effective 2184.4 kbit/s)...
Hash of data verified.
Compressed 144 bytes to 69...
Wrote 144 bytes (69 compressed) at 0x0000f000 in 0.0 seconds (effective 33.9 kbit/s)...
Hash of data verified.
Compressed 25008 bytes to 14729...
Writing at 0x00001000... (100 %)
A fatal error occurred: Invalid head of packet (0x65)
Code: Select all
python.exe -m esptool --port COM4 erase_flash
esptool.py v3.0
Serial port COM4
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet head
er
Thanks!