Abnormal information processing method and device, equipment, medium and product
By establishing a communication connection with the first device and calling the FDL1 program, the problem of difficulty in deriveing exception information of the chip internal startup program is solved, and efficient exception information output and simplified troubleshooting process are realized.
Patent Information
- Application Number
- CN202411473258.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-11
AI Technical Summary
It is difficult to export abnormal information of the chip startup program, which makes it difficult to troubleshoot. The process of connecting the Debug serial port to JTAG is time-consuming and laborious and highly destructive.
By establishing a communication connection with the first device and calling the first level download FDL1 program, the exception indication information and the exception information of the startup process are sent to the first device, thereby achieving efficient export of the exception information.
It improves the output efficiency of abnormal information of the chip startup program, simplifies the troubleshooting process, and reduces the risk of damage to the terminal device hardware.
Smart Images

Figure CN119415299A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to communication technology, and in particular to an abnormal information processing method, device, equipment, medium and product. Background Art
[0002] The internal boot program (BootRom) of the chip is fixed in the non-erasable storage medium, and its operation logic cannot be changed. Due to factors such as chip yield, the operation of the internal boot program of the chip may also have problems, resulting in the failure of the terminal device to start up during the internal startup phase of the chip. Since the internal boot program of the chip cannot be changed after the chip leaves the factory, the storage medium has very small storage space for chip area and cost considerations, requiring the stored program to be short and efficient. Therefore, the fault testing capability of BootRom is relatively weak, making it difficult to troubleshoot faults (Debug) during the program operation phase.
[0003] Locating hardware faults based on program logs is the most intuitive way to solve problems. Currently, the internal startup phase of the chip mainly outputs logs through the Debug serial port or accesses the memory address through the Joint Test Action Group (JTAG) Debug method to obtain saved logs, so as to obtain abnormal information of the internal startup program of the chip.
[0004] However, the Debug serial port and JTAG connection are not often brought out. Generally, it is necessary to disassemble the shell of the terminal device and connect the flying wires to the functional pins of the corresponding module. Not only is the connection process time-consuming and laborious, but it is also destructive to the hardware of the terminal device. Therefore, it is urgent for those skilled in the art to realize a more efficient solution for exporting abnormal information of the internal startup program of the chip. Summary of the invention
[0005] The present application provides an exception information processing method, device, equipment, medium and product to solve the problem of difficulty in exporting exception information of a startup program inside a chip.
[0006] In a first aspect, the present application provides a method for processing abnormal information, comprising:
[0007] When an exception occurs in the startup process of the startup program inside the chip, a communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations:
[0008] Sending abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command;
[0009] Receiving an exception information export command sent by the first device;
[0010] According to the exception information export command, the exception information of the startup process is sent to the first device.
[0011] In a possible implementation manner, establishing a communication connection with the first device includes:
[0012] By simulating the download process of the internal startup program of the chip, the USB initialization and communication command registration of the universal serial bus are performed;
[0013] Receiving information of the communication port sent by the first device;
[0014] A communication connection is established with the first device according to the communication port.
[0015] In a possible implementation manner, the sending abnormal indication information to the first device includes:
[0016] Generate the first data packet according to a preset first format; the first data packet includes: an error code in a preset format; the error code is used by the first device to send an abnormal information export command;
[0017] Send the first data packet to the first device.
[0018] In a possible implementation, the first data packet further includes: a version number; the version number is used to identify a format version of a command for communicating with the first device.
[0019] In a possible implementation, the sending, according to the exception information export command, the exception information of the startup process to the first device includes:
[0020] According to the abnormal information export command, the abnormal information is obtained from a preset storage space;
[0021] Generate a second data packet according to the preset second format and the abnormal information;
[0022] Send the second data packet to the first device.
[0023] In a possible implementation manner, before establishing a communication connection with the first device, the method further includes:
[0024] If the memory initialization is completed, the abnormal information is stored in the memory; the abnormal information is output to the second device through the USB interface, or the communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations;
[0025] If the memory initialization fails, the steps of establishing a communication connection with the first device and calling the first level download FDL1 program to perform the following operations are executed.
[0026] In a possible implementation, the method further includes:
[0027] If no connection is established with the first device, restart after the preset timer expires.
[0028] In a second aspect, the present application provides an abnormal information processing device, comprising:
[0029] A communication establishing module, used to establish a communication connection with the first device when an abnormality occurs in the startup process of the startup program inside the chip;
[0030] The processing module is used to call the first-level download FDL1 program to perform the following operations:
[0031] Sending abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command;
[0032] Receiving an exception information export command sent by the first device;
[0033] According to the exception information export command, the exception information of the startup process is sent to the first device.
[0034] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0035] The memory stores computer-executable instructions;
[0036] The processor executes the computer-executable instructions stored in the memory to implement the startup method of the terminal device as described in the first aspect.
[0037] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a computer, they are used to implement the abnormal information processing method as described in the first aspect.
[0038] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a computer, is used to implement the abnormal information processing method described in the first aspect.
[0039] In a sixth aspect, an embodiment of the present application provides a chip having a computer program stored thereon, wherein when the computer program is executed by the chip, the abnormal information processing method described in the first aspect is executed.
[0040] In a possible implementation, the chip is a chip in a chip module.
[0041] In a seventh aspect, an embodiment of the present application provides a module device, wherein the module device includes a power module, a storage module, and a chip module;
[0042] Wherein, the power supply module is used to provide electrical energy to the module device;
[0043] The storage module is used to store data and instructions;
[0044] The chip module is used to execute the abnormal information processing method described in the first aspect.
[0045] The exception information processing method, apparatus, equipment, medium and product provided in the present application, when an exception occurs in the startup process of the startup program inside the chip, establishes a communication connection with the first device, and calls the first-level download FDL1 program to execute the operation of sending exception indication information to the first device and sending exception information of the startup process, thereby realizing the export of exception information of the startup process. Since the FDL1 program is simple to implement and easy to obtain, the efficiency of exporting exception information of the startup process is high. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0047] Figure 1 A flowchart of an abnormal information processing method provided in an embodiment of the present application;
[0048] Figure 2 A flowchart of another abnormal information processing method provided in an embodiment of the present application;
[0049] Figure 3 A flowchart of another abnormal information processing method provided in an embodiment of the present application;
[0050] Figure 4 A schematic diagram of the structure of an abnormal information processing device provided in an embodiment of the present application;
[0051] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0052] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] In this application, "exemplary", "in some embodiments", "in other embodiments", etc. are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "exemplary" is intended to present concepts in a concrete way.
[0055] First, the terms involved in this application are explained:
[0056] BootRom: The internal startup code of the chip, which is fixed in the read-only memory (ROM) when the chip leaves the factory.
[0057] Internal Random Access Memory (IRAM), internal storage data is temporary.
[0058] The first level downloader (File Download Loader 1, FDL1) program completes DDR initialization and FDL2 download.
[0059] The second-stage loader (Secondary Program Loader, SPL) completes DDR initialization and loading of the next-level startup program. It shares the same warehouse with FDL1 but not the same image.
[0060] Universal Serial Bus (USB): A technical specification for input and output interfaces that is widely used in personal computers, mobile devices and other products.
[0061] The application scenario of the embodiment of the present application may be a scenario where an electronic device is started and operated, and the electronic device may be a terminal device or a network device, and the terminal device may be a wireless terminal or a wired terminal. The terminal device may also be referred to as user equipment (UE), access terminal, remote terminal, mobile device, user terminal, etc.
[0062] For example, the terminal device can be a handheld device with a wireless connection function, a vehicle-mounted device, etc. At present, some examples of terminals can be: mobile phones, tablet computers, computers with wireless transceiver functions (such as laptops, PDAs, etc.), mobile Internet devices (Mobile Internet Device, MID), virtual reality (Virtual Reality, VR) devices, augmented reality (Augmented Reality, AR) devices, extended reality (Extended Reality, XR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, personal digital assistants (PDAs), wireless terminals in smart cities, wireless terminals in smart homes, and wireless terminals in smart cities. Assistant, PDA), handheld devices with wireless communication function, computing devices or other processing devices connected to a wireless modem, vehicle-mounted devices, wearable devices, terminal devices in 5G networks, or terminal devices in future evolved public land mobile communication networks (Public Land Mobile Network, PLMN), etc.
[0063] For example, the network device may be an access network device in a communication system. Optionally, the communication system may be applicable to different network standards, for example, it may be applicable to Global System of Mobilecommunication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division-Synchronous Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE) system and future 5G and other network standards. Optionally, the above communication system may be a system in a scenario of Ultra-Reliable and Low Latency Communications (URLLC) transmission in a 5G communication system.
[0064] Therefore, optionally, the above-mentioned base station can be a base station (Base Transceiver Station, referred to as BTS) and / or a base station controller in GSM or CDMA, or a base station (NodeB, referred to as NB) and / or a radio network controller (Radio Network Controller, referred to as RNC) in WCDMA, or an evolved base station (EvolutionalNode B, referred to as eNB or eNodeB) in LTE, or a relay station or access point, or a base station (gNB) in the future 5G network, etc., and the present application is not limited here.
[0065] At present, the internal startup stage of the chip mainly outputs logs through the Debug serial port or accesses the memory address to obtain the saved logs through the Joint Test Action Group (JTAG) Debug method to obtain abnormal information of the internal startup program of the chip.
[0066] However, the Debug serial port and JTAG connection are not often brought out. Generally, it is necessary to disassemble the shell of the terminal device and connect the flying wires to the functional pins of the corresponding module. Not only is the connection process time-consuming and labor-intensive, but it is also destructive to the hardware of the terminal device. Moreover, the non-volatile memory cannot save the Debug information when its module is abnormal.
[0067] Therefore, the present application provides a method for processing abnormal information, which uses a simple FDL1 program to send abnormal indication information to the first device and sends abnormal information of the startup process, thereby improving the efficiency of abnormal information output.
[0068] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments may exist independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0069] Figure 1 A flowchart of an abnormal information processing method provided in an embodiment of the present application is provided. The method can be executed by an electronic device or by an abnormal information processing device set in an electronic device. The device can be a chip or a chip module, etc. The electronic device can be a terminal device or a network device (such as a base station). The following is an example of a terminal device for explanation. Figure 1 , the method comprises the following steps:
[0070] S101. When an exception occurs in the startup process of the startup program inside the chip, a communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations: S102-S104.
[0071] The operation of the chip's internal startup program BootRom is divided into two processes: download process or startup process. The download process includes: downloading FDL1 program, running FDL1 program, downloading the second-level download FDL2 program, etc. The startup process includes loading and running SPL, etc.
[0072] When an exception occurs in the boot process of BootRom, that is, an exception occurs in the stage of loading and running SPL, a communication connection is established with the first device, which can be the device where the PC tool is located. The PC tool can be used to interact with BootRom to download FDL1 and FDL2.
[0073] S102: Send abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command.
[0074] After establishing a communication connection with the first device, abnormal indication information is sent to the first device. After receiving the abnormal indication information, the first device returns an abnormal information export command, so that the abnormal information of the startup process can be exported.
[0075] S103: Receive an exception information export command sent by the first device.
[0076] S104. Send abnormal information of the startup process to the first device according to the abnormal information export command.
[0077] Exemplarily, the exception information export command may be called a CMD_DEBUG_DUMP command.
[0078] The terminal device receives the exception information export command sent by the first device, and sends exception information of the startup process to the first device according to the exception information export command.
[0079] Optionally, the exception information may include recorded exception information obtained from a preset storage space, and may also include information of some registers.
[0080] In this embodiment, when an exception occurs in the startup process of the startup program inside the chip, a communication connection is established with the first device, and the first-level download FDL1 program is called to execute the operation of sending exception indication information to the first device and sending exception information of the startup process, thereby realizing the export of exception information of the startup process. Since the FDL1 program is simple to implement and easy to obtain, the efficiency of exporting exception information of the startup process is high.
[0081] In a possible implementation, establishing a communication connection with the first device in S101 includes:
[0082] By simulating the download process of the internal startup program of the chip, the USB initialization and communication command registration are executed;
[0083] Receiving information of the communication port sent by the first device;
[0084] A communication connection is established with the first device according to the communication port.
[0085] Specifically, after the SPL exception occurs, the download process of the startup program inside the simulated chip is simulated to complete the USB driver and port initialization and communication command registration, and then wait for the communication port information returned by the first device and establish a communication connection.
[0086] In order to meet the requirements of minimal changes to the framework and PC tools of the reused download process, the terminal must first simulate the interaction between BootRom and the first device. During the command interaction process in this stage, the terminal defaults to success and does not perform any operation. After transitioning to the next stage FDL1 operation process, the terminal responds to the exception information export command of the first device, outputs the exception information, and completes the interaction.
[0087] In the above implementation, by simulating the download process of the internal startup program of the chip, executing the USB initialization and communication command registration, and establishing a communication connection with the first device, there is no need to change the existing interaction process with the first device, so the implementation complexity is low and the efficiency is high.
[0088] In a possible implementation manner, the first data packet further includes: a version number; the version number is used to identify a format version of a command for communicating with the first device.
[0089] Exemplarily, the terminal device sends a first data packet to the first device, such as the handshake packet format shown in Table 1, the length information is the length information of the first data packet, the version number is used to identify the format version of the communication command with the first device, and the error code is used to indicate abnormal indication information, which can adopt a preset format, and optionally, a more complex error code can be selected to avoid recognition errors. The handshake packet can be implemented in the form of a packet data packet.
[0090] Table 1 Terminal and PC tool handshake packet format
[0091] Packet header Length information Version Number Error code (fixed format) Packet tail
[0092] In a possible implementation, the sending the abnormal information of the startup process to the first device according to the abnormal information export command includes:
[0093] According to the abnormal information export command, the abnormal information is obtained from a preset storage space;
[0094] Generate a second data packet according to the preset second format and the abnormal information;
[0095] Send the second data packet to the first device.
[0096] Specifically, the abnormal information may be put into a second data packet in a preset second format and sent to the first device.
[0097] Exemplarily, a new command CMD_DEBUG_DUMP can be added to transmit exception information Debug Info, for example, using a second data packet in the format shown in Table 2. The field of the exception information can be of variable length to facilitate subsequent expansion of the information output type. The maximum length of the exception information depends on the programmable space margin of the chip. The length information in Table 2 represents the length information of the second data packet.
[0098] Table 2 Format of the package carrying Debug Info
[0099] Packet Header Length information Exception information (Debug Info) (variable length) Packet tail
[0100] In the above implementation, the second data packet carrying the abnormal information is generated by the FDL1 program using the preset second format and sent to the first device. The export process of the abnormal information is relatively simple and efficient.
[0101] In a possible implementation, when an exception occurs in the startup process of running the startup program inside the chip, a dot record is performed to record error log information.
[0102] In a possible embodiment, the error log information is stored in a fixed storage space set in a random access memory (RAM).
[0103] In a specific embodiment, during the running phase of the startup program inside the chip, one bit is used to record error log information of the program running, such as the location of the program error, to save log space.
[0104] In a possible implementation manner, before establishing a communication connection with the first device, the method further includes:
[0105] If the memory initialization is completed, the abnormal information is stored in the memory; the abnormal information is output to the second device through the USB interface, or the communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations;
[0106] If the memory initialization fails, the steps of establishing a communication connection with the first device and calling the first level download FDL1 program to perform the following operations are executed.
[0107] Exemplarily, if an exception occurs after the memory such as (DDR&Flash) is successfully initialized, the exception information is stored in the Flash. Optionally, USB output of exception information (Debug Info) can be supported, or the exception information can be output in the manner of steps S102-S104. If an exception occurs during the initialization of the memory such as (DDR&Flash), only USB Debug mode is supported to output the exception information, that is, the exception information is output in the manner of steps S102-S104.
[0108] In a possible implementation, the method further includes:
[0109] If no connection is established with the first device, restart after the preset timer expires.
[0110] Specifically, when an exception occurs in the startup process of the startup program inside the chip, if a connection with the first device is not established, the chip is restarted and retried after a preset timer times out.
[0111] In the above implementation, if the memory initialization has been completed, the exception information is stored in the memory; the exception information can be output in a variety of ways, such as outputting the exception information to the second device through a USB interface, or by calling the first-level download FDL1 program to execute the operation of sending exception indication information to the first device and sending the exception information of the startup process, so as to achieve the output of the exception information, which has greater flexibility and higher efficiency; if the memory initialization fails, the first-level download FDL1 program is called to execute the operation of sending exception indication information to the first device and sending the exception information of the startup process, so as to achieve the output of the exception information, which has higher efficiency.
[0112] Next, another method for starting a terminal device provided by the present application is described through another embodiment.
[0113] Figure 2 A flowchart of another abnormal information processing method provided in an embodiment of the present application is provided. Figure 2 , the method comprises the following steps:
[0114] S201, completing the early initialization process;
[0115] Optionally, turn on the watchdog timer;
[0116] S202, when a startup exception occurs, record the exception information, such as recording the program exception node;
[0117] S203, if DDR / Flash initialization has been completed, save the abnormal information to the Flash partition, and after saving, enter the USB Debug Dump process, i.e., steps S204-S2010;
[0118] S203, if DDR / Flash initialization fails, directly enter the USB Debug Dump process;
[0119] S204, executing USB initialization and communication command registration;
[0120] S205, if a communication connection is established with the PC tool of the first device before the watchdog times out, sending abnormal indication information, such as an error code, to the first device;
[0121] That is, the transmission of abnormal information (Debug information) is completed during the download process.
[0122] S206: Whether an abnormal information export command (such as a BSL_CMD_DEBUG_DUMP command) is received;
[0123] If yes, execute S207, output abnormal information; S208, execute shutdown / restart process.
[0124] If not, execute S209 and reply with a success response by default, that is, simulate the download process with the first device, interact with the first device, only reply with a success response, and do not perform any operation until the exception information export command is received.
[0125] S2010. If a communication connection with the PC tool cannot be established before the watchdog times out, a shutdown / restart process is executed after the watchdog times out.
[0126] Figure 3 A flowchart of another abnormal information processing method provided in an embodiment of the present application is provided. Figure 3 , the method comprises the following steps:
[0127] S31, the terminal connects to USB, USB initialization and communication command registration;
[0128] The user opens the PC tool of the first device, executes S32, initializes the PC tool, and generates a communication command;
[0129] S33, the terminal responds and enters the abnormal dump process;
[0130] S34, the terminal simulates the interaction between BootRom and PC tools, that is, simulates the download process.
[0131] S35. The first device responds.
[0132] S36. The terminal sends an error code to the first device (used to mark an abnormal dump process);
[0133] S37. The first device sends an exception information export command to the terminal.
[0134] S38. The terminal transmits abnormal information of the startup process to the first device.
[0135] S39. The PC tool obtains abnormal information and sends a shutdown / restart command to the terminal.
[0136] S40: The terminal returns a response to the first device and performs shutdown / restart, and the dump process ends.
[0137] S41. The first device displays the abnormal information to the user, that is, the user obtains the abnormal information.
[0138] Optionally, the first device may generate and save a file based on the exception information.
[0139] To sum up, the method of the embodiment of the present application implements SPL USB Debug by reusing the FDL1 framework code, uses the above FDL 1 framework code to complete USB initialization and communication command registration, and exports exception information (DebugInfo) through PC tools. This not only saves programming space, but also reduces the cost of the Debug process, and improves the maintenance and testing capabilities of the overall program.
[0140] Figure 4 This is a schematic diagram of the structure of an abnormal information processing device provided in an embodiment of the present application. Figure 4 The device includes: a communication establishing module 41 and a processing module 42.
[0141] The communication establishing module 41 is used to establish a communication connection with the first device when an abnormality occurs in the startup process of the startup program inside the chip;
[0142] The processing module 42 is used to call the first level download FDL1 program to perform the following operations:
[0143] Sending abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command;
[0144] Receiving an exception information export command sent by the first device;
[0145] According to the exception information export command, the exception information of the startup process is sent to the first device.
[0146] In a possible implementation, the communication establishing module 41 is specifically configured to:
[0147] By simulating the download process of the internal startup program of the chip, the USB initialization and communication command registration of the universal serial bus are performed;
[0148] Receiving information of the communication port sent by the first device;
[0149] A communication connection is established with the first device according to the communication port.
[0150] In a possible implementation, the processing module 42 is specifically configured to:
[0151] Generate the first data packet according to a preset first format; the first data packet includes: an error code in a preset format; the error code is used by the first device to send an abnormal information export command;
[0152] Send the first data packet to the first device.
[0153] In a possible implementation, the first data packet further includes: a version number; the version number is used to identify a format version of a command for communicating with the first device.
[0154] In a possible implementation, the processing module 42 is specifically configured to:
[0155] According to the abnormal information export command, the abnormal information is obtained from a preset storage space;
[0156] Generate a second data packet according to the preset second format and the abnormal information;
[0157] Send the second data packet to the first device.
[0158] In a possible implementation, the processing module 42 is further configured to:
[0159] Before establishing a communication connection with the first device, if the memory initialization has been completed, the abnormal information is stored in the memory; the abnormal information is output to the second device through the USB interface, or, the communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations;
[0160] If the memory initialization fails, the steps of establishing a communication connection with the first device and calling the first level download FDL1 program to perform the following operations are executed.
[0161] In a possible implementation, the processing module 42 is further configured to:
[0162] If no connection is established with the first device, restart after the preset timer expires.
[0163] The device of this embodiment can be used to execute the technical solution of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0164] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the electronic device may include: at least one processor 51 and a memory 52 .
[0165] The memory 52 is used to store programs. Specifically, the programs may include program codes, and the program codes include computer-executable instructions.
[0166] The memory 52 may include a random access memory (RAM), and may also include a non-volatile memory (Non-volatile Memory), such as at least one disk memory.
[0167] The processor 51 is used to execute the computer-executable instructions stored in the memory 52 to implement the method described in the above method embodiment. The processor 51 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0168] Optionally, the electronic device may further include: a communication interface 53. In a specific implementation, if the communication interface 53, the memory 52 and the processor 51 are implemented independently, the communication interface 53, the memory 52 and the processor 51 may be interconnected through a bus and communicate with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
[0169] Optionally, in a specific implementation, if the communication interface 53, the memory 52 and the processor 501 are integrated on a chip, the communication interface 53, the memory 52 and the processor 51 can communicate through an internal interface.
[0170] The electronic device may be a chip, a chip module, a terminal device, an access network device, etc.
[0171] The electronic device of this embodiment can be used to execute the technical solution of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0172] The embodiment of the present application provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a RAM, a disk or an optical disk, and other media that can store computer-executable instructions. Specifically, the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a computer, the technical solution shown in the above method embodiment is executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0173] An embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a computer, the technical solution shown in the above method embodiment is executed. The specific implementation method and technical effect are similar and will not be repeated here.
[0174] An embodiment of the present application provides a chip having a computer program stored thereon. When the computer program is executed by the chip, the technical solution shown in the above method embodiment is executed.
[0175] In a possible implementation, the chip may also be a chip module.
[0176] The chip of this embodiment can be used to execute the technical solution shown in the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0177] The embodiment of the present application provides a module device, which includes a power module, a storage module and a chip module. The power module is used to provide power to the module device. The storage module is used to store data and instructions.
[0178] The chip module of this embodiment can be used to execute the technical solution shown in the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0179] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0180] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing abnormal information, characterized in that: include: When an exception occurs in the startup process of the startup program inside the chip, a communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations: Sending abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command; Receiving an exception information export command sent by the first device; According to the exception information export command, the exception information of the startup process is sent to the first device.
2. The method according to claim 1, characterized in that: The establishing a communication connection with the first device includes: By simulating the download process of the internal startup program of the chip, the USB initialization and communication command registration of the universal serial bus are performed; Receiving information of the communication port sent by the first device; A communication connection is established with the first device according to the communication port.
3. The method according to claim 1 or 2, characterized in that: The sending abnormal indication information to the first device includes: Generate a first data packet according to a preset first format; the first data packet includes: an error code in a preset format; the error code is used by the first device to send an abnormal information export command; Send the first data packet to the first device.
4. The method according to claim 3, characterized in that The first data packet also includes: a version number; the version number is used to identify a format version of a command for communicating with the first device.
5. The method according to claim 1 or 2, characterized in that: The step of sending the abnormal information of the startup process to the first device according to the abnormal information export command includes: According to the abnormal information export command, the abnormal information is obtained from a preset storage space; Generate a second data packet according to the preset second format and the abnormal information; Send the second data packet to the first device.
6. The method according to claim 1 or 2, characterized in that: Before establishing a communication connection with the first device, the method further includes: If the memory initialization is completed, the abnormal information is stored in the memory; the abnormal information is output to the second device through the USB interface, or the communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations; If the memory initialization fails, the steps of establishing a communication connection with the first device and calling the first level download FDL1 program to perform the following operations are executed.
7. The method according to claim 1 or 2, characterized in that: The method further comprises: If no connection is established with the first device, restart after the preset timer expires.
8. An abnormal information processing device, characterized in that: include: A communication establishing module, used to establish a communication connection with the first device when an abnormality occurs in the startup process of the startup program inside the chip; The processing module is used to call the first-level download FDL1 program to perform the following operations: Sending abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command; Receiving an exception information export command sent by the first device; According to the exception information export command, the exception information of the startup process is sent to the first device.
9. An electronic device, characterized in that: include: Memory, processor; Memory; a memory for storing instructions executable by the processor; Wherein, the processor is configured to: When an exception occurs in the startup process of the startup program inside the chip, a communication connection is established with the first device, and the first-level download FDL1 program is called to perform the following operations: Sending abnormality indication information to the first device, where the abnormality indication information is used by the first device to send an abnormality information export command; Receiving an exception information export command sent by the first device; According to the exception information export command, the exception information of the startup process is sent to the first device.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.