The invention discloses a
software and hardware combined nonvolatile memory erasure control method capable of prolonging the service life. The method comprises the steps that first, a
software is configured with and uses the multi-pulse erasure and enables the enhanced reading; then, the
system initiates a request for erasing a nonvolatile memory, the hardware suspends the CPU
clock, and the execution of other instructions is prevented; and after the erasing process is completed, the hardware reads the data of the erasing block by using a more strict standard, judges whether the erasing is successful, and informs the
software of an erasing result flag bit; if the erase is successful, the CPU
clock is turned on, and the subsequent instruction operation is executed continuously; if the erasefails, the software initiates a second erase instruction operation until the correct data is read; if the continuous N times of multi-pulse erase fails, the (N + 1)-th software enables the normal reading, and the data of the erase block is read; if the continuous N times of multi-pulse erase is successful, it is considered that the erase succeeds, otherwise, the erase process fails, wherein N canbe preset. According to the present invention, the service life of the nonvolatile memory can be effectively prolonged.