摘要 |
PROBLEM TO BE SOLVED: To make surely and speedily detectable a defect in writing due to the interruption of the rewriting process of a flash memory by using a flag showing the history of the rewriting process of a part of the flash memory to judge the normalcy of the writing process. SOLUTION: When the program for rewriting is written to the flash memory, a flag area is provided at a part of the flash memory, it is judged whether stages of the rewriting processes are terminated or not, or are normal or not, and the results of the end decision or quality judgement of the respective stage are sequentially updated and recorded in the flag area. For example, a microcomputer 1 comprises a CPU 2, a rewriting program area 3, a flash area 4, a rewriting means 5 for rewriting the flash area 4, a RAM 6, and a communication means 7. Then, blocks as one erasable unit are provided in the flash area 4 and each block is composed of a flag area for storing the history of the rewriting process and a data area for storing a program, data, a table, etc. |