A method of correcting errors of a flash memory comprises steps of
modifying the data of a group of memory units, each having a plurality of
flash memory cells adapted to erasing data therefrom and writing data
therein, checking for the presence or absence of an error of not properly
modifying the data of the group of memory units and determining the
completion of proper modification of the data of the group of memory
units provided that an error is detected and the error can be corrected.