[flashrom] [PATCH] Convert chips to block erasers: ST

Sean Nelson audiohacked at gmail.com
Tue Jan 19 00:21:16 CET 2010

On 1/18/2010 2:48 PM, Michael Karcher wrote:
> I don't think this is going to work. erase_sector_stm50flw0x0x only
> works on the 4K sectors and not on the 64k blocks inbetween, if I read
> the datasheet correctly. As I already wrote in the first review:
> flashrom is currently unable to represent this architecture (different
> block sizes that have to be delete by different commands), so you better
> leave it off. Another possible, but a bit hacky, version would be to
> check sectorsize in erwase_sector_stm50flw0x0x and call
> erase_block_stm50flw0x0x if sectorsize is 64*1024.
> Regards,
>    Michael Karcher

The datasheet doesn't state either way that it wouldn't work on the 5x 
64k sectors between the 4k blocks, but I'm just going to remove the 
sector erasers and leave the function.

More information about the flashrom mailing list