Patent ID: 7328302

Claim:
A device for treating a state, resulting from incomplete writing or erasing of data, of a memory having memory cells organized in a plurality of pages with which there is respectively associated generation information indicating a programming time of the page, comprising: a unit for determining generation information from the generation information of the plurality of pages to obtain determined generation information, wherein the determined generation information indicates a programming time of the plurality of pages which is not the oldest programming time; a page determination unit for determining a page from the plurality of pages which includes an inconsistency to obtain a determined page; a selection unit for selecting a further page from the plurality of pages to obtain a selected page; a marking unit for marking the selected page to obtain a marked page; a providing unit for providing new generation information based on the determined generation information; a reading unit for reading data from the marked page; and a writing unit for writing the data read from the marked page and the new generation information to the determined page.