Integrated circuit power-on key error log management method and device, equipment and medium

By storing and reading error logs after powering on the integrated circuit, the error log loss problem caused by volatile storage media is solved, and errors are quickly identified and corrected, improving production efficiency and product quality.

CN119065883APending Publication Date: 2024-12-03SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411177189.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

When the integrated circuit is powered on, the error log is stored in the volatile storage medium and will be erased after power outage, resulting in the inability to obtain the critical error log, resulting in the inaccurate error error being unable to be accurately identified, and the time to locate the cause of the error is extended.

Method used

After the integrated circuit is powered on, when an error is detected, the error log is stored in volatile memory and enters the serial port mass production mode. The error log is read through the error log loading command, the error reason is analyzed, and the write is rewritten if necessary Firmware to correct errors.

Benefits of technology

It avoids the problem that failure errors cannot be accurately identified, and can quickly locate the cause of errors and improve production efficiency and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065883A_ABST
    Figure CN119065883A_ABST
Patent Text Reader

Abstract

The invention relates to an integrated circuit power-on key error log management method and device, equipment and a medium, and relates to the technical field of integrated circuit log management. According to the method and the device, the integrated circuit is controlled to be kept in the power-on state when the error occurs in the firmware of the integrated circuit, so that the key error log is stored in the volatile memory, and the integrated circuit cannot be powered off and cleared; after the integrated circuit enters the serial port mass production mode, the key error log stored in the volatile memory can be read by inputting the error log loading command, the situation that the fault error of the integrated circuit cannot be accurately recognized can be avoided, and the error reason can be quickly positioned in the integrated circuit production process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of integrated circuit log management, and in particular to a method, device, computer equipment and storage medium for managing critical power-on error logs of integrated circuits. Background Art

[0002] The method of storing and loading the critical error log when the integrated circuit is powered on needs to consider the speed of error detection, the reliability of the storage medium, the security of the data, and the real-time performance of the system. Flash memory is usually used as a non-volatile storage medium to quickly store error logs, and it has high read and write speeds and durability. However, the process of powering on the integrated circuit is relatively short, and the error log can be stored in a volatile storage medium. When the integrated circuit is powered off and restarted, the error log in the volatile storage medium will be erased, that is, the previous error log will no longer be saved after the power is restarted, resulting in the inability to obtain the critical error log when the integrated circuit is powered on, resulting in the inability to accurately identify the judgment of the integrated circuit fault error, resulting in the extension of the period for locating the cause of the error in the production process of the integrated circuit. Summary of the invention

[0003] Based on this, a method, device, computer equipment and storage medium for managing key error logs when the integrated circuit is powered on are provided, which can solve the technical problem that the current integrated circuit power-on process is relatively short, and when the error log is stored in a volatile storage medium, the error log in the volatile storage medium will be erased when the integrated circuit is powered on and restarted, resulting in the inability to obtain the key error log when the integrated circuit is powered on, resulting in the inability to accurately identify the integrated circuit fault error, resulting in the extension of the period for locating the cause of the error in the production process of the integrated circuit.

[0004] In one aspect, a method for managing a critical error log on power-on of an integrated circuit is provided, the method comprising:

[0005] When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0006] Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0007] Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0008] Analyze the cause of the error based on the error code and print information in the key error log.

[0009] In one embodiment, the integrated circuit power-on critical error log management method further includes:

[0010] Re-burning the firmware in the integrated circuit in the serial port mass production mode according to the cause of the error to form a new firmware;

[0011] After the new firmware is burned, the integrated circuit is powered on again and the new firmware is loaded.

[0012] In one embodiment, re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware includes:

[0013] identifying a location where an error occurs in the firmware according to the cause of the error;

[0014] Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division;

[0015] Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code;

[0016] Obtaining a correction code and a correction position for correcting the cause of the error;

[0017] In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware;

[0018] Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process;

[0019] In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory;

[0020] In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

[0021] In one embodiment, the reading of the critical error log stored in the volatile memory further includes:

[0022] After the integrated circuit is powered on, the critical error log is output through a serial port, and at the same time, the critical error log is stored in a cache array of a fixed size.

[0023] In one of the embodiments, after storing the critical error log in a fixed-size cache array, the method further includes:

[0024] Determining whether an error occurs when the integrated circuit is powered on;

[0025] When an error occurs when the integrated circuit is powered on, the critical error log is obtained by accessing the cache array.

[0026] In one embodiment, the reading of the critical error log stored in the volatile memory further includes:

[0027] The key error log is printed, and the problem description and solution related to the error code are obtained by comparing the information in the key error log with the content of the technical document.

[0028] In one embodiment, the integrated circuit power-on critical error log management method further includes:

[0029] When the integrated circuit enters the serial port mass production mode, the central processor powered on the integrated circuit is obtained, and the clock frequency of the central processor is reduced through the power consumption management unit to put the central processor into a low power consumption state.

[0030] In another aspect, a device for managing a critical power-on error log of an integrated circuit is provided, the device comprising:

[0031] A firmware loading detection module, for determining the location and type of an error in the firmware in response to detecting an error in the firmware loading process after the integrated circuit is powered on;

[0032] An error log storage module, used to generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0033] An error log reading module, used to control the integrated circuit to remain in a powered-on state, enter a serial port mass production mode, input an error log loading command, and read the critical error log stored in the volatile memory;

[0034] The error cause analysis module is used to analyze the error cause according to the error code and print information in the key error log.

[0035] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0036] When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0037] Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0038] Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0039] Analyze the cause of the error based on the error code and print information in the key error log.

[0040] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0041] When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0042] Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0043] Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0044] Analyze the cause of the error based on the error code and print information in the key error log.

[0045] The above-mentioned integrated circuit power-on critical error log management method, device, computer equipment and storage medium, by controlling the integrated circuit to remain in a powered-on state when an error occurs in the firmware of the integrated circuit, thereby achieving the storage of the critical error log in a volatile memory without causing the integrated circuit to be powered off and cleared. After the integrated circuit enters the serial port mass production mode, the critical error log stored in the volatile memory can be read by inputting an error log loading command, which can avoid the inability to accurately identify integrated circuit fault errors and can quickly locate the cause of the error in the integrated circuit production process. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 This is an application environment diagram of a method for managing a critical error log on power-on of an integrated circuit in one embodiment of the present application;

[0048] Figure 2 A flowchart of a method for managing a critical error log on an integrated circuit in accordance with an embodiment of the present application;

[0049] Figure 3 A logic diagram of a method for managing a critical error log on an integrated circuit in one embodiment of the present application;

[0050] Figure 4 A schematic diagram of a structure in which a key error log is stored in a volatile memory in one embodiment of the present application;

[0051] Figure 5 This is a structural block diagram of a device for managing critical power-on errors in an integrated circuit in an embodiment of the present application;

[0052] Figure 6 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The integrated circuit power-on critical error log management method provided in this application can be applied to Figure 1 In the application environment shown. The integrated circuit 20 communicates with the server 10 through a network or a cable. The integrated circuit 20 is applicable to various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 10 can be implemented as an independent server or a server cluster composed of multiple servers. The server 10 is used to burn the firmware of the integrated circuit 20.

[0055] In one embodiment, Figure 2 , Figure 3 As shown, a method for managing critical error logs on power-on integrated circuits is provided. The method is applied to Figure 1 The server 10 in the example is used as an example to illustrate, and the following steps are included:

[0056] Step S1, after the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0057] Step S2, generating print information based on the location and type of the error, returning a corresponding error code based on the error type, and storing the error code and the print information as a key error log in a volatile memory;

[0058] Step S3, controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0059] Step S4, analyzing the cause of the error according to the error code and print information in the key error log.

[0060] This embodiment controls the integrated circuit to remain powered on when an error occurs in the firmware of the integrated circuit, thereby storing the critical error log in the volatile memory without causing the integrated circuit to be powered off and cleared. After the integrated circuit enters the serial port mass production mode, the critical error log stored in the volatile memory can be read by inputting the error log loading command, which can avoid the inability to accurately identify the integrated circuit failure error and can quickly locate the cause of the error in the integrated circuit production process.

[0061] First, before the integrated circuit is powered on, the source code written by the firmware developer is used by the compiler to generate a binary file suitable for the target hardware platform. Only after the integrated circuit is powered on can it be correctly loaded and executed by the target device.

[0062] During the execution of the bootloader, there will be a specified power-on loading process, including obtaining the version information stored in the firmware, checking the correctness and integrity of the firmware (FW), etc. When one of the processes fails, the bootloader will enter the error handling process stage, print the error type, return a preset error code, and store the key error code and print information as a key error log in a volatile memory, that is, the previous error log will no longer be saved after restarting the power-on. After the bootloader fails to load the firmware, it will automatically enter the mass production mode of the serial port command and manually erase the firmware that failed to power on. If no serial port was connected in the previous firmware loading process, no print information can be seen. At this time, in the serial port mass production mode, you can enter the serial port command to read the memory stored in the error log and reprint the error log, including the error print of the failed loading and the corresponding error code, so that the developer can locate the cause of the error without connecting the serial port and restarting to view the error information before powering on.

[0063] The storage method and storage content of the error log after the integrated circuit is powered on are as follows Figure 4 The process of entering the error handling and loading the error log after the IC is powered on is as follows Figure 3 An integrated circuit is also called an integrated circuit or a processor core.

[0064] like Figure 2 , Figure 3 As shown, in this embodiment, the integrated circuit power-on critical error log management method further includes:

[0065] Step S5, re-burning the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware;

[0066] Step S6, when the new firmware is burned, the integrated circuit is powered on again and the new firmware is loaded.

[0067] Modify the firmware to be loaded and re-burn the firmware in serial port mass production mode. Since the error log contains the error cause and error location, you can use the automatic burning tool to obtain the erase offset address and size in the log, enter the firmware location or configure it to the correct attribute to complete the firmware update.

[0068] In this embodiment, re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware includes:

[0069] identifying a location where an error occurs in the firmware according to the cause of the error;

[0070] Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division;

[0071] Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code;

[0072] Obtaining a correction code and a correction position for correcting the cause of the error;

[0073] In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware;

[0074] Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process;

[0075] In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory;

[0076] In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

[0077] The error code is a unique identifier that corresponds to a specific error type or problem. By consulting the technical documentation provided by the developer, or entering a specified help command in serial port mass production mode, the user can quickly find the specific problem description and possible solutions related to the error code. By comprehensively analyzing these error log information, the developer can have a comprehensive understanding of the problems encountered during the startup of the integrated circuit and take appropriate measures to repair or optimize them. This is essential to ensure the reliability and stability of the integrated circuit.

[0078] like Figure 2 , Figure 3 As shown, in this embodiment, the reading of the critical error log stored in the volatile memory also includes:

[0079] Step S7, after the integrated circuit is powered on, the critical error log is output through the serial port, and the critical error log is stored in a cache array of a fixed size.

[0080] like Figure 2 , Figure 3 As shown, in this embodiment, after storing the critical error log in a cache array of a fixed size, the method further includes:

[0081] Step S8, determining whether an error occurs when the integrated circuit is powered on; when an error occurs when the integrated circuit is powered on, obtaining the key error log by accessing the cache array.

[0082] After the integrated circuit is powered on, all important printing information is output through the serial port and stored in a fixed-size cache array. When an error occurs when the integrated circuit is powered on, the computer can retrieve the error log by accessing the cache array.

[0083] like Figure 2 , Figure 3 As shown, in this embodiment, the reading of the critical error log stored in the volatile memory also includes:

[0084] Step S9: Print the key error log, and obtain the problem description and solution related to the error code by comparing the information in the key error log with the content of the technical document.

[0085] The error log load command reads the error code and related printed information from memory and reprints the information so that the user can view it. If there is enough memory space, the command can also provide a parsing description of the error code, so that the user can understand the specific cause of the error directly from the printed information without consulting the manual. Once the cause of the error is determined, the developer needs to make corresponding modifications to the firmware based on the error cause obtained. This may include fixing errors in the code, optimizing performance, or enhancing system stability.

[0086] Through the error code and analysis instructions provided by the error log load command, users can conduct in-depth analysis of the cause of the error. This helps determine whether the firmware code needs to be modified, or whether other forms of hardware or software adjustments are required. After the error log is generated, the volatile memory (FLASH) at the location where the error occurred can be erased and burned according to the error cause in the error log and the location where the error occurred recorded in the log, reducing the number of full disk erases and extending the service life of the FLASH to a certain extent.

[0087] In this embodiment, the integrated circuit power-on critical error log management method further includes:

[0088] After the integrated circuit is powered on, determining whether an error is detected in the firmware loading process, and if no error is detected in the firmware loading process, determining whether the integrated circuit has a preset function;

[0089] If the integrated circuit does not have the preset function, it is determined that the version of the firmware uploaded is wrong;

[0090] The correct version of the firmware for implementing the preset function of the integrated circuit is re-acquired, and the firmware is erased according to the offset address of the error location in the critical error log, and then the correct version of the firmware is written.

[0091] The user can locate the cause of the error through the error code and print information. The computer can determine the cause by reading the error code. For example, if it is identified as incorrect version upload, it can start erasing and rewriting the correct version according to the offset address of the error location printed in the error log and the size of the firmware here; if it is identified as the configured NAND type is inconsistent with the actual one, it can be erased and rewritten according to the offset address of the error location in the FLASH and the size of the firmware here printed in the error log.

[0092] like Figure 2 , Figure 3 As shown, in this embodiment, the integrated circuit power-on critical error log management method further includes:

[0093] Step S10, when the integrated circuit enters the serial port mass production mode, the central processing unit powered on by the integrated circuit is obtained, and the clock frequency of the central processing unit is reduced through the power consumption management unit to put the central processing unit into a low power consumption state.

[0094] After entering the error handling process, it is necessary to ensure that the voltage of the integrated circuit is stable and the power consumption is minimized during the bootload process of error handling. Since only one CPU is needed to control the power-on of the integrated circuit, in a multi-core processor, other cores can reduce the CPU clock frequency through the power management unit and put it in a low-power state. Other peripheral modules can also reduce the peripheral clock frequency or directly disable it when not needed.

[0095] Through detailed error handling and log loading processes, IC manufacturers and developers can effectively diagnose and solve problems encountered during the power-on process, thereby improving product quality and user satisfaction.

[0096] In the above-mentioned integrated circuit power-on critical error log management method, when an error occurs in the firmware of the integrated circuit, the integrated circuit is controlled to remain in a powered-on state, so that the critical error log is stored in a volatile memory without causing the integrated circuit to be powered off and cleared. After the integrated circuit enters the serial port mass production mode, the critical error log stored in the volatile memory can be read by inputting an error log loading command, which can avoid the inability to accurately identify integrated circuit fault errors and can quickly locate the cause of the error in the integrated circuit production process.

[0097] The present invention can quickly identify the specific error type that occurs by generating and recording error codes during the power-on loading process of the integrated circuit, thereby speeding up the problem location. The last printed information before the error occurs contained in the error log provides developers with detailed information on the state of the integrated circuit and the operations performed before the error occurs, which helps to understand the background and possible causes of the error. Improve the reliability and stability of the system: By comprehensively analyzing the error log information, developers can fully understand the problems encountered during the startup of the integrated circuit and take corresponding measures to repair or optimize them. Simplify the error handling process: The system automatically enters the serial port mass production mode, allowing users to read and print error logs through serial port commands, simplifying the error handling process, and even if the serial port is not connected in the early stage, error information can be obtained by inputting commands. The error log can be read and analyzed quickly, which speeds up the diagnosis and resolution of problems in the production process and improves production efficiency.

[0098] In one embodiment, Figure 5 As shown, a device 10 for managing power-on critical error logs of integrated circuits is provided, comprising: a firmware loading detection module 1, an error log storage module 2, an error log reading module 3, and an error cause analysis module 4.

[0099] The firmware loading detection module 1 is used to determine the location and type of the error in the firmware in response to detecting an error in the firmware loading process after the integrated circuit is powered on.

[0100] The error log storage module 2 is used to generate print information based on the location and type of error, return a corresponding error code according to the error type, and store the error code and the print information as a key error log in a volatile memory.

[0101] The error log reading module 3 is used to control the integrated circuit to remain in a powered-on state, enter a serial port mass production mode, input an error log loading command, and read the critical error log stored in the volatile memory.

[0102] The error cause analysis module 4 is used to analyze the error cause according to the error code and print information in the key error log.

[0103] In this embodiment, if Figure 5 As shown, the integrated circuit power-on critical error log management device 10 also includes: an error correction module 5.

[0104] The error correction module 5 is used to re-burn the firmware in the integrated circuit in the serial port mass production mode according to the cause of the error to form a new firmware; after the burning of the new firmware is completed, the integrated circuit is powered on again and the new firmware is loaded.

[0105] In this embodiment, re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware includes:

[0106] identifying a location where an error occurs in the firmware according to the cause of the error;

[0107] Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division;

[0108] Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code;

[0109] Obtaining a correction code and a correction position for correcting the cause of the error;

[0110] In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware;

[0111] Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process;

[0112] In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory;

[0113] In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

[0114] In this embodiment, the reading of the critical error log stored in the volatile memory further includes:

[0115] After the integrated circuit is powered on, the critical error log is output through a serial port, and at the same time, the critical error log is stored in a cache array of a fixed size.

[0116] In this embodiment, after storing the critical error log in a cache array of a fixed size, the method further includes:

[0117] Determining whether an error occurs when the integrated circuit is powered on;

[0118] When an error occurs when the integrated circuit is powered on, the critical error log is obtained by accessing the cache array.

[0119] In this embodiment, the reading of the critical error log stored in the volatile memory further includes:

[0120] The key error log is printed, and the problem description and solution related to the error code are obtained by comparing the information in the key error log with the content of the technical document.

[0121] In this embodiment, if Figure 5 As shown, the integrated circuit power-on critical error log management device 10 also includes: a power consumption control module 6.

[0122] The power consumption control module 6 is used to obtain the central processing unit powered on the integrated circuit when the integrated circuit enters the serial port mass production mode, and reduce the clock frequency of the central processing unit through the power consumption management unit to put the central processing unit into a low power consumption state.

[0123] In the above-mentioned integrated circuit power-on critical error log management device, when an error occurs in the firmware of the integrated circuit, the integrated circuit is controlled to remain in a powered-on state, so that the critical error log is stored in a volatile memory without causing the integrated circuit to be powered off and cleared. After the integrated circuit enters the serial port mass production mode, the critical error log stored in the volatile memory can be read by inputting an error log loading command, which can avoid the inability to accurately identify the integrated circuit failure error and can quickly locate the cause of the error in the integrated circuit production process.

[0124] For the specific definition of the power-on critical error log management device on an integrated circuit, please refer to the definition of the power-on critical error log management method on an integrated circuit in the above text, which will not be repeated here. Each module in the above-mentioned power-on critical error log management device on an integrated circuit can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0125] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0126] When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0127] Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0128] Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0129] Analyze the cause of the error based on the error code and print information in the key error log.

[0130] In one embodiment, the computer program further implements the following steps when executed by a processor:

[0131] Re-burning the firmware in the integrated circuit in the serial port mass production mode according to the cause of the error to form a new firmware;

[0132] After the new firmware is burned, the integrated circuit is powered on again and the new firmware is loaded.

[0133] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0134] The re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware comprises:

[0135] identifying a location where an error occurs in the firmware according to the cause of the error;

[0136] Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division;

[0137] Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code;

[0138] Obtaining a correction code and a correction position for correcting the cause of the error;

[0139] In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware;

[0140] Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process;

[0141] In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory;

[0142] In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

[0143] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0144] The process further includes: reading the critical error log stored in the volatile memory;

[0145] After the integrated circuit is powered on, the critical error log is output through a serial port, and at the same time, the critical error log is stored in a cache array of a fixed size.

[0146] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0147] After storing the critical error log in a fixed-size cache array, the method further includes:

[0148] Determining whether an error occurs when the integrated circuit is powered on;

[0149] When an error occurs when the integrated circuit is powered on, the critical error log is obtained by accessing the cache array.

[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0151] The process further includes: reading the critical error log stored in the volatile memory;

[0152] The key error log is printed, and the problem description and solution related to the error code are obtained by comparing the information in the key error log with the content of the technical document.

[0153] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0154] When the integrated circuit enters the serial port mass production mode, the central processor powered on the integrated circuit is obtained, and the clock frequency of the central processor is reduced through the power consumption management unit to put the central processor into a low power consumption state.

[0155] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for managing power-on critical error logs on integrated circuits, which will not be repeated here.

[0156] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store power-on critical error log management data on the integrated circuit. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power-on critical error log management method for an integrated circuit is implemented.

[0157] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0158] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0159] When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0160] Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0161] Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0162] Analyze the cause of the error based on the error code and print information in the key error log.

[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0164] Re-burning the firmware in the integrated circuit in the serial port mass production mode according to the cause of the error to form a new firmware;

[0165] After the new firmware is burned, the integrated circuit is powered on again and the new firmware is loaded.

[0166] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0167] The re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware comprises:

[0168] identifying a location where an error occurs in the firmware according to the cause of the error;

[0169] Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division;

[0170] Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code;

[0171] Obtaining a correction code and a correction position for correcting the cause of the error;

[0172] In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware;

[0173] Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process;

[0174] In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory;

[0175] In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

[0176] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0177] The process further includes: reading the critical error log stored in the volatile memory;

[0178] After the integrated circuit is powered on, the critical error log is output through a serial port, and at the same time, the critical error log is stored in a cache array of a fixed size.

[0179] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0180] After storing the critical error log in a fixed-size cache array, the method further includes:

[0181] Determining whether an error occurs when the integrated circuit is powered on;

[0182] When an error occurs when the integrated circuit is powered on, the critical error log is obtained by accessing the cache array.

[0183] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0184] The process further includes: reading the critical error log stored in the volatile memory;

[0185] The key error log is printed, and the problem description and solution related to the error code are obtained by comparing the information in the key error log with the content of the technical document.

[0186] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0187] When the integrated circuit enters the serial port mass production mode, the central processor powered on the integrated circuit is obtained, and the clock frequency of the central processor is reduced through the power consumption management unit to put the central processor into a low power consumption state.

[0188] For the specific limitations on the steps implemented when the processor executes a computer program, please refer to the limitations on the method for managing power-on critical error logs on integrated circuits mentioned above, which will not be repeated here.

[0189] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0190] When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware;

[0191] Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory;

[0192] Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory;

[0193] Analyze the cause of the error based on the error code and print information in the key error log.

[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0195] Re-burning the firmware in the integrated circuit in the serial port mass production mode according to the cause of the error to form a new firmware;

[0196] After the new firmware is burned, the integrated circuit is powered on again and the new firmware is loaded.

[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0198] The re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware comprises:

[0199] identifying a location where an error occurs in the firmware according to the cause of the error;

[0200] Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division;

[0201] Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code;

[0202] Obtaining a correction code and a correction position for correcting the cause of the error;

[0203] In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware;

[0204] Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process;

[0205] In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory;

[0206] In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

[0207] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0208] The process further includes: reading the critical error log stored in the volatile memory;

[0209] After the integrated circuit is powered on, the critical error log is output through a serial port, and at the same time, the critical error log is stored in a cache array of a fixed size.

[0210] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0211] After storing the critical error log in a fixed-size cache array, the method further includes:

[0212] Determining whether an error occurs when the integrated circuit is powered on;

[0213] When an error occurs when the integrated circuit is powered on, the critical error log is obtained by accessing the cache array.

[0214] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0215] The process further includes: reading the critical error log stored in the volatile memory;

[0216] The key error log is printed, and the problem description and solution related to the error code are obtained by comparing the information in the key error log with the content of the technical document.

[0217] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0218] When the integrated circuit enters the serial port mass production mode, the central processor powered on the integrated circuit is obtained, and the clock frequency of the central processor is reduced through the power consumption management unit to put the central processor into a low power consumption state.

[0219] For the specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for managing power-on critical error logs on integrated circuits, which will not be repeated here.

[0220] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0221] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0222] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for managing critical power-on error logs of integrated circuits, characterized in that: include: When the integrated circuit is powered on, in response to detecting an error in the firmware loading process, determining the location and type of the error in the firmware; Generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory; Controlling the integrated circuit to remain in a powered-on state, entering a serial port mass production mode, inputting an error log loading command, and reading the critical error log stored in the volatile memory; Analyze the cause of the error based on the error code and print information in the key error log.

2. The integrated circuit power-on critical error log management method according to claim 1, characterized in that: The integrated circuit power-on critical error log management method further includes: Re-burning the firmware in the integrated circuit in the serial port mass production mode according to the cause of the error to form a new firmware; After the new firmware is burned, the integrated circuit is powered on again and the new firmware is loaded.

3. The integrated circuit power-on critical error log management method according to claim 2, characterized in that: The re-writing the firmware in the integrated circuit in the serial port mass production mode according to the error cause to form a new firmware comprises: identifying a location where an error occurs in the firmware according to the cause of the error; Identify the code function in the firmware based on the location where the error occurs in the firmware, and identify the error code that causes the error in the firmware according to the functional division; Find a corresponding solution according to the error code, and correct the error code according to the solution to form a corrected code; Obtaining a correction code and a correction position for correcting the cause of the error; In the serial port mass production mode, the correction code is used to erase the error code of the correction position of the firmware, and the correction code is re-burned to form a new firmware; Controlling the integrated circuit to restart, re-detecting the correctness of the new firmware, and determining whether an error is detected in the new firmware loading process; In response to detecting an error in the new firmware loading process, determining the location and type of the error in the firmware, generating a new critical error log and storing it in a volatile memory; In response to detecting that no error occurs during the new firmware loading process, the integrated circuit is controlled to exit the serial port mass production mode.

4. The integrated circuit power-on critical error log management method according to claim 1, characterized in that: The process further includes: reading the critical error log stored in the volatile memory; After the integrated circuit is powered on, the critical error log is output through a serial port, and at the same time, the critical error log is stored in a cache array of a fixed size.

5. The integrated circuit power-on critical error log management method according to claim 4, characterized in that: After storing the critical error log in a fixed-size cache array, the method further includes: Determining whether an error occurs when the integrated circuit is powered on; When an error occurs when the integrated circuit is powered on, the critical error log is obtained by accessing the cache array.

6. The integrated circuit power-on critical error log management method according to claim 1, characterized in that: The process further includes: reading the critical error log stored in the volatile memory; The key error log is printed, and the problem description and solution related to the error code are obtained by comparing the information in the key error log with the content of the technical document.

7. The integrated circuit power-on critical error log management method according to claim 1, characterized in that: The integrated circuit power-on critical error log management method further includes: When the integrated circuit enters the serial port mass production mode, the central processor powered on the integrated circuit is obtained, and the clock frequency of the central processor is reduced through the power consumption management unit to put the central processor into a low power consumption state.

8. An integrated circuit power-on critical error log management device, characterized in that: The device comprises: A firmware loading detection module, for determining the location and type of an error in the firmware in response to detecting an error in the firmware loading process after the integrated circuit is powered on; An error log storage module, used to generate print information based on the location and type of error, return a corresponding error code based on the error type, and store the error code and the print information as a key error log in a volatile memory; An error log reading module, used to control the integrated circuit to remain in a powered-on state, enter a serial port mass production mode, input an error log loading command, and read the critical error log stored in the volatile memory; The error cause analysis module is used to analyze the error cause according to the error code and print information in the key error log.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.