[flashrom] Micron N25Q512, or at least its lower quarter

David Madl flashrom.org at abanbytes.eu
Wed Mar 19 12:10:10 CET 2014


Here's a patch on top of flashrom v0.9.7, SVN r1767.


On 19.03.2014 01:50, Stefan Tauner wrote:
> On Wed, 19 Mar 2014 01:00:41 +0100
> David Madl <flashrom.org at abanbytes.eu> wrote:
>
>> Hi,
>>
>> I have a new prototype development board here, with an 512 MBit Flash
>> chip, Micron N25Q512 (precise type is N25Q512A11G40). I managed to
>> create a config [1] that reads fine, but fails to write [2].
>>
>> I understand that flashrom cannot access chips larger than 16 MBytes,
>> but the chip should still be able to work in 3-byte addressing mode for
>> the lower 16 MBytes. This is what I have created in flashchips.c (copy &
>> pasted, then adapted from the part N25Q128, assuming with a bit of good
>> faith and some datasheet comparison that they should behave alike).
>>
>> Has anyone ever successfully written to a small part of a 4-byte flash chip?
>> […]
>> Erasing and writing flash chip... Trying erase function 0...
>> 0x000000-0x000fff:W, 0x001000-0x001fff:E
>> FAILED at 0x00001000! Expected=0xff, Found=0x00, failed byte count from
>> 0x00001000-0x00001fff: 0x1000
>> ERASE FAILED!
>> Reading current flash chip contents...
>> done. Looking for another erase function.
>> Trying erase function 1... 0x000000-0x00ffff:E
>> FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from
>> 0x00000000-0x0000ffff: 0x10000
>> ERASE FAILED!
>> Reading current flash chip contents...
>> done. Looking for another erase function.
>> Trying erase function 2... 0x000000-0xffffff:E
>> FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from
>> 0x00000000-0x00ffffff: 0x1000000
>> ERASE FAILED!
>> Looking for another erase function.
>> No usable erase functions left.
>> FAILED!
>> Uh oh. Erase/write failed. Checking if anything changed.
>> Your flash chip is in an unknown state.
>> Please report this on IRC at chat.freenode.net (channel #flashrom) or
>> mail flashrom at flashrom.org, thanks!
> Hi David,
>
> it is almost 2am here, so I wont write a long reply.
> The log looks to me as if you were not connecting the write protection
> pin correctly. Maybe that's all what's wrong :)
>
> PS: It would probably be worthwhile for you to look at how patch files
> work and how you can create them. That eases the communication of
> changes dramatically.
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: flashrom-r1767-n25q512.patch
Type: text/x-patch
Size: 1546 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20140319/593282e8/attachment.patch>


More information about the flashrom mailing list