The invention discloses a RAM detection method based on the March
algorithm, comprising: powering on the MCU, completing
system initialization and external device parameter configuration; entering the
system and judging whether the ROM detection and the RAM detection pass; if not, powering off the MCU ; If yes, configure the Bq76930
chip information and protection parameters, and configure the external device parameter information; read the two Bq76930
chip information, and judge whether it exceeds the set error value; if yes, turn off the MOS tube or blow the FUSE; if not , then clear the watchdog counter and perform other tests; if the test is abnormal, turn off the MOS tube or blow the FUSE; if the test is normal, turn on the MCU output flag to complete the test. The invention adopts the March
algorithm for RAM detection. When performing RAM detection, the detection of RAM can be completed, and the detection efficiency is relatively high. By judging the
failure rate of the Bq76930
chip, the
data integrity rate of the memory detection logic can be guaranteed, and data storage failures can be reduced. .