I have just bricked my ESP-WROOM-32

ALKACH
Posts: 2
Joined: Wed Nov 25, 2020 10:25 am

I have just bricked my ESP-WROOM-32

Postby ALKACH » Wed Nov 25, 2020 10:39 am

I tried to flash ESP-AT firmware and during flash startup accidentally pressed twice EN button:

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)
Now the board does not show any sign of life but the serial port still detected. Erasing the chip doesn't seem to work:

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
Is it still possible to recover the board?

Thanks!

dmaxben
Posts: 108
Joined: Thu Nov 16, 2017 6:04 pm

Re: I have just bricked my ESP-WROOM-32

Postby dmaxben » Wed Nov 25, 2020 1:51 pm

Did you try holding the EN/reset button, then do idf.py erase-flash....then when it starts trying to connect, release the EN/reset button?

ALKACH
Posts: 2
Joined: Wed Nov 25, 2020 10:25 am

Re: I have just bricked my ESP-WROOM-32

Postby ALKACH » Wed Nov 25, 2020 4:02 pm

dmaxben wrote:
Wed Nov 25, 2020 1:51 pm
Did you try holding the EN/reset button, then do idf.py erase-flash....then when it starts trying to connect, release the EN/reset button?
Thank you very much. I've already solved the issue. I just pressed the button but holding it was required.

Firmware flashed OK and the board is operational.

Who is online

Users browsing this forum: No registered users and 82 guests