Micro-control unit fault classification processing method and system

By introducing a fault collection control unit into the microcontroller unit, fault information is obtained in real time and processing methods are selected according to the category, the problem of single fault processing methods of microcontroller units in the prior art is solved, and the fault processing efficiency and stability are improved.

CN119690034APending Publication Date: 2025-03-25XUZHOU XCMG AUTOMOTIVE TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411725767.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The existing technology has a relatively single fault handling method for microcontroller units and cannot effectively deal with different faults. The fault handling efficiency is low and the cost is high, which affects the stability and reliability of the system.

Method used

The fault collection control unit obtains fault information in real time, determines the fault category, and selects appropriate processing methods according to the category, including non-processing, reporting, interrupt processing or reset processing.

Benefits of technology

It improves the efficiency and effect of fault processing, reduces the cost of fault processing, and enhances the stability and reliability of the microcontroller unit during fault processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690034A_ABST
    Figure CN119690034A_ABST
Patent Text Reader

Abstract

The invention discloses a micro-control unit fault classification processing method and system, belongs to the technical field of micro-control unit fault processing, and aims to solve the problems that in the prior art, a fault processing mode is relatively single, different faults cannot be properly processed, the fault processing efficiency is relatively poor, and the fault processing efficiency is relatively high. And the fault processing cost is high. The method comprises the following steps: in response to received fault information, determining a fault type according to the fault information; determining a corresponding processing mode according to the fault category; and executing a corresponding processing mode to realize fault classification processing. The fault type is determined according to the fault information, and effective measures are taken for solving the faults of different types, so that the fault processing efficiency is improved, the fault processing cost is reduced, the stability and reliability of the micro-control unit during fault processing are improved, and the fault processing effect of the micro-control unit is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a micro control unit fault classification processing method and a system thereof, belonging to the technical field of micro control unit fault processing. Background Art

[0002] Micro Control Unit (MCU) is widely used in the automotive field. With the development of automobile electrification, intelligence and electrification, the application of MCU has become more extensive and important, and the performance has been greatly improved. The Fault Collection and Control Unit (FCCU) plays a key role in the MCU, responsible for monitoring and managing hardware faults in the MCU. Various faults are inevitable in the operation of the MCU, especially in the field of automotive electronics and other fields with extremely high safety requirements. If these faults cannot be handled in a timely and effective manner, it will seriously affect the stability and reliability of the system, and then threaten the safety of the driver and passengers.

[0003] The existing technology has a relatively simple method for handling faults of microcontrollers, which is usually to replace the corresponding faulty hardware. It is not able to make appropriate handling for different faults, and the fault handling efficiency is poor and the fault handling cost is high, which affects the fault handling effect of the microcontroller. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a method and system for classifying and processing microcontroller faults, so as to solve the problems that the prior art has a relatively single method for handling microcontroller faults, cannot properly handle different faults, has poor fault handling efficiency, and has a high fault handling cost.

[0005] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions: In a first aspect, the present invention provides a method for classifying and processing a microcontroller unit fault, comprising the following steps: The fault collection control unit obtains fault information in real time and determines the fault category based on the fault information; The fault collection control unit determines the corresponding processing method according to the fault type; The fault collection control unit controls the micro control unit and the system basic chip to execute corresponding processing methods to achieve fault classification processing.

[0006] Furthermore, the fault categories include first-category faults, second-category faults, third-category faults and fourth-category faults: The first type of fault: the function module of the microcontroller unit corresponding to the fault information is not used, and the fault corresponding to the fault information does not affect the normal operation of the microcontroller unit; The second type of fault: the function module of the micro control unit corresponding to the fault information has been used, and the fault corresponding to the fault information does not affect the normal operation of the micro control unit; The third type of fault: the function module of the microcontroller unit corresponding to the fault information has been used, and the fault corresponding to the fault information affects the normal operation of the microcontroller unit, causing the microcontroller unit to fail to work normally. This fault can be recovered by manually reconfiguring the microcontroller unit; The fourth type of fault is that the functional module of the microcontroller unit corresponding to the fault information has been used, and the fault corresponding to the fault information affects the normal operation of the microcontroller unit, causing the microcontroller unit to be unable to work normally. This fault cannot be recovered by manually reconfiguring the microcontroller unit.

[0007] Furthermore, the determining of a corresponding processing method according to the fault type specifically includes: When the fault type is the first type of fault, no processing is performed; When the fault type is the second type of fault, the fault collection control unit controls the micro control unit to perform reporting work; When the fault category is the third type of fault, the fault collection control unit controls the micro control unit to perform interrupt processing; When the fault category is the fourth type of fault, the fault collection control unit controls the system basic chip to reset the micro control unit.

[0008] Furthermore, the reporting work specifically includes: The fault collection control unit controls the micro control unit to record faults and controls the micro control unit to report fault information to the host computer.

[0009] Furthermore, the interrupt processing specifically includes: The fault collection control unit controls the micro control unit to enter an interrupt callback function, and reconfigures the functional modules of the micro control unit corresponding to the fault information.

[0010] Furthermore, the resetting operation specifically includes: The fault collection control unit opens the register in the system storage chip for controlling and monitoring the FCCU[0,1] fault output signal, and controls the microcontroller unit to output the FCCU[0,1] fault output signal to the system basic chip. After the system basic chip detects the FCCU[0,1] fault output signal, it resets the microcontroller unit.

[0011] In a second aspect, the present invention provides a microcontroller unit fault classification processing system, comprising a system basic chip, a microcontroller unit and a host computer, wherein the system basic chip is electrically connected to the microcontroller unit, and the microcontroller unit is electrically connected to the host computer; A fault collection control unit is integrated in the micro control unit, and the fault collection control unit is electrically connected to the system basic chip.

[0012] Furthermore, a serial peripheral interface, an FCCU fault signal output pin, a reset pin, a FSxB pin and a power signal line are connected between the micro control unit and the system basis chip.

[0013] Furthermore, the micro control unit is connected to the host computer via a communication interface.

[0014] In a third aspect, the present invention provides an automobile, comprising the micro control unit fault classification and processing system described in the second aspect.

[0015] Compared with the prior art, the present invention has the following beneficial effects: The microcontroller unit fault classification processing method determines the fault category according to the fault information, and takes effective measures to solve the faults of different categories, thereby improving the fault processing efficiency, reducing the fault processing cost, improving the stability and reliability of the microcontroller unit when processing faults, and ensuring the fault processing effect of the microcontroller unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of a method for classifying and processing microcontroller unit faults provided according to an embodiment of the present invention; Figure 2 is a schematic diagram of classification processing of a micro control unit fault classification processing method provided by an embodiment of the present invention; Figure 3 The invention is a connection diagram of a micro control unit fault classification processing system provided according to an embodiment of the invention. DETAILED DESCRIPTION

[0017] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict.

[0018] The term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " generally indicates that the related objects are in an "or" relationship.

[0019] Embodiment 1:

[0020] like Figure 1-Figure 2 As shown, the present invention provides a method for classifying and processing microcontroller unit faults, comprising the following steps: The fault collection control unit obtains fault information in real time and determines the fault category based on the fault information; The fault collection control unit determines the corresponding processing method according to the fault type; The fault collection control unit controls the micro control unit and the system basic chip to execute corresponding processing methods to achieve fault classification processing.

[0021] In one embodiment, the fault categories include first-category faults, second-category faults, third-category faults, and fourth-category faults: The first type of fault: the function module of the microcontroller unit corresponding to the fault information is not used, and the fault corresponding to the fault information does not affect the normal operation of the microcontroller unit; The second type of fault: the function module of the micro control unit corresponding to the fault information has been used, and the fault corresponding to the fault information does not affect the normal operation of the micro control unit; The third type of fault: the function module of the microcontroller unit corresponding to the fault information has been used, and the fault corresponding to the fault information affects the normal operation of the microcontroller unit, causing the microcontroller unit to fail to work normally. This fault can be recovered by manually reconfiguring the microcontroller unit; The fourth type of fault is that the functional module of the microcontroller unit corresponding to the fault information has been used, and the fault corresponding to the fault information affects the normal operation of the microcontroller unit, causing the microcontroller unit to be unable to work normally. This fault cannot be recovered by manually reconfiguring the microcontroller unit.

[0022] In one embodiment, determining a corresponding processing method according to a fault type specifically includes: When the fault type is the first type of fault, no processing is performed; When the fault type is the second type of fault, the fault collection control unit controls the micro control unit to perform reporting work; When the fault category is the third type of fault, the fault collection control unit controls the micro control unit to perform interrupt processing; When the fault category is the fourth type of fault, the fault collection control unit controls the system basic chip to reset the micro control unit.

[0023] In one embodiment, the reporting work specifically includes: The fault collection control unit controls the micro control unit to record faults and controls the micro control unit to report fault information to the host computer.

[0024] In one embodiment, the interrupt processing specifically includes: The fault collection control unit controls the micro control unit to enter an interrupt callback function, and reconfigures the functional modules of the micro control unit corresponding to the fault information.

[0025] In one embodiment, the resetting operation specifically includes: The fault collection control unit opens the register in the system storage chip for controlling and monitoring the FCCU[0,1] fault output signal, and controls the microcontroller unit to output the FCCU[0,1] fault output signal to the system basic chip. After the system basic chip detects the FCCU[0,1] fault output signal, it resets the microcontroller unit.

[0026] In this embodiment, (1) the functional module is not used in the microcontroller unit, or the functional failure will not affect the normal operation of the microcontroller unit, that is, the first type of failure, such as the failure of the debug signal monitor of the fault channel NCF

[10] . This failure only occurs during debugging and will not affect the working operation. When this failure occurs, it can be left unhandled.

[0027] (2) Faults that have little impact on the MCU or whose impact is not yet certain, that is, the second type of fault; for example, the concentrator transaction monitor mismatch fault of the fault channel NCF

[59] , the relevant fault will be recorded in the XBIC register, and the fault is mainly an end-to-end communication failure, and the chip initialization is not affected; when this fault occurs in the MCU, the fault record can be performed and the fault information can be reported to the host computer through the CAN bus.

[0028] (3) Fault recovery can be easily performed through reconfiguration or other operations, that is, in the case of the third type of fault; for example, the fault collection and control unit configuration loading failure of the fault channel NCF

[74] can be solved by correctly configuring the corresponding functional module and overwriting the fault configuration; the channel fault response mode of the microcontroller unit can be set to the interrupt mode. When this fault occurs, the microcontroller unit is controlled to enter the interrupt callback function and reconfigure the functional module of the microcontroller unit corresponding to the fault information. (4) Seriously affecting the functional safety of the microcontroller unit or the fault cannot be easily recovered by other means, that is, the fourth type of fault, such as the power management control unit fault of the fault channel NCF[2], NCF[3], NCF[4], NCF

[73] . These faults are power-related faults, such as voltage is too high or too low, and voltage abnormalities cannot be correctly identified. The occurrence of these faults may cause the microcontroller unit to operate in a faulty voltage environment, seriously affecting driving safety. For this type of fault, set the fault collection and control unit channel response mode to EOUT output mode, turn on the register for controlling and monitoring the FCCU[0,1] fault output signal in the system storage chip (that is, turn on the IO_2:3 function for the INIT_FSSM register of the system basic chip), and the microcontroller unit controls the fault collection control unit to output the FCCU[0,1] fault output signal to the system basic chip. After the system basic chip detects the FCCU[0,1] fault output signal, it resets the microcontroller unit through the reset pin.

[0029] When performing classification processing, first classify all NCF fault channels according to the above classification standards. After obtaining fault information, the fault information can be matched and classified with the classification standards, and then the fault can be processed according to the corresponding processing method.

[0030] The present invention determines the type of fault according to the fault information, and takes effective measures to solve the faults of different types, thereby improving the fault handling efficiency, reducing the fault handling cost, improving the stability and reliability of the microcontroller unit when handling the fault, and ensuring the fault handling effect of the microcontroller unit.

[0031] Embodiment 2:

[0032] like Figure 3 As shown, the present invention provides a micro control unit fault classification processing system, characterized in that it includes a system basic chip, a micro control unit and a host computer, the micro control unit is used to implement the method described in Example 1, the system basic chip is electrically connected to the micro control unit, and the micro control unit is electrically connected to the host computer; A fault collection control unit is integrated in the micro control unit, and the fault collection control unit is electrically connected to the system basic chip.

[0033] Specifically, the system base chip provides power to the microcontroller unit and performs fault monitoring. The microcontroller unit is connected to the host computer to report faults. The fault collection control unit provides a hardware mechanism to collect fault notifications and respond to them to ultimately put the device in a safe state, without the need for CPU intervention, for fault collection and control. The fault indication is transmitted by the microcontroller core modules to the fault collection control unit, which determines the appropriate action based on the configuration. The fault collection control unit outputs the execution result to the system base chip through the FCCU (fault collection control unit) fault signal output pin based on the fault type. The system base chip, as an external monitoring chip, can force a reset on the microcontroller unit.

[0034] A serial peripheral interface (SPI), FCCU fault signal output pin, reset pin, FSxB pin and power signal line are connected between the microcontroller unit and the system base chip; the microcontroller unit is connected to the host computer through a communication interface, and optionally, the microcontroller unit is connected to the host computer via a CAN bus.

[0035] Specifically, the fault collection and processing unit is electrically connected to the system basic chip through the FCCU fault signal output pin, and the system basic chip is electrically connected to the micro control unit through the serial peripheral interface, reset pin, FSxB pin and power signal line.

[0036] The FSxB pin is a low-active fault-safe output, and the FSxB pin can drive the electrical safety circuit of the microcontroller controller; the FCCU fault signal output pin is used to output the FCCU [0, 1] fault output signal; the system basis chip has a variety of switches and linear regulators, including low-power modes with various wake-up functions; adopts advanced power management solutions to maintain high efficiency over a wide range of input voltage and output current; has a high integrity safety level, which needs to reach Automotive Safety Integration Level D (ASIL D), including configurable fail-safe / fail-silent safety behaviors and functions, and has two fail-safe outputs.

[0037] The microcontroller unit has a high integrity safety level and needs to reach the automotive safety integrity level D. It has multiple on-chip redundancy and safety options, such as a delayed lock-step core, a direct memory access controller, a memory protection unit, a fault collection and control unit, etc.; in this embodiment, MPC5744 is selected, and the fault collection and control unit provides 75 hardware channels, which are non-critical fault (NCF) channels, which are used to collect faults and put the device into a safe state when a fault is detected in the device; the hardware channel fault sources include temperature sensors, power management, memory units, self-test operations, clocks and other hardware and functional fault sources, covering most of the functional modules.

[0038] Specifically, taking the MPC5744 microcontroller unit as an example, the fault collection and control unit provides 75 hardware channels, which are used to collect faults and put the device into a safe state when a fault is detected in the device; the hardware channel fault sources include temperature sensors, power management, memory units, self-test operations, clocks and other hardware and functional fault source detections, covering most of the functional modules; the fault collection and control unit provides configurable fault control with internal actions (interrupts, short resets, long resets or non-maskable interrupts) and external actions, and the faults are reported to the outside through the FCCU fault signal output pin.

[0039] If the MPC5744 signals an internal fault through its FCCU[0,1] (two pins of the fault collection control unit) fault output signals, the surrounding subsystems should no longer use the MPC5744 outputs for safety functions because these signals are no longer reliable; if a fault occurs, the system should be able to remain in the safe state system without the MPC5744 taking any additional measures; depending on the configuration, the system may disable or reset the MPC5744 as a reaction to the fault signal, which is done by the system basis chip.

[0040] The fault collection and control unit can set the response of the fault channel to reset, interrupt, fault output, etc.; the microcontroller unit can classify the fault handling methods according to relevant evaluation conditions; the handling methods can be divided into: no processing, fault recording and reporting to the host computer, entering the interruption for self-processing, and initiating reset; through different configurations of the fault channel, the microcontroller unit can be allowed to handle the fault by itself or hand it over to the external system basic chip to initiate the reset function.

[0041] The present invention provides a microcontroller unit fault classification processing system, which can quickly locate and identify the fault source in the microcontroller unit through the microcontroller unit and the fault collection control unit, and take effective measures to solve different types of faults, thereby improving the fault processing efficiency, reducing the fault processing cost, and improving the stability and reliability of the system.

[0042] Embodiment three:

[0043] The present invention provides an automobile, comprising the micro control unit fault classification processing system described in the first embodiment.

[0044] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0045] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0046] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0047] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0048] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for classifying and processing microcontroller unit faults, characterized in that: The following steps are involved: The fault collection control unit obtains fault information in real time and determines the fault category based on the fault information; The fault collection control unit determines the corresponding processing method according to the fault type; The fault collection control unit controls the micro control unit and the system basic chip to execute corresponding processing methods to achieve fault classification processing.

2. The microcontroller unit fault classification processing method according to claim 1 is characterized in that: The fault categories include first-category faults, second-category faults, third-category faults and fourth-category faults: The first type of fault: the function module of the microcontroller unit corresponding to the fault information is not used, and the fault corresponding to the fault information does not affect the normal operation of the microcontroller unit; The second type of fault: the function module of the micro control unit corresponding to the fault information has been used, and the fault corresponding to the fault information does not affect the normal operation of the micro control unit; The third type of fault: the function module of the microcontroller unit corresponding to the fault information has been used, and the fault corresponding to the fault information affects the normal operation of the microcontroller unit, causing the microcontroller unit to fail to work normally. This fault can be recovered by manually reconfiguring the microcontroller unit; The fourth type of fault is that the functional module of the microcontroller unit corresponding to the fault information has been used, and the fault corresponding to the fault information affects the normal operation of the microcontroller unit, causing the microcontroller unit to be unable to work normally. This fault cannot be recovered by manually reconfiguring the microcontroller unit.

3. The microcontroller unit fault classification processing method according to claim 2 is characterized in that: Determining the corresponding processing method according to the fault type specifically includes: When the fault type is the first type of fault, no processing is performed; When the fault type is the second type of fault, the fault collection control unit controls the micro control unit to perform reporting work; When the fault category is the third type of fault, the fault collection control unit controls the micro control unit to perform interrupt processing; When the fault category is the fourth type of fault, the fault collection control unit controls the system basic chip to reset the micro control unit.

4. The method for classifying and processing microcontroller unit faults according to claim 3, characterized in that: The reporting work specifically includes: The fault collection control unit controls the micro control unit to record faults and controls the micro control unit to report fault information to the host computer.

5. The method for classifying and processing microcontroller unit faults according to claim 3, characterized in that: The interrupt processing specifically includes: The fault collection control unit controls the micro control unit to enter an interrupt callback function, and reconfigures the functional modules of the micro control unit corresponding to the fault information.

6. The method for classifying and processing microcontroller unit faults according to claim 3, characterized in that: The reset operation specifically includes: The fault collection control unit opens the register in the system storage chip for controlling and monitoring the FCCU[0,1] fault output signal, and controls the microcontroller unit to output the FCCU[0,1] fault output signal to the system basic chip. After the system basic chip detects the FCCU[0,1] fault output signal, it resets the microcontroller unit.

7. A microcontroller unit fault classification processing system, characterized in that: It includes a system basic chip, a micro control unit and a host computer, wherein the system basic chip is electrically connected to the micro control unit, and the micro control unit is electrically connected to the host computer; A fault collection control unit is integrated in the micro control unit, and the fault collection control unit is electrically connected to the system basic chip.

8. The microcontroller unit fault classification processing system according to claim 7, characterized in that: A serial peripheral interface, an FCCU fault signal output pin, a reset pin, a FSxB pin and a power signal line are connected between the micro control unit and the system basic chip.

9. The microcontroller unit fault classification processing system according to claim 7, characterized in that: The micro control unit is connected to the host computer via a communication interface.

10. An automobile, characterized in that: A micro control unit fault classification processing system comprising any one of claims 7 to 9.

Citation Information

Cited By

  • Fault processing method and device, electronic equipment and vehicle

    CN120517192A