The invention belongs to the technical field of MCU (Microprogrammed
Control Unit) fault monitoring and diagnosis, and particularly relates to an MCU hardware error abnormity monitoring and analyzing method, an MCU hardware error abnormity monitoring and analyzing device and
electronic equipment. Comprising the steps that a serial SWD debugging interface is connected with an inner core of a target MCU, a CMSIS-DAP protocol is used for accessing a CoreSight
assembly in the target MCU, and R0-R15 registers and a function register of the target MCU are monitored in real time; according to the method, the value of an error register is read in real time to monitor the
occurrence time of error abnormity, and after the error abnormity occurs, the read-back states and contents of the R0-R15 registers are utilized, and the numerical value of the stack pressing PC is combined, so that the cause of problem occurrence and the instruction position of error generation are determined. The R0-R15 registers and the special function registers of the ARM are monitored in real time, and the running condition of the
chip can be monitored and tracked for a long time without the help of a
debugger and an upper computer
development environment.