Hi,
I am using the dediprog programmer to handle SPI flash on the ESP32.
I have issue erasing the flash with dediprog ( but works fine with FTDI 2232H ).
I am however able to write/program the flash with the dediprog. I am using the SF600Plus.
flashrom -p dediprog -E
flashrom v1.0 on Linux 4.15.0-38-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 GigaDevice flash chip "GD25Q32(B)" (4096 kB, SPI) on dediprog. Erasing and writing flash chip... FAILED at 0x00002000! Expected=0xff, Found=0x00, failed byte count from 0x00002000-0x00002fff: 0x1000 ERASE FAILED! Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x00007fff: 0x5e68 ERASE FAILED! Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0x6a98 ERASE FAILED! Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x003fffff: 0x2d112 ERASE FAILED! Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x003fffff: 0x2d153 ERASE FAILED! 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!
flashrom -p ft2232_spi:type=2232H,port=A -E
flashrom v1.0 on Linux 4.15.0-38-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 GigaDevice flash chip "GD25Q32(B)" (4096 kB, SPI) on ft2232_spi. Erasing and writing flash chip... Erase/write done.
Regards, Stan