Hardware error detection method, device and system, error collector assembly, chipset and ODM tool

By adding an error collector component to the SOC chipset to receive and store hardware error information, the problem of SOC hardware error diagnosis is solved, and the rapid positioning and cost savings of the MCU/SOC end are achieved.

CN118885345APending Publication Date: 2024-11-01VIA ALLIANCE SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411014932.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing hardware detection methods are not applicable to non-server system-on-chip (SOC) product fields, and hardware error diagnosis cannot be effectively performed.

Method used

An error collector component is added to the chipset of the SOC, and the hardware error information is received and stored in the target storage component. The ODM tool can obtain this information for diagnosis.

Benefits of technology

The diagnosis of SOC hardware errors is realized, which meets the ODM's demand for MCU/SOC hardware error detection and diagnosis, saves hardware costs, and reduces hardware design and software changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885345A_ABST
    Figure CN118885345A_ABST
Patent Text Reader

Abstract

The invention relates to a hardware error detection method, device and system, an error collector assembly, a chipset and an ODM tool, the method is applied to the error collector assembly in the chipset of a system-on-chip (SOC), and the hardware error detection method comprises the following steps: receiving hardware error information indicating that the hardware of the SOC has an error in response to the hardware of the SOC having an error; the hardware error information is stored in a target storage component, and the ODM tool conducts error diagnosis according to the hardware error information stored in the target storage component. As a result, hardware error diagnosis suitable for SOC can be performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of hardware detection technology, and in particular to a hardware error detection method, device and system, an error collector component, a chipset, and an ODM tool. Background Art

[0002] As we all know, in the server field, the reliability, availability and serviceability of the software and hardware system are extremely high, which are also the three major goals of RAS technology often mentioned in the industry. Among them, the serviceability requirement includes the need for the system to provide convenient hardware detection and diagnosis functions, such as system logs, dynamic detection and other methods and means to facilitate management and maintenance personnel to detect and diagnose hardware-related errors, so as to find errors early and then perform further maintenance operations according to the relevant error status.

[0003] With respect to the above hardware detection and diagnosis function, existing hardware detection means are not applicable to the non-server system on chip (SOC) product field. Summary of the invention

[0004] In view of this, the present disclosure proposes a hardware error detection method, device and system, an error collector component, a chipset, and an ODM tool, so as to perform hardware error diagnosis suitable for SOC.

[0005] According to a first aspect of the present disclosure, a hardware error detection method is provided, which is applied to an error collector component in a chipset of a system on chip (SOC), the hardware error detection method comprising: in response to a hardware error of the SOC, receiving hardware error information indicating that a hardware error of the SOC has occurred; storing the hardware error information in a target storage component, wherein an ODM tool performs error diagnosis based on the hardware error information stored in the target storage component.

[0006] In one possible implementation, storing the hardware error information in a target storage component includes: recording the received hardware error information in a register of the SOC; reading the hardware error information recorded in the register when a reading condition is met; and storing the read hardware error information in the target storage component.

[0007] In a possible implementation, the reading condition is met including: the register records a predetermined number of hardware error information; or a predetermined time has passed since the last time the read hardware error information was stored in the target storage component.

[0008] In a possible implementation, storing the hardware error information in a target storage component includes: in response to receiving the hardware error information, storing the received hardware error information in the target storage component.

[0009] In one possible implementation, the hardware error detection method further includes: notifying the embedded controller that an error has occurred in the hardware of the SOC to trigger interaction between the error collector component and the embedded controller, and accordingly, storing the hardware error information in a storage component of the embedded controller via interaction between the error collector component and the embedded controller.

[0010] In one possible implementation, notifying the embedded controller that an error has occurred in the hardware of the SOC to trigger interaction between the error collector component and the embedded controller includes: changing the state of a general purpose input / output pin (GPIO) of the SOC to notify the embedded controller that an error has occurred in the hardware of the SOC, thereby triggering the error collector component and the embedded controller to interact with each other via an I2C bus.

[0011] In a possible implementation manner, storing the hardware error information in a target storage component includes: storing the hardware error information in a storage component at the SOC end.

[0012] In one possible implementation, the hardware error of the SOC includes at least one of the following: an error in the core of the CPU of the SOC; an error in the non-core hardware of the CPU; an error in the high-speed serial computer expansion bus PCIE in the chipset; an error in the dynamic random access memory controller DRAMC in the chipset.

[0013] In one possible implementation, the hardware error detection method also includes: receiving a read command sent by the ODM tool for reading hardware error information stored in a storage component of the embedded controller; sending the read command to the embedded controller; receiving hardware error information sent by the embedded controller that matches the read command, wherein the ODM tool is capable of reading the hardware error information and performing hardware error diagnosis for the SOC based on the hardware error information.

[0014] In one possible implementation, the hardware error detection method further includes: receiving a read command sent by the ODM tool for reading hardware error information stored in a storage component on the SOC side; in response to the read command, reading hardware error information matching the read command from the storage component on the SOC side, wherein the ODM tool is capable of reading the hardware error information and performing hardware error diagnosis for the SOC based on the hardware error information.

[0015] According to a second aspect of the present disclosure, a hardware error detection method is provided, which is applied to an original design manufacturer (ODM) tool, and the hardware error detection method includes: sending a read command for reading hardware error information stored in a target storage component to a system on chip (SOC), wherein the hardware error information is used to indicate that an error has occurred in the hardware of the SOC; and reading the hardware error information that matches the read command and is obtained by the SOC in response to the read command, for use in hardware error diagnosis of the SOC.

[0016] In one possible implementation, reading the hardware error information that matches the read command and is obtained by the SOC in response to the read command for use in hardware error diagnosis of the SOC includes: reading the hardware error information that matches the read command and is sent by the embedded controller and is received by the SOC for use in hardware error diagnosis of the SOC.

[0017] In one possible implementation, the ODM tool includes an operating system OS diagnostic tool and / or a remote diagnostic tool, wherein the OS diagnostic tool runs on the SOC and the remote diagnostic tool runs at a remote end. Accordingly, the OS diagnostic tool and / or the remote diagnostic tool sends the read command to the SOC, and reads the hardware error information received by the SOC and sent by the embedded controller that matches the read command, wherein hardware error diagnosis for the SOC can be performed by analyzing the hardware error information read by the OS diagnostic tool and / or the remote diagnostic tool.

[0018] In one possible implementation, reading the hardware error information that matches the read command and is obtained by the SOC in response to the read command for use in hardware error diagnosis of the SOC includes: reading the hardware error information that matches the read command and is obtained by the SOC in response to the read command from a storage component at the SOC end for use in hardware error diagnosis of the SOC.

[0019] In one possible implementation, the ODM tool includes an operating system OS diagnostic tool and / or a remote diagnostic tool, the OS diagnostic tool runs on the SOC, and the remote diagnostic tool runs at a remote end. Accordingly, the OS diagnostic tool and / or the remote diagnostic tool sends the read command to the SOC, and reads hardware error information matching the read command read by the SOC from a storage component at the SOC end, wherein hardware error diagnosis for the SOC can be performed by analyzing the hardware error information read by the OS diagnostic tool and / or the remote diagnostic tool.

[0020] In one possible implementation, the ODM tool includes a flash memory tool, and the flash memory tool runs on the SOC. Accordingly, the hardware error detection method includes: the flash memory tool reads the hardware error information stored in the storage component of the embedded controller; or the flash memory tool reads the hardware error information stored in the storage component of the SOC end; wherein, by analyzing the hardware error information read by the flash memory tool, it is possible to diagnose whether a fatal error is caused by a hardware error, and the fatal error represents an error that can cause a remote diagnostic tool and an operating system OS diagnostic tool to fail to operate normally.

[0021] According to a third aspect of the present disclosure, a hardware error detection device is provided, which is applied to an error collector component in a chipset of a system on chip (SOC), and the hardware error detection device includes: a receiving module, which is used to receive hardware error information indicating that an error has occurred in the hardware of the SOC in response to an error occurring in the hardware of the SOC; and a processing module, which is used to store the hardware error information in a target storage component, wherein an original design manufacturer (ODM) tool performs hardware error diagnosis on the SOC based on the hardware error information stored in the target storage component.

[0022] In a possible implementation, the processing module is configured to: record the received hardware error information in a register of the SOC; read the hardware error information recorded in the register if a reading condition is met; and store the read hardware error information in the target storage component.

[0023] In a possible implementation manner, the processing module is configured to: in response to receiving hardware error information, store the received hardware error information in the target storage component.

[0024] In one possible implementation, the hardware error detection device also includes: a notification module, used to notify the embedded controller that an error has occurred in the hardware of the SOC, so as to trigger the interaction between the error collector component and the embedded controller, and accordingly, via the interaction between the error collector component and the embedded controller, the hardware error information is stored in the storage component of the embedded controller.

[0025] In one possible implementation, the notification module is configured to: change the state of a general purpose input / output pin (GPIO) of the SOC to notify the embedded controller that an error has occurred in the hardware of the SOC, thereby triggering the error collector component and the embedded controller to interact with each other via an I2C bus.

[0026] In a possible implementation manner, the processing module is configured to: store the hardware error information in a storage component of the SOC end.

[0027] According to a fourth aspect of the present disclosure, an error collector component in a chipset of a system on chip (SOC) is provided, comprising the hardware error detection device described in the third aspect.

[0028] According to a fifth aspect of the present disclosure, an error collector component in a chipset of a system on chip (SOC) is provided, wherein the error collector component is used to execute each step of the hardware error detection method described in the first aspect.

[0029] According to a sixth aspect of the present disclosure, a chipset of a system on chip (SOC) is provided, comprising the error collector component described in the fourth aspect or the fifth aspect.

[0030] According to the seventh aspect of the present disclosure, a hardware error detection device is provided, which is applied to an original design manufacturer (ODM) tool, and the hardware error detection device includes: a sending module, which is used to send a read command for reading hardware error information stored in a target storage component to a system on chip (SOC), and the hardware error information is used to indicate that an error has occurred in the hardware of the SOC; and a reading module, which is used to read the hardware error information that matches the read command and is obtained by the SOC in response to the read command, for hardware error diagnosis of the SOC.

[0031] In a possible implementation, the reading module is configured to read hardware error information that is received by the SOC and sent by the embedded controller and matches the read command, for hardware error diagnosis of the SOC.

[0032] In a possible implementation, the reading module is configured to read hardware error information matching the read command read from a storage component at the SOC end by the SOC in response to the read command, for hardware error diagnosis of the SOC.

[0033] According to an eighth aspect of the present disclosure, an original design manufacturer (ODM) tool is provided, comprising the hardware error detection device described in the seventh aspect.

[0034] According to a ninth aspect of the present disclosure, an original design manufacturer (ODM) tool is provided, wherein the ODM tool is used to execute each step of the hardware error detection method described in the second aspect.

[0035] According to the tenth aspect of the present disclosure, a hardware error detection system is provided, comprising: a system on chip SOC, which includes a CPU and the chipset described in the sixth aspect; and the ODM tool described in the eighth aspect or the ninth aspect.

[0036] In one possible implementation, the hardware error detection system also includes: an embedded controller, used to: determine whether an error occurs in the hardware of the SOC based on whether the state of a general purpose input and output pin GPIO pin of the SOC changes; in response to determining that an error occurs in the hardware of the SOC, interact with the error collector component to obtain hardware error information, and store the hardware error information in a storage component of the embedded controller; receive a read command sent by the SOC for reading the hardware error information stored in the storage component; parse the read command, read hardware error information matching the parsed read command from the storage component, and send the hardware error information to the SOC, wherein the ODM tool can read the hardware error information received by the SOC and perform hardware error diagnosis for the SOC based on the hardware error information.

[0037] According to the present disclosure, compared with the existing structure of the SOC chipset, a new error collector component is added to the chipset. The error collector component receives hardware error information indicating that a hardware error has occurred in response to a hardware error of the SOC, and stores the hardware error information in a target storage component. Since the ODM tool can obtain the hardware error information stored in the target storage component, it can perform hardware error diagnosis for the SOC based on the obtained hardware error information, and thus can perform hardware error diagnosis suitable for the SOC.

[0038] In this way, it can not only meet the basic needs of ODMs in various embedded or PC fields for MCU / SOC hardware error detection and diagnosis processing, thereby facilitating the rapid location of hardware problems on the MCU / SOC side, but also does not require the addition of additional external chip components. On the premise of realizing the MCU / SOC hardware error detection and diagnosis function, it can save hardware costs.

[0039] In addition, since the main change on the MCU / SOC side is the addition of an error collector component (Error Collector Component), fewer changes are required in the hardware design, and embedded controller manufacturers / ODM manufacturers also have ready-made tools for reading and diagnosing various Flash information, so fewer changes are required in the software. It can be seen that the hardware error detection solution disclosed in the present invention is suitable for promotion and use.

[0040] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0042] Figure 1 is a flowchart of a hardware error detection method according to an embodiment of the present disclosure.

[0043] Figure 2 is a block diagram of a hardware error detection system according to an embodiment of the present disclosure.

[0044] Figure 3 is a flowchart of a hardware error detection method according to an embodiment of the present disclosure.

[0045] Figure 4 This is an embodiment of the present disclosure corresponding to Figure 2 Flow chart of a hardware error detection method of a hardware error detection system.

[0046] Figure 5 is a block diagram of a hardware error detection system according to an embodiment of the present disclosure.

[0047] Figure 6 is a flowchart of a hardware error detection method according to an embodiment of the present disclosure.

[0048] Figure 7 This is an embodiment of the present disclosure corresponding to Figure 5 Flow chart of a hardware error detection method of a hardware error detection system.

[0049] Figure 8is a flowchart of a hardware error detection method according to an embodiment of the present disclosure.

[0050] Fig. 9 It is a block diagram of a hardware error detection device according to an embodiment of the present disclosure.

[0051] Fig.10 It is a block diagram of a hardware error detection device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0053] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0054] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0055] In the related technology, for example, in the field of X86 servers, the two main technical means of in-band and out-of-band are used to implement the hardware detection and diagnosis function. Among them, the in-band method is on the X86 chip side, and is typically implemented through the Machine Check Architecture (MCA) method. MCA can be used to detect and report hardware errors that occur inside the CPU and chipset. When a hardware error is found, the MCA module needs to be able to issue an interrupt or exception in a timely manner. Accordingly, the system software will process the received interrupt or exception and perform corresponding recording, repair, warning, restart or other actions.

[0056] The out-of-band method is on the non-X86 chip side, typically implemented through a baseboard management controller (BMC) chip. After a hardware error (Error) occurs on the X86 chip side, the hardware needs to be able to trigger some error-related pins (Pin), connect and send them to the BMC side. After the BMC detects that the error pin state has changed, it uses the X86 chip interface, such as the Platform Environment Control Interface (PECI) in the Intel platform, to dump the hardware-related information at the time of the error.

[0057] With the rapid development of hardware technology, the serviceability of software and hardware systems in the non-server MCU / SOC field has gradually improved. More and more original design manufacturers (ODM) hope to realize hardware detection and diagnosis functions in MCU / SOC application scenarios.

[0058] However, the MCA / BMC hardware detection technology used in the server field mentioned above is not applicable to the MCU / SOC field. The complete MCA technology is not only very complicated to implement in hardware, but the independent hardware vendor (IHV) needs to implement the MCA module separately according to whether the error is on the CPU side or the chipset side. It is also necessary to further distinguish whether it is a correctable error (Corrected Error, CE) or an uncorrectable error (Un-Corrected Error, UCE) according to the error type in the sub-module.

[0059] For the BMC method, on the one hand, the hardware needs to include independent physical error alarm pins (Error Alert Pin). When an error occurs, these pins are used to interact with the BMC. However, independent physical error alarm pins are generally not introduced in PC products. On the other hand, the BMC chip itself is expensive and must be used with firmware (FW) customized for the running platform. The cost of use is high and it is not suitable for the PC machine field that is very sensitive to price.

[0060] Therefore, the existing hardware detection and diagnosis methods have the problem of not being applicable to SOC.

[0061] To this end, the present disclosure proposes: adding an error collector component (Error Collector Component) in the chipset of the SOC, and the error collector component stores hardware error information indicating hardware errors of the SOC in a target storage component, so that the ODM tool can obtain the hardware error information stored in the target storage component and perform hardware error diagnosis for the SOC based on the obtained hardware error information. The error collector component is located in the chipset.

[0062] In one possible implementation, see Figure 2 The target storage component is located at the embedded controller (EC) end. Specifically, the target storage component is the Flash in the EC. Accordingly, the ODM tool can obtain the hardware error information stored in the Flash in the EC and perform hardware error diagnosis for the SOC based on the obtained hardware error information.

[0063] In another possible implementation, see Figure 5 The target storage component is located at the SOC end. Specifically, the target storage component is the Serial Peripheral Interface (SPI) Flash at the SOC end. Accordingly, the ODM tool can obtain the hardware error information stored in the SPI Flash and perform hardware error diagnosis for the SOC based on the obtained hardware error information.

[0064] Since the ODM tool can obtain the hardware error information stored in the target storage component, it can perform hardware error diagnosis for the SOC based on the obtained hardware error information, and thus can perform hardware error diagnosis suitable for the SOC, thereby solving the above-mentioned problem.

[0065] Based on the above ideas, Figure 1 The hardware error detection method shown in the figure can be applied to the error collector component in the chipset of the SOC. In other words, the hardware error detection method can be performed by the error collector component. Of course, the hardware error detection method can also be performed by other components of the chipset, such as Fig. 9 The hardware error detection device 900 included in the chipset shown executes the hardware error detection method.

[0066] See also Figure 1 , the hardware error detection method comprises the following steps:

[0067] Step S101 : in response to a hardware error of the SOC, receiving hardware error information indicating that a hardware error of the SOC occurs.

[0068] In this embodiment, Figure 2 As shown, the SOC may include a CPU and a chipset, and the chipset may include an error collector component capable of collecting hardware error information of the CPU and the chipset. When a hardware error occurs in the CPU, the hardware of the CPU where the error occurs, such as the core and / or the uncore, will generate hardware error information indicating that the hardware error has occurred, and the hardware error information is sent to the error collector component via the internal bus or the sideband signal of the SOC. Accordingly, the error collector component can receive the hardware error information via the internal bus or the sideband signal.

[0069] In one possible implementation, the hardware error of the SOC includes at least one of the following: an error in the core of the CPU of the SOC; an error in the non-core hardware of the CPU; an error in the high-speed serial computer expansion bus PCIE in the chipset; an error in the dynamic random access memory controller DRAMC in the chipset.

[0070] like Figure 2 As shown, the SOC may include a core and an uncore. When an error occurs in the core, the core will generate hardware error information indicating that an error has occurred in the core. When an error occurs in the uncore hardware, the uncore hardware will generate hardware error information indicating that an error has occurred in the uncore hardware. Accordingly, when an error occurs in the high-speed serial computer expansion bus (peripheral component interconnect express, PCIE), the chipset will generate hardware error information indicating that an error has occurred in the PCIE. When an error occurs in the dynamic random access memory controller (Dynamic Random Access Memory Collector, DRAMC), the chipset will generate hardware error information indicating that an error has occurred in the DRAMC.

[0071] In a possible implementation, the hardware error information may include some binary data, and the user is informed of which hardware has an error by parsing the binary data into easily understandable text. It should be understood that the hardware error information may include an identification field that can identify the hardware where the error occurred, so that the specific hardware of the SOC where the error occurred can be determined based on the identification field of the hardware error information. Of course, the fields included in the hardware error information can also be adjusted according to the actual application scenario and requirements.

[0072] For example, a field can be added to the hardware error information to identify whether the error corresponding to the hardware where the error occurs is a fatal error (Fatal Error) or a non-fatal error (Non Fatal Error), wherein the fatal error refers to an error that can cause the OS diagnostic tool and the remote diagnostic tool to fail to operate normally, and the non-fatal error refers to an error that cannot cause the OS diagnostic tool and the remote diagnostic tool to fail to operate normally. For another example, an address field for indicating the address of the hardware where the error occurs can be added to the hardware error information.

[0073] Step S102: storing the hardware error information in a target storage component, wherein an original design manufacturer (ODM) tool performs hardware error diagnosis on the SOC according to the hardware error information stored in the target storage component.

[0074] In this embodiment, Figure 2 As shown, after the error collector component collects the hardware error information, the collected hardware error information can be stored in the Flash in the EC. Accordingly, ODM tools such as remote diagnostic tools, OS diagnostic tools, and Flash tools can obtain the hardware error information stored in the Flash in the EC and perform hardware error diagnosis for the SOC based on the information. The method of storing the collected hardware error information in the Flash in the EC can be specifically referred to in the following description. Figure 3 Relevant content of the flowchart shown.

[0075] like Figure 5 As shown, after the error collector component collects the hardware error information, the collected hardware error information can be stored in the SPI Flash of the SOC. Accordingly, ODM tools such as remote diagnostic tools, OS diagnostic tools and Flash tools can obtain the hardware error information stored in the SPI Flash and perform hardware error diagnosis for the SOC accordingly. The method of storing the collected hardware error information in the SPI Flash can be specifically referred to in the following description. Figure 4 Relevant content of the flowchart shown.

[0076] According to this embodiment, compared with the existing structure of the SOC chipset, a new error collector component is added to the chipset. The error collector component receives hardware error information indicating that a hardware error has occurred in response to a hardware error of the SOC, and stores the hardware error information in a target storage component. Since the ODM tool can obtain the hardware error information stored in the target storage component, it can perform hardware error diagnosis for the SOC based on the obtained hardware error information, and thus can perform hardware error diagnosis suitable for the SOC.

[0077] In this way, it can not only meet the basic needs of ODMs in various embedded or PC fields for MCU / SOC hardware error detection and diagnosis processing, thereby facilitating the rapid location of hardware problems on the MCU / SOC side, but also does not require the addition of additional external chip components. On the premise of realizing the MCU / SOC hardware error detection and diagnosis function, it can save hardware costs.

[0078] In addition, since the main change on the MCU / SOC side is the addition of an error collector component, fewer changes are required in the hardware design, and embedded controller manufacturers / ODM manufacturers also have ready-made tools for reading and diagnosing various Flash information, so fewer changes are required in the software. It can be seen that the hardware error detection solution disclosed in the present invention is suitable for promotion and use.

[0079] In a possible implementation, step S102 may include: recording the received hardware error information in a register of the SOC; reading the hardware error information recorded in the register if a reading condition is met; and storing the read hardware error information in the target storage component.

[0080] In this embodiment, each time a piece of hardware error information is received, the error collector component records the hardware error information into a register inside the SOC to cache the hardware error information until a read condition is met. When the read condition is met, the hardware error information is read from the register and stored in the target storage component.

[0081] Wherein, the read condition may include that the register records a predetermined number of hardware error information. Thus, each time a piece of hardware error information is received, the error collector component increments the counter by 1 and determines whether the value of the counter is greater than or equal to the predetermined number; if the determination is no, the hardware error information is recorded in the register and the aforementioned process is repeated; if the determination is yes, the hardware error information is recorded in the register, all the hardware error information recorded in the register is read from the register and the hardware error information is stored in the target storage component.

[0082] Alternatively, the read condition may include that a predetermined time has passed since the last time the read hardware error information was stored in the target storage component. Thus, when the first piece of hardware error information is received, the error collector component starts the timer, and thereafter, each time a piece of hardware error information is received, the error collector component determines whether the value of the timer is greater than or equal to the predetermined time; if the determination is no, the hardware error information is recorded in the register and the aforementioned process is repeated; if the determination is yes, the hardware error information is recorded in the register, all the hardware error information recorded in the register is read from the register, and all the hardware error information is stored in the target storage component.

[0083] In a possible implementation, step S102 may include: in response to receiving the hardware error information, storing the received hardware error information in the target storage component.

[0084] In this embodiment, each time a piece of hardware error information is received, the error collector component stores the hardware error information in the target storage component, so that hardware error diagnosis for the SOC can be performed in a timely manner according to the hardware error information.

[0085] In a possible implementation, the above-mentioned hardware error detection method may also include: notifying the embedded controller that an error has occurred in the hardware of the SOC to trigger interaction between the error collector component and the embedded controller, and accordingly, storing the hardware error information in the storage component of the embedded controller via interaction between the error collector component and the embedded controller.

[0086] In this embodiment, after collecting the hardware error information, the error collector component needs to notify the EC that an error has occurred in the SOC hardware, so that the EC knows that an error has occurred in the SOC hardware, so that the EC interacts with the error collector component and then stores the hardware error information in Figure 2 In the Flash in the EC.

[0087] like Figure 2 As shown, the error collector component and EC are connected to each other through the general purpose input output (GPIO) pin and the inter-integrated circuit (I2C) bus. The GPIO pin is used to notify the EC that an error has occurred in the SOC, and the I2C bus is used by the EC to read hardware error information from the error collector component. Of course, the chipset is also connected to the EC through the LPC / ESPI interface to transmit the IO / MMIO and other clocks (Cycle) required to drive the internal components of the EC. In addition, the SOC end is also connected to an external SPI Flash for storing the SOC BIOS. As described above, the SPIFlash can also be used to store hardware error information.

[0088] EC contains Flash inside, which stores the firmware (FW) required for EC operation. EC hardware can detect the status of the GPIO pin interconnected with the error collector component. When the pin is valid, it can trigger an interrupt to notify FW to handle the interrupt, obtain hardware error information from the error collector component through the I2C bus, and store the hardware error information in the Flash inside the EC in a specific format.

[0089] In a possible implementation, step S102 may include: storing the hardware error information in a storage component of the SOC end.

[0090] In this embodiment, by comparing Figure 2 and Figure 5 It can be seen that the hardware error information of the CPU and chipset collected by the error collector component is no longer stored in the Flash in the EC, but is directly written by the error collector component to the SPIFlash on the SOC side, which is the same Flash that stores the Bios Bin.

[0091] In one possible implementation, Figure 3 As shown, the method for storing the collected hardware error information in the Flash in the EC may specifically include the following steps:

[0092] Step S301: an error occurs in the hardware inside the SOC. In response to the hardware error, the hardware generates corresponding hardware error information.

[0093] Step S302: the error collector component collects the hardware error information and records the hardware error information into a register of the SOC.

[0094] The error collector component collects the hardware error information as described in the above description of step S101, and records the hardware error information into the register of the SOC as described in the above description of step S102, which will not be repeated here.

[0095] Step S303: the error collector component switches the state of the GPIO pin.

[0096] Step S304: EC receives a hardware interrupt caused by a change in the state of a GPIO pin.

[0097] Step S305 , the EC determines that a hardware error occurs inside the SOC.

[0098] Through steps S303 - S305 , the error collector component notifies the EC of an error occurring in the hardware of the SOC via the status of the GPIO pin.

[0099] Step S306: the error collector component reads the hardware error information recorded in the register.

[0100] Step S307: the error collector component sends the read hardware error information to the EC.

[0101] Step S308 , the EC receives the hardware error information read by the error collector component.

[0102] Step S309: The EC stores the received hardware error information into the Flash in the EC.

[0103] Through steps S306 - S309 , in response to the EC determining that an error has occurred in the hardware of the SOC, the EC stores hardware error information in the Flash within the EC.

[0104] In one possible implementation, Figure 4 As shown, the method for storing the collected hardware error information in the SPI Flash of the SOC end may specifically include the following steps:

[0105] Step S401: an error occurs in the hardware inside the SOC. In response to the hardware error, the hardware generates corresponding hardware error information.

[0106] Step S402: the error collector component collects the hardware error information and records the hardware error information into a register of the SOC.

[0107] The error collector component collects the hardware error information as described in the above description of step S101, and records the hardware error information into the register of the SOC as described in the above description of step S102, which will not be repeated here.

[0108] Step S403: the error collector component reads the hardware error information recorded in the register, and stores the read hardware error information in the SPI Flash of the SOC end.

[0109] Thus, instead of the EC storing the hardware error information in the Flash within the EC, the error collector component stores the hardware error information in the SPI Flash on the SOC side.

[0110] In a possible implementation, the above-mentioned hardware error detection method may also include: receiving a read command sent by the ODM tool for reading hardware error information stored in the storage component of the embedded controller; sending the read command to the embedded controller; receiving hardware error information sent by the embedded controller that matches the read command, wherein the ODM tool is capable of reading the hardware error information and performing hardware error diagnosis for the SOC based on the hardware error information.

[0111] The ODM tool side can include remote diagnostic tools, operating system diagnostic tools, and Flash tools. Different types of tools are used in different scenarios to read the hardware error information stored in the target storage component. For example, Figure 2 As shown, you can use the remote diagnostic tool / OS diagnostic tool / Flash tool to read the hardware error information stored in the Flash in the EC, such as Figure 5 As shown, the hardware error information stored in the SPI Flash of the SOC side can be read using the remote diagnostic tool / OS diagnostic tool / Flash tool.

[0112] The present disclosure also provides Figure 6 The hardware error detection method shown in the figure can be applied to the ODM tool. In other words, the hardware error detection method can be executed by the ODM tool. Of course, the hardware error detection method can also be executed by other components of the ODM tool, such as Fig.10 The hardware error detection device 1000 included in the ODM tool is used to execute the hardware error detection method.

[0113] See also Figure 6 , the hardware error detection method comprises the following steps:

[0114] Step S601: sending a read command for reading hardware error information stored in a target storage component to a system on chip SOC, wherein the hardware error information is used to indicate that an error occurs in the hardware of the SOC.

[0115] In this embodiment, Figure 2 As shown, the OS diagnostic tool running on the hardware of the SOC can send the above read command to the hardware of the SOC. Figure 2 As shown, the remote diagnostic tool running at the far end can also send the above read command to the hardware of the SOC. The remote diagnostic tool and the OS diagnostic tool are mainly for non-fatal errors. After the non-fatal error is generated by the related hardware error, it does not affect the system boot to Shell Or OS to run the remote diagnostic tool and OS diagnostic tool. Accordingly, the hardware of the SOC can receive the read command.

[0116] Step S602 : reading hardware error information matching the read command and obtained by the SOC in response to the read command, for use in hardware error diagnosis of the SOC.

[0117] In this embodiment, Figure 2As shown, the hardware of the SOC sends a read command to the EC through the LPC / ESPI interface. The EC receives the read command, parses the read command, reads the hardware error information matching the parsed read command from the Flash in the EC, and sends the read hardware error information to the hardware of the SOC. In this way, the remote diagnostic tool / OS diagnostic tool can read the hardware error information from the SOC and diagnose the hardware error of the SOC accordingly. Therefore, the remote diagnostic tool / OS diagnostic tool reads the hardware error information matching the read command sent by the EC and received by the SOC.

[0118] like Figure 5 As shown, the hardware of the SOC responds to the read command and reads the hardware error information matching the read command from the SPI Flash at the SOC end. In this way, the remote diagnostic tool / OS diagnostic tool can read the hardware error information from the SOC and diagnose the hardware error of the SOC accordingly. Therefore, what the remote diagnostic tool / OS diagnostic tool reads is the hardware error information matching the read command read from the SPI Flash at the SOC end in response to the read command.

[0119] According to this embodiment, since the ODM tool can obtain the hardware error information stored in the target storage component, the hardware error diagnosis for the SOC can be performed according to the obtained hardware error information, so the hardware error diagnosis suitable for the SOC can be performed.

[0120] In this way, it can not only meet the basic needs of ODMs in various embedded or PC fields for MCU / SOC hardware error detection and diagnosis processing, thereby facilitating the rapid location of hardware problems on the MCU / SOC side, but also does not require the addition of additional external chip components. On the premise of realizing the MCU / SOC hardware error detection and diagnosis function, it can save hardware costs.

[0121] In addition, since the main change on the MCU / SOC side is the addition of an error collector component, fewer changes are required in the hardware design, and embedded controller manufacturers / ODM manufacturers also have ready-made tools for reading and diagnosing various Flash information, so fewer changes are required in the software. It can be seen that the hardware error detection solution disclosed in the present invention is suitable for promotion and use.

[0122] The present disclosure also provides Figure 7 The hardware error detection method shown in Figure 7 As shown, the hardware error detection method may include the following steps:

[0123] In step S701, the remote diagnostic tool / OS diagnostic tool sends a read command. For this step, please refer to the description of step S601 above, which will not be repeated here.

[0124] In step S702 , the SOC sends a read command to the EC.

[0125] In this embodiment, the hardware of the SOC sends the read command to the EC through the LPC / ESPI interface. Accordingly, the EC can receive the read command.

[0126] In step S703 , the EC parses the read command.

[0127] In this embodiment, after the FW running on the EC receives the read command, the FW may parse the read command.

[0128] In step S704, the EC reads hardware error information.

[0129] In this embodiment, the FW running on the EC is responsible for reading the hardware-related error data previously recorded in the Flash in the EC, that is, the hardware error information.

[0130] In step S705 , the EC sends the read hardware error information.

[0131] In this embodiment, the FW running on the EC returns the hardware error information read from the Flash in the EC to the SOC end via the LPC / ESPI interface.

[0132] In step S706 , the remote diagnostic tool / OS diagnostic tool reads hardware error information from the SOC.

[0133] In step S707 , the remote diagnostic tool / OS diagnostic tool performs hardware error diagnosis for the SOC according to the hardware error information.

[0134] In this embodiment, the ODM after-sales maintenance personnel / R&D personnel analyze the hardware error information read by the OS diagnostic tool / remote diagnostic tool to determine which hardware of the SOC has a non-fatal error.

[0135] The present disclosure also provides Figure 8 The hardware error detection method shown in Figure 8 As shown, the hardware error detection method may include the following steps:

[0136] In step S801, the Flash tool reads the hardware error information stored in the Flash in the EC or the hardware error information stored in the SPI Flash at the SOC end.

[0137] In this embodiment, ODM after-sales maintenance personnel / R&D personnel can use a dedicated Flash reading tool to read the hardware error information stored in the Flash in the EC, or the hardware error information stored in the SPI Flash on the SOC side. The Flash reading tool is mainly for fatal errors. After the fatal error is a related hardware error, it will affect the system Boot to Shell Or OS, so that the remote diagnostic tool and OS diagnostic tool cannot be run normally. Among them, a dedicated Flash reading tool is needed to read and parse the hardware error information stored in the Flash in the EC, or read and parse the hardware error information stored in the SPI Flash on the SOC side. Generally, EC manufacturers / ODM manufacturers already have ready-made dedicated Flash reading tools, and no additional development is required.

[0138] In step S802, the Flash tool diagnoses whether the fatal error is caused by a hardware error according to the hardware error information.

[0139] In this embodiment, the ODM after-sales maintenance personnel / R&D personnel analyze the information parsed by the Flash reading tool to diagnose whether the fatal error of the SOC is caused by a hardware error of the SOC.

[0140] Fig. 9 FIG. 9 is a block diagram of a hardware error detection device according to an exemplary embodiment. The hardware error detection device 900 may be applied to an error collector component in a chipset of a SOC. In other words, the error collector component may include the hardware error detection device 900. Fig. 9 As shown, the hardware error detection device 900 may include a receiving module 910 and a processing module 920. The receiving module 910 is used to receive hardware error information indicating that an error has occurred in the hardware of the SOC in response to an error occurring in the hardware of the SOC; the processing module 920 is used to store the hardware error information in a target storage component, wherein the ODM tool performs error diagnosis according to the hardware error information stored in the target storage component.

[0141] In a possible implementation, the processing module 920 is configured to: record the received hardware error information in a register of the SOC; read the hardware error information recorded in the register if a reading condition is met; and store the read hardware error information in the target storage component.

[0142] In a possible implementation, the reading condition is met including: the register records a predetermined number of hardware error information; or a predetermined time has passed since the last time the read hardware error information was stored in the target storage component.

[0143] In a possible implementation, the processing module 920 is configured to: in response to receiving hardware error information, store the received hardware error information in the target storage component.

[0144] In one possible implementation, the hardware error detection device 900 also includes: a notification module (not shown), which is used to notify the embedded controller that an error has occurred in the hardware of the SOC, so as to trigger the interaction between the error collector component and the embedded controller, and accordingly, via the interaction between the error collector component and the embedded controller, the hardware error information is stored in the storage component of the embedded controller.

[0145] In one possible implementation, the notification module is configured to: change the state of a general purpose input / output pin (GPIO) of the SOC to notify the embedded controller that an error has occurred in the hardware of the SOC, thereby triggering the error collector component and the embedded controller to interact with each other via an I2C bus.

[0146] In a possible implementation, the processing module 920 is configured to: store the hardware error information in a storage component of the SOC end.

[0147] In one possible implementation, the hardware error of the SOC includes at least one of the following: an error in the core of the CPU of the SOC; an error in the non-core hardware of the CPU; an error in the high-speed serial computer expansion bus PCIE in the chipset; an error in the dynamic random access memory controller DRAMC in the chipset.

[0148] Fig.10 FIG. 1 is a block diagram showing a hardware error detection device according to an exemplary embodiment. The hardware error detection device 1000 may be applied to an ODM tool. In other words, the ODM tool may include the hardware error detection device 1000. Fig.10 As shown, the hardware error detection device 1000 may include a sending module 1010 and a reading module 1020. The sending module 1010 is used to send a read command for reading hardware error information stored in a target storage component to a system on chip SOC, wherein the hardware error information is used to indicate that an error has occurred in the hardware of the SOC; the reading module 1020 is used to read the hardware error information that matches the read command and is obtained by the SOC in response to the read command, so as to diagnose the hardware error of the SOC.

[0149] In a possible implementation, the reading module 1020 is configured to read the hardware error information received by the SOC and sent by the embedded controller that matches the read command, for hardware error diagnosis of the SOC.

[0150] In one possible implementation, the ODM tool includes an operating system OS diagnostic tool and / or a remote diagnostic tool, wherein the OS diagnostic tool runs on the SOC and the remote diagnostic tool runs at a remote end. Accordingly, the OS diagnostic tool and / or the remote diagnostic tool sends the read command to the SOC, and reads the hardware error information received by the SOC and sent by the embedded controller that matches the read command, wherein hardware error diagnosis for the SOC can be performed by analyzing the hardware error information read by the OS diagnostic tool and / or the remote diagnostic tool.

[0151] In a possible implementation, the reading module 1020 is configured to read hardware error information matching the read command read from a storage component at the SOC end by the SOC in response to the read command, for hardware error diagnosis of the SOC.

[0152] In one possible implementation, the ODM tool includes an operating system OS diagnostic tool and / or a remote diagnostic tool, the OS diagnostic tool runs on the SOC, and the remote diagnostic tool runs at a remote end. Accordingly, the OS diagnostic tool and / or the remote diagnostic tool sends the read command to the SOC, and reads hardware error information matching the read command read by the SOC from a storage component at the SOC end, wherein hardware error diagnosis for the SOC can be performed by analyzing the hardware error information read by the OS diagnostic tool and / or the remote diagnostic tool.

[0153] In one possible implementation, the ODM tool includes a flash memory tool, which runs on the SOC. Accordingly, the flash memory tool reads hardware error information stored in a storage component of an embedded controller; or the flash memory tool reads hardware error information stored in a storage component on the SOC side; wherein, by analyzing the hardware error information read by the flash memory tool, it is possible to diagnose whether a fatal error is caused by a hardware error, and the fatal error represents an error that can cause a remote diagnostic tool and an operating system OS diagnostic tool to fail to operate normally.

[0154] The present disclosure also provides a hardware error detection system. Figure 2 and 5As shown, the system may include: a system on chip SOC, which includes a CPU and a chipset; and an ODM tool.

[0155] In one possible implementation, Figure 2 and 5 As shown, the hardware error detection system may also include an EC, which is used to: determine whether an error occurs in the hardware of the SOC based on whether the state of the GPIO pin of the SOC changes; in response to determining that an error occurs in the hardware of the SOC, interact with the error collector component to obtain hardware error information, and store the hardware error information in the Flash within the EC; receive a read command sent by the SOC for reading the hardware error information stored in the Flash within the EC; parse the read command, read the hardware error information matching the parsed read command from the Flash within the EC, and send the hardware error information to the SOC, wherein the ODM tool can read the hardware error information received by the SOC, and perform hardware error diagnosis for the SOC based on the hardware error information.

[0156] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0157] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A hardware error detection method, characterized in that: The error collector component in the chipset of the system on chip SOC is applied, and the hardware error detection method comprises: In response to a hardware error of the SOC, receiving hardware error information indicating that the hardware error of the SOC occurs; The hardware error information is stored in a target storage component, wherein the ODM tool performs error diagnosis according to the hardware error information stored in the target storage component.

2. The hardware error detection method according to claim 1, characterized in that: Storing the hardware error information in the target storage component includes: Recording the received hardware error information into a register of the SOC; When the reading condition is met, reading the hardware error information recorded in the register; The read hardware error information is stored in the target storage component.

3. The hardware error detection method according to claim 2, characterized in that: The reading conditions include: The register records a predetermined number of hardware error information; or A predetermined time has elapsed since the last storage of the read hardware error information in the target storage component.

4. The hardware error detection method according to claim 1, characterized in that: Storing the hardware error information in the target storage component includes: In response to receiving the hardware error information, the received hardware error information is stored in the target storage component.

5. The hardware error detection method according to any one of claims 1 to 4, characterized in that: Also includes: Notify the embedded controller that an error has occurred in the hardware of the SOC to trigger interaction between the error collector component and the embedded controller. Accordingly, The hardware error information is stored in a storage component of the embedded controller via interaction between the error collector component and the embedded controller.

6. The hardware error detection method according to claim 5, characterized in that: Notifying the embedded controller that an error has occurred in the hardware of the SOC to trigger interaction between the error collector component and the embedded controller includes: The state of the general purpose input and output pin GPIO of the SOC is changed to notify the embedded controller that an error has occurred in the hardware of the SOC, thereby triggering the error collector component and the embedded controller to interact with each other via the I2C bus.

7. The hardware error detection method according to any one of claims 1 to 4, characterized in that: Storing the hardware error information in the target storage component includes: The hardware error information is stored in a storage component at the SOC end.

8. The hardware error detection method according to any one of claims 1 to 4, characterized in that: The hardware error of the SOC includes at least one of the following: An error occurs in a core of the CPU of the SOC; An error occurs in the non-core hardware of the CPU; An error occurs in the high-speed serial computer expansion bus PCIE in the chipset; An error occurs in the dynamic random access memory controller DRAMC in the chipset.

9. The hardware error detection method according to claim 5, characterized in that: Also includes: The hardware of the SOC receives a read command sent by the ODM tool for reading hardware error information stored in a storage component of the embedded controller; The hardware of the SOC sends the read command to the embedded controller; The hardware of the SOC receives the hardware error information sent by the embedded controller and matching the read command, wherein the ODM tool can read the hardware error information and perform hardware error diagnosis for the SOC according to the hardware error information.

10. The hardware error detection method according to claim 7, characterized in that: Also includes: The hardware of the SOC receives a read command sent by the ODM tool for reading hardware error information stored in a storage component at the SOC end; In response to the read command, the hardware of the SOC reads hardware error information matching the read command from the storage component at the SOC end, wherein the ODM tool can read the hardware error information and perform hardware error diagnosis for the SOC based on the hardware error information.

11. A hardware error detection method, characterized in that: Applied to original design manufacturer (ODM) tools, the hardware error detection method includes: Sending a read command for reading hardware error information stored in a target storage component to a system on chip (SOC), wherein the hardware error information is used to indicate that an error occurs in the hardware of the SOC; The hardware error information matching the read command and obtained by the SOC in response to the read command is read for hardware error diagnosis of the SOC.

12. The hardware error detection method according to claim 11, characterized in that: Reading hardware error information matching the read command and obtained by the SOC in response to the read command for hardware error diagnosis of the SOC includes: The hardware error information matching the read command and sent by the embedded controller and received by the SOC is read for hardware error diagnosis of the SOC.

13. The hardware error detection method according to claim 12, characterized in that: The ODM tool includes an operating system OS diagnostic tool and / or a remote diagnostic tool. The OS diagnostic tool runs on the SOC, and the remote diagnostic tool runs at a remote end. Accordingly, The OS diagnostic tool and / or the remote diagnostic tool sends the read command to the SOC, and reads the hardware error information received by the SOC and sent by the embedded controller that matches the read command, wherein hardware error diagnosis for the SOC can be performed by analyzing the hardware error information read by the OS diagnostic tool and / or the remote diagnostic tool.

14. The hardware error detection method according to claim 11, characterized in that: Reading hardware error information matching the read command and obtained by the SOC in response to the read command for hardware error diagnosis of the SOC includes: The hardware error information matching the read command and read from the storage component at the SOC end in response to the read command is read for hardware error diagnosis of the SOC.

15. The hardware error detection method according to claim 14, characterized in that: The ODM tool includes an operating system OS diagnostic tool and / or a remote diagnostic tool. The OS diagnostic tool runs on the SOC, and the remote diagnostic tool runs at a remote end. Accordingly, The OS diagnostic tool and / or the remote diagnostic tool sends the read command to the SOC, and reads the hardware error information matching the read command read by the SOC from the storage component on the SOC side, wherein hardware error diagnosis for the SOC can be performed by analyzing the hardware error information read by the OS diagnostic tool and / or the remote diagnostic tool.

16. The hardware error detection method according to any one of claims 11 to 15, characterized in that: The ODM tool includes a flash tool, and the flash tool runs on the SOC. Accordingly, The hardware error detection method comprises: The flash tool reads the hardware error information stored in the storage component of the embedded controller; or the flash tool reads the hardware error information stored in the storage component of the SOC end; By analyzing the hardware error information read by the flash tool, it is possible to diagnose whether a fatal error is caused by a hardware error, wherein the fatal error indicates an error that can cause the remote diagnostic tool and the operating system OS diagnostic tool to fail to operate normally.

17. A hardware error detection device, characterized in that: The error collector component applied to the chipset of the system on chip SOC, the hardware error detection device comprises: A receiving module, configured to receive hardware error information indicating that an error has occurred in the hardware of the SOC in response to an error occurring in the hardware of the SOC; The processing module is used to store the hardware error information in a target storage component, wherein the ODM tool performs error diagnosis according to the hardware error information stored in the target storage component.

18. An error collector component in a chipset of a system on chip (SOC), characterized in that: Includes the hardware error detection device as claimed in claim 17.

19. An error collector component in a chipset of a system on chip (SOC), characterized in that: The error collector component is used to execute each step of the hardware error detection method according to any one of claims 1-10.

20. A chipset of a system on chip (SOC), characterized in that: Comprising the error collector assembly of claim 18 or 19.

21. A hardware error detection device, characterized in that: Applied to original design manufacturer (ODM) tools, the hardware error detection device comprises: A sending module, used for sending a read command for reading hardware error information stored in a target storage component to a system on chip SOC, wherein the hardware error information is used for indicating that an error occurs in the hardware of the SOC; The reading module is used to read the hardware error information matching the read command and obtained by the SOC in response to the read command, so as to be used for hardware error diagnosis of the SOC.

22. An original design manufacturer (ODM) tool, characterized in that: Includes the hardware error detection device as claimed in claim 21.

23. An original design manufacturer (ODM) tool, characterized in that: The ODM tool is used to execute each step of the hardware error detection method according to any one of claims 11 to 16.

24. A hardware error detection system, characterized in that: include: A system on chip (SOC), comprising a CPU and the chipset according to claim 20; The ODM tool according to claim 22 or 23.

25. The hardware error detection system according to claim 24, characterized in that: Also includes: Embedded controllers for: Determine whether a hardware error occurs in the SOC according to whether a state of a general purpose input / output pin GPIO pin of the SOC changes; In response to determining that an error occurs in the hardware of the SOC, interacting with the error collector component to obtain hardware error information and storing the hardware error information in a storage component of the embedded controller; receiving a read command sent by the SOC for reading the hardware error information stored in the storage component; parsing the read command, reading hardware error information matching the parsed read command from the storage component, and sending the hardware error information to the SOC, The ODM tool can read the hardware error information received by the SOC, and perform hardware error diagnosis for the SOC according to the hardware error information.