Hi Pascal,

 

did you check whether WP# pin (write protection) is passive?

 

Regards,

 

Simon

 

Von: Pascal Boidart <pasboidart@pobox.com>
Gesendet: Freitag, 1. April 2022 23:40
An: flashrom@flashrom.org
Betreff: [flashrom] ERASE FAILED!

 

Hello Flashrom,

 

I’m on latest Linux Mint.

programmer ch341a_spi

chip is a Macronix type MX25L6406E

 

I’m trying to erase a chip with: sudo flashrom --programmer ch341a_spi --erase -c "MX25L6406E/MX25L6408E"

 

And I’m getting a erase failed.

See log.

pascal@pascal-mini:~/Desktop/Flashrom$ sudo flashrom --programmer ch341a_spi --erase -c "MX25L6406E/MX25L6408E"

flashrom v1.2 on Linux 5.4.0-107-generic (x86_64)

flashrom is free software, get the source code at https://flashrom.org

 

Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).

Found Macronix flash chip "MX25L6406E/MX25L6408E" (8192 kB, SPI) on ch341a_spi.

Erasing and writing flash chip... FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x00000fff: 0x1000

ERASE FAILED!

Looking for another erase function.

FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0xfad7

ERASE FAILED!

Looking for another erase function.

FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0xfad7

ERASE FAILED!

Looking for another erase function.

FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x007fffff: 0x6b7ef1

ERASE FAILED!

Looking for another erase function.

FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x007fffff: 0x6b7ef1

ERASE FAILED!

Looking for another erase function.

Looking for another erase function.

Looking for another erase function.

No usable erase functions left.

FAILED!

Your flash chip is in an unknown state.

Please report this on IRC at chat.freenode.net (channel #flashrom) or

mail flashrom@flashrom.org, thanks!

 

Any idea?

Thanks

Pascal