ESP32 flash verify fails after a while
Posted: Tue Dec 12, 2023 4:55 pm
Hi,
Currently struggling with a strange phenomenon:
Some of the used ESP32-WROOM-32E-N16 modules in a custom device stop flashing properly after they have worked properly multiple times (often 10+) before.
The flashing itself completes fine, but the verify using the MD5 checksum fails (see attachments). Once this happens, any subsequent flashing, even a different binary, fails.
The same binary then works fine with another module.
I normally use an Olimex ARM-USB-OCD-H debugger for flashing (@20Mhz or 3MHz Jtag, no difference), but as a sanity check I've also used serial flashing, as well as flashing a known good binary (ESP RF Test). The result is always that the verify fails.
Afterwards, the ESP still runs after a reset, but the running program is the last program which was flashed properly.
This tells me that the writes to the flash ic stopped working, but reads are still fine. How is this possible?
Currently struggling with a strange phenomenon:
Some of the used ESP32-WROOM-32E-N16 modules in a custom device stop flashing properly after they have worked properly multiple times (often 10+) before.
The flashing itself completes fine, but the verify using the MD5 checksum fails (see attachments). Once this happens, any subsequent flashing, even a different binary, fails.
The same binary then works fine with another module.
I normally use an Olimex ARM-USB-OCD-H debugger for flashing (@20Mhz or 3MHz Jtag, no difference), but as a sanity check I've also used serial flashing, as well as flashing a known good binary (ESP RF Test). The result is always that the verify fails.
Afterwards, the ESP still runs after a reset, but the running program is the last program which was flashed properly.
This tells me that the writes to the flash ic stopped working, but reads are still fine. How is this possible?