On Sunday 12 June 2016 09:04 PM, Алексей Елсаков wrote:
Hello, Flashrom developers!
I'am trying to flash Atmel AT25DF161 EEPROM with ft2232h_spi programmer. My hardware is "FT2232H Breakout board" by DangerousPrototypes - http://dangerousprototypes.com/docs/FT2232_breakout_board IC is soldered to board with wires ~3cm length.
using latest flashrom v0.9.9-r1954 form SVN, IC reads well, but erasing failed - see logs. after erasing fail, IC content looks like this:
with SST 25VF512, Winbond 25X80VSIC, Macronix MX25L8005 this flashrom and programmer works well. what should I do?
Hi Alexey,
Based on the logs that you've sent, your chip had some write protection in place and flashrom successfully disabled it. The erase functions defined in flashrom for your chip is correct as per datasheet (https://www.adestotech.com/wp-content/uploads/doc3687.pdf).
My theory as to why erase failed for your chip is that some 64kB sector(s) must be locked down, meaning that they have become permanently read-only. Attempting to program or erase such a sector is a cause of command failure.
I have attached a patch that can help verify this theory. Please apply the patch locally, build, test and resend the verbose log to the mailing list.
Thanks.
Kind regards, Hatim
/-- best regards, Alexey Elsakov /mailto:alexey@yelsakov.ru
flashrom mailing list flashrom@flashrom.org https://www.flashrom.org/mailman/listinfo/flashrom
Hello, Hatim.
You suggestion was right. 11 sectors of my IC are locked down. :( I tried to use layout excluding those sectors and succeeded :) But to flash whole IC I have to buy a new one...
I thought about locked sectors too, but was confused with changed data in sector 0 yesterday. it is strange, but today data stay untouched.
In any case, we just checked, that flashrom reads and programs AT25DF161 well.
It will be good, if flashrom had ability to check locked down sectors at erase fails or as a command option for example...
You wrote 13 June 2016 14:44:19:
On Sunday 12 June 2016 09:04 PM, Алексей Елсаков wrote:
Hello, Flashrom developers!
I'am trying to flash Atmel AT25DF161 EEPROM with ft2232h_spi programmer. My hardware is "FT2232H Breakout board" by DangerousPrototypes - http://dangerousprototypes.com/docs/FT2232_breakout_board IC is soldered to board with wires ~3cm length.
using latest flashrom v0.9.9-r1954 form SVN, IC reads well, but erasing failed - see logs. after erasing fail, IC content looks like this:
with SST 25VF512, Winbond 25X80VSIC, Macronix MX25L8005 this flashrom and programmer works well. what should I do?
Hi Alexey,
Based on the logs that you've sent, your chip had some write protection in place and flashrom successfully disabled it. The erase functions defined in flashrom for your chip is correct as per datasheet (https://www.adestotech.com/wp-content/uploads/doc3687.pdf).
My theory as to why erase failed for your chip is that some 64kB sector(s) must be locked down, meaning that they have become permanently read-only. Attempting to program or erase such a sector is a cause of command failure.
I have attached a patch that can help verify this theory. Please apply the patch locally, build, test and resend the verbose log to the mailing list.
Thanks.
Kind regards, Hatim
/-- best regards, Alexey Elsakov /mailto:alexey@yelsakov.ru
flashrom mailing list flashrom@flashrom.org https://www.flashrom.org/mailman/listinfo/flashrom
best regards, Alexey Elsakov mailto:alexey@yelsakov.ru