Hello all,

I tried to add support for some Microchip serial EEPROMs to being able to program them with an STLinkV3. I ran into problems with the smaller EEPROMs for e.g. 25LC040 which is only a 4Kbit device.

The total_size in the flashchip structure is an unsigned int so I could only enter 0 as total size.

In this case the flashrom shows the following message to me:
ERROR: Flash chip 25C040 erase function 0 region walking resulted in 0x000200 bytes total, expected 0x000000 bytes. Please report a bug at flashrom@flashrom.org
ERROR: Flash chip 25C040 erase function 0 is not in order. Please report a bug at flashrom@flashrom.org

Is there any recommendations how to overcome on this?
Is supporting smaller EEPROMs considered a feature what could be merged at some point, or the flashrom is going to focus purely on flash memories?

--
Miklos