Program burning method, system, equipment, medium and product
The board identification code determines the target power of the power management chip and burns the matching program. Combined with CRC verification, the problem of low operation efficiency of the power management chip is solved, and the chip is operated in the optimal state.
Patent Information
- Application Number
- CN202411193813.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2025-01-07
AI Technical Summary
In the prior art, the burning program of the power management chip does not match the chip characteristics, resulting in low chip performance and reduced operating efficiency.
The target power of the chip to be burned is determined by the board identification code, obtain the corresponding preset power management program, and burn it into the chip, and perform CRC verification to ensure the burning is successful.
Eliminate performance bottlenecks caused by mismatch between the program and the chip, ensure that the power management chip operates in the optimal state, and significantly improves operating efficiency.
Smart Images

Figure CN119271221A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip burning technology, and in particular to a program burning method, system, device, medium and product. Background Art
[0002] Program burning refers to the process of transferring the programmed program code to the hardware device. For example, the programmed program can be burned into the chip, or burned into the memory.
[0003] However, for power management chips with different characteristics, if the burned program does not match the characteristics of the power management chip, the performance of the power management chip will be lower, thereby reducing the operating efficiency of the power management chip.
[0004] Therefore, how to burn a program into a power management chip so as to improve the operating efficiency of the power management chip is a technical problem that needs to be solved by those skilled in the art. Summary of the invention
[0005] The main purpose of this application is to provide a program burning method, system, device, medium and product, aiming to solve the technical problem of how to burn a program into a power management chip so as to improve the operating efficiency of the power management chip.
[0006] To achieve the above object, the present application proposes a program burning method, the method comprising:
[0007] Determine the target power of the chip to be programmed through the board identification code, and obtain a preset target power management program corresponding to the target power;
[0008] Burn the target power management program to the chip to be burned, and after the burning is completed, perform a CRC check on the chip to be burned to obtain a CRC check result;
[0009] If it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0010] In one embodiment, the chip to be burned includes a read-only memory and a random access memory, and the method of burning the target power management program into the chip to be burned includes:
[0011] The target power management program is written into the read-only memory, and after detecting that the writing is completed, the target power management program is written into the random access memory.
[0012] In one embodiment, after the step of detecting that the CRC check result indicates that the check is passed, indicating that the target power management program is burned completely, the method further includes:
[0013] Acquire a first configuration identifier and a first revision identifier of the chip to be burned, and acquire a second configuration identifier and a second revision identifier of the target power management program;
[0014] If it is detected that the first configuration identifier is the same as the second configuration identifier, and if it is detected that the first revision identifier is the same as the second revision identifier, a power source corresponding to the chip to be programmed is started.
[0015] In one embodiment, the method further comprises:
[0016] Obtaining a device identifier of the chip to be programmed, and comparing the device identifier with a preset device identifier to be programmed;
[0017] If it is detected that the device identifier is the same as the device identifier to be burned, a CRC check is performed on the device identifier;
[0018] If it is detected that the device identifier passes the CRC check, the step of determining the target power of the chip to be programmed by using the board identification code is performed.
[0019] In one embodiment, the step of determining the target power of the chip to be programmed by using the board identification code includes:
[0020] If the board identification code is detected to be at a high level, the target power of the chip to be programmed is determined to be 15 watts;
[0021] If it is detected that the board identification code is at a low level, it is determined that the target power of the chip to be programmed is 6 watts.
[0022] In one embodiment, the step of burning the target power management program into the chip to be burned includes:
[0023] The target power management program is burned into the chip to be burned through SMBus communication.
[0024] In addition, to achieve the above purpose, the present application also proposes a program burning system, the program burning system comprising:
[0025] The program to be burned is determined by the module, which is used to determine the target power of the chip to be burned by the board identification code, and obtain the preset target power management program corresponding to the target power;
[0026] A program burning module, used for burning the target power management program into the chip to be burned, and performing a CRC check on the chip to be burned after the burning is completed to obtain a CRC check result;
[0027] The detection module is used to detect that if the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0028] In addition, to achieve the above objectives, the present application also proposes a program burning device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the program burning method described above.
[0029] In addition, to achieve the above objectives, the present application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the program burning method described above are implemented.
[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the program burning method described above are implemented.
[0031] In the present application, the target power of the chip to be burned is judged by the board identification code, and the preset target power management program corresponding to the target power is obtained, so that the power management program matching the characteristics of the chip to be burned can be determined; then the target power management program is burned into the chip to be burned, and after the burning is completed, a CRC check is performed on the chip to be burned to obtain a CRC check result, and the power management program corresponding to the chip to be burned can be burned into the chip to be burned, and it is checked whether the burning process is wrong; if it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0032] It can be seen that this application can eliminate the performance bottleneck caused by the mismatch between the program and the chip by accurately burning a power management program that is highly compatible with its inherent properties in the chip through a customized strategy, ensuring that the power management chip can operate in the optimal state, thereby significantly improving the operating efficiency of the power management chip. Therefore, this application solves the technical problem of how to burn a program into a power management chip to improve the operating efficiency of the power management chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] 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.
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0035] Figure 1 A flowchart of the first embodiment of the burning method of the present application program is provided;
[0036] Figure 2 A flowchart of the third embodiment of the burning method of the present application program is provided;
[0037] Figure 3 Another flowchart of Embodiment 3 of the burning method of the present application program;
[0038] Figure 4 This is a schematic diagram of the module structure of the program burning system of the embodiment of the present application;
[0039] Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the program burning method in the embodiment of the present application.
[0040] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0042] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0043] The main solution of the present application is: determine the target power of the chip to be burned through the board identification code, and obtain the preset target power management program corresponding to the target power; burn the target power management program to the chip to be burned, and perform CRC check on the chip to be burned after the burning is completed to obtain the CRC check result; if it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0044] Program burning refers to the process of transferring the programmed program code to the hardware device. For example, the programmed program can be burned into the chip, or burned into the memory.
[0045] However, for power management chips with different characteristics, if the burned program does not match the characteristics of the power management chip, the performance of the power management chip will be lower, thereby reducing the operating efficiency of the power management chip.
[0046] Therefore, how to burn a program into a power management chip so as to improve the operating efficiency of the power management chip is a technical problem that needs to be solved by those skilled in the art.
[0047] The present application determines the target power of the chip to be burned through the board identification code, and obtains the preset target power management program corresponding to the target power, so as to determine the power management program matching the characteristics of the chip to be burned; then the target power management program is burned into the chip to be burned, and after the burning is completed, a CRC check is performed on the chip to be burned to obtain a CRC check result, so that the power management program corresponding to the chip to be burned can be burned into the chip to be burned, and it is checked whether the burning process is wrong; if it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0048] It can be seen that this application can eliminate the performance bottleneck caused by the mismatch between the program and the chip by accurately burning a power management program that is highly compatible with its inherent properties in the chip through a customized strategy, ensuring that the power management chip can operate in the optimal state, thereby significantly improving the operating efficiency of the power management chip. Therefore, this application solves the technical problem of how to burn a program into a power management chip to improve the operating efficiency of the power management chip.
[0049] It should be noted that the program burning device that executes the program burning method of the present application can be a terminal device with data processing, network communication and program running functions, such as an automatic burner, a multi-function burner, an embedded controller (embedded controller), etc. The following takes the embedded controller as an example to illustrate various embodiments of the program burning method of the present application.
[0050] Based on this, the present application embodiment provides a program burning method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the burning method of the present application.
[0051] In this embodiment, the program burning method includes steps S10 to S30:
[0052] Step S10, determining the target power of the chip to be programmed through the board identification code, and obtaining a preset target power management program corresponding to the target power;
[0053] It should be noted that the board identification code refers to the board ID, the target power refers to the power required for the operation of the chip to be programmed, and the target power management program refers to the power management program corresponding to the chip to be programmed.
[0054] In this embodiment, in order to improve the operating efficiency of the chip to be programmed, the power of the chip to be programmed can be determined based on the board ID, and then a power management program preset corresponding to the power can be obtained. Thus, a power management program corresponding to the characteristics of the chip to be programmed can be obtained.
[0055] Step S20, burning the target power management program to the chip to be burned, and performing a CRC check on the chip to be burned after the burning is completed to obtain a CRC check result;
[0056] It is understandable that after obtaining the target power management program, the program can be burned, and after the program burning is completed, a CRC check is performed to determine whether the burned program has passed the check.
[0057] Step S30: If it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0058] It can be understood that if the CRC check result indicates that the check is passed, it indicates that there is no error in the burned data, and thus it can be indicated that the target power management program has been burned.
[0059] In one embodiment, when the chip to be programmed is MPS2964, the above step S10 further includes:
[0060] Step S101, if it is detected that the board identification code is at a high level, it is determined that the target power of the chip to be programmed is 15 watts;
[0061] Step S102: If it is detected that the board identification code is at a low level, it is determined that the target power of the chip to be programmed is 6 watts.
[0062] In this embodiment, for the MPS2964 chip, the high level or low level can be judged by the board id, so as to determine the power of the MPS2964 chip. Specifically, if it is a high level, the power is judged to be 15w, and if it is a low level, the power is judged to be 6w.
[0063] In the present application, the target power of the chip to be burned is judged by the board identification code, and the preset target power management program corresponding to the target power is obtained, so that the power management program matching the characteristics of the chip to be burned can be determined; then the target power management program is burned into the chip to be burned, and after the burning is completed, a CRC check is performed on the chip to be burned to obtain a CRC check result, and the power management program corresponding to the chip to be burned can be burned into the chip to be burned, and it is checked whether the burning process is wrong; if it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0064] It can be seen that this application can eliminate the performance bottleneck caused by the mismatch between the program and the chip by accurately burning a power management program that is highly compatible with its inherent properties in the chip through a customized strategy, ensuring that the power management chip can operate in the optimal state, thereby significantly improving the operating efficiency of the power management chip. Therefore, this application solves the technical problem of how to burn a program into a power management chip to improve the operating efficiency of the power management chip.
[0065] Furthermore, based on the first embodiment of the method for burning the program of the present application, a second embodiment of the method for burning the program of the present application is proposed.
[0066] In one embodiment, the chip to be programmed includes a read-only memory and a random access memory, and the above step S20 further includes:
[0067] Step S201, writing the target power management program into the read-only memory, and after detecting that the writing is completed, writing the target power management program into the random access memory.
[0068] It should be noted that read-only memory refers to non-volatile memory. For read-only memory, after the data is initially written, it cannot be written again without an erase operation. In this application, read-only memory is used to prevent data loss after the chip is powered off. In addition, random access memory is a memory that can be accessed quickly, and data can be accessed in a relatively short time.
[0069] For example, the board id# signal can be used to determine whether the 6W or 15W MP2964 program is being written, and then command 0x15 is sent to write page0, page1, and page2 of the target power management program into the EEPROM (read-only memory) of the MP2964, and then command 0x16 is sent to rewrite the target power management program into the (random access memory) of the MP2964, and finally a verification is performed. If the verification is successful, the writing is successful.
[0070] In this embodiment, the present application can avoid the technical problem of data loss after the chip is powered off by first writing the target power program into the read-only memory. Then, the present application also facilitates the chip to quickly access data by writing the target power management program into the random access memory, thereby improving the operating efficiency of the chip.
[0071] In one embodiment, the above step S20 further includes:
[0072] Step S202: Burn the target power management program into the chip to be burned through SMBus communication.
[0073] It should be noted that when writing the target management program to the MPS2964 through the embedded controller, it is also necessary to establish communication between the embedded controller and the MPS2964.
[0074] Specifically, the SMBus communication process can be divided into the following main steps:
[0075] The embedded controller sends a start condition to start SMBus communication;
[0076] The embedded controller sends the device address (including the read / write bit) to select the specific device (MPS2964) with which it wants to communicate.
[0077] The embedded controller sends a command byte indicating the specific operation to be performed (e.g., read data, write data, etc.);
[0078] The selected device responds to the command byte and performs the corresponding operation;
[0079] If it is a read operation, the selected device will send the requested data to the embedded controller;
[0080] The embedded controller receives data sent from the selected device;
[0081] The embedded controller sends a stop condition, marking the end of the SMBus communication.
[0082] It should be noted that the SMBus access address of MPS2964 is page0 0xC0. Writing the target power management program into MPS2964 actually writes the program into the register of MPS2964 through SMBus, thereby realizing the program update.
[0083] Among them, the parameter table of MPS2964 is as follows:
[0084] Table 1
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093] Then, based on the above Table 1, each address and each data corresponding to each command can be polled and written until the last data is written and the writing is stopped, thereby realizing the writing of the program.
[0094] In a feasible implementation, the step of writing the target power management program via SMBus can also be: first, it will be stored from RAM to EEPROM. During the period when the MPS2964 controller stores data in EEPROM, the SMbus read back should be NACK, and the embedded controller can read the page3 00h register to detect whether it is 0xFF. If the read register data is not 0xFF, it means that the writing from RAM to EEPROM has been completed. After the RAM is stored in EEPROM, MPS2964 will also perform the operation of storing EEPROM to RAM. During the period when EEPROM loads data into RAM, the SMbus read back should be NACK, and the embedded controller can read the page3 00h register to detect whether it is 0xFF. If the read register data is not 0xFF, it means that the writing from EEPROM to RAM has been completed.
[0095] In addition, when writing or reading the MPS2964 register, the chip will perform a CRC check inside. Specifically, the embedded controller only needs to access page 0 7Eh through SMBus to see if bit4 is 0 to determine whether the check is successful. If it is 0, the CRC check is passed, and if it is 1, command0x03 needs to be sent to clear the error.
[0096] Furthermore, based on the first embodiment and / or the second embodiment of the method for burning the program of the present application, a third embodiment of the method for burning the program of the present application is proposed.
[0097] Please refer to Figure 2 In this embodiment, after the above step S30, the method further includes:
[0098] Step S40, obtaining a first configuration identifier and a first revision identifier of the chip to be burned, and obtaining a second configuration identifier and a second revision identifier of the target power management program;
[0099] It should be noted that the first configuration identifier and the first revision identifier refer to the configuration identifier and revision identifier of the chip to be burned, respectively. The second configuration identifier and the second revision identifier refer to the configuration identifier and revision identifier of the target power management program, respectively. Among them, the configuration identifier configuration ID is used to uniquely identify a specific version or setting of the software or hardware configuration, and the revision identifier revision ID is used to identify the modified or updated version of the software or document during the development process.
[0100] Step S50: If it is detected that the first configuration identifier is the same as the second configuration identifier, and if it is detected that the first revision identifier is the same as the second revision identifier, then start the power supply corresponding to the chip to be programmed.
[0101] In this embodiment, after the program is burned, it is necessary to determine whether the program version is burned incorrectly through the configuration identifier and the revision identifier, thereby further ensuring the correctness of the program burning.
[0102] Please refer to Figure 3 In a feasible implementation manner, the method further includes:
[0103] Step S100, obtaining a device identifier of the chip to be programmed, and comparing the device identifier with a preset device identifier to be programmed;
[0104] It should be noted that the device identifier refers to the device id. The preset device identifier to be burned refers to the preset device id of the chip that needs to burn the program.
[0105] It is understandable that, in order to avoid errors in program burning, before determining the target management program, it is also necessary to determine whether the current chip to be burned is a chip that needs to burn the program according to the device identifier.
[0106] For example, when there are multiple chip models: chip A and chip B, and the chip that needs to be burned is chip A, if the device identifier of the chip to be burned is B, there is no need to perform the subsequent step of determining the target management program. If the device identifier of the chip to be burned is A, the subsequent step of determining the target management program can be performed.
[0107] Step S200, if it is detected that the device identifier is the same as the device identifier to be burned, a CRC check is performed on the device identifier;
[0108] It should be noted that even if the Device ID matches successfully, it cannot completely eliminate the possibility of errors in the data transmission process. Therefore, it is necessary to determine the integrity of the device identifier through CRC check.
[0109] Step S300: If it is detected that the device identifier passes the CRC check, the step of determining the target power of the chip to be programmed by using the board identification code is executed.
[0110] It can be understood that, under the premise that the Device ID matches successfully and the CRC check passes, the step of determining the target power of the chip to be programmed by the board identification code can be performed so as to program the chip to be programmed.
[0111] In this embodiment, the present application can determine the correctness of the chip to be burned through identifiers such as the device identifier, the revision identifier, and the configuration identifier, thereby avoiding the technical problem of burning errors.
[0112] Furthermore, based on the first to third embodiments of the method for burning the program of the present application, a specific embodiment of the method for burning the program of the present application is proposed.
[0113] In this embodiment, the program burning method has the following steps:
[0114] Before writing the target power management program, the power chip MPS2964 needs to be powered on. The EN# signal must be pulled high to 3.3V; SIGNA l# must also be high at 3.3V; and the Smbus signal between the embedded controller and MPS2964 must also be successfully communicated.
[0115] 1. Match the device ID;
[0116] 2. Match the configuration id;
[0117] 3. Match the revis si on id;
[0118] 4. Send command 0x15h to the MP2964 register to store the data in EERROM;
[0119] 5. Storage waiting time 300ms;
[0120] 6. Send command 0x16h to the MP2964 register to restore the data EEPROM to RAM;
[0121] 7. Waiting time for re-storing data is 2ms;
[0122] 8. CRC check reads flag bit 4.
[0123] It can be understood that in the above specific embodiment, the device identifier matching, configuration identifier matching and revision identifier matching are respectively performed before the burning program, which can avoid the problem of repeated burning of the chip that has already burned the target power management program, thereby improving the intelligence of automatic burning.
[0124] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the program burning method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0125] This application also provides a program burning system, please refer to Figure 4 , the program burning system comprises:
[0126] The program to be burned determining module 10 is used to determine the target power of the chip to be burned through the board identification code, and obtain a preset target power management program corresponding to the target power;
[0127] A program burning module 20 is used to burn the target power management program into the chip to be burned, and perform a CRC check on the chip to be burned after the burning is completed to obtain a CRC check result;
[0128] The detection module 30 is used to detect that if the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0129] In one embodiment, the chip to be burned includes a read-only memory and a random access memory, and the program burning module 20 is also used for:
[0130] The target power management program is written into the read-only memory, and after detecting that the writing is completed, the target power management program is written into the random access memory.
[0131] In one embodiment, the program burning system further includes:
[0132] An identifier acquisition module, used to acquire a first configuration identifier and a first revision identifier of the chip to be burned, and to acquire a second configuration identifier and a second revision identifier of the target power management program;
[0133] The identifier comparison module is used to start the power supply corresponding to the chip to be programmed if it is detected that the first configuration identifier is the same as the second configuration identifier and the first revision identifier is the same as the second revision identifier.
[0134] In one embodiment, the program burning system further includes:
[0135] A device identifier comparison module, used for obtaining a device identifier of the chip to be programmed, and comparing the device identifier with a preset device identifier to be programmed;
[0136] an accuracy verification module, configured to perform a CRC check on the device identifier if it is detected that the device identifier is the same as the device identifier to be burned;
[0137] The switching module is used to execute the step of determining the target power of the chip to be burned by the board identification code if it is detected that the device identifier passes the CRC check.
[0138] In one embodiment, the program to be burned determining module 10 is further used for:
[0139] If the board identification code is detected to be at a high level, the target power of the chip to be programmed is determined to be 15 watts;
[0140] If it is detected that the board identification code is at a low level, it is determined that the target power of the chip to be programmed is 6 watts.
[0141] In one embodiment, the program burning module 20 is further used for:
[0142] The target power management program is burned into the chip to be burned through SMBus communication.
[0143] The program burning system provided by the present application adopts the program burning method in the above embodiment, which can solve the technical problem of how to burn a program for a power management chip so as to improve the operating efficiency of the power management chip. Compared with the prior art, the beneficial effects of the program burning system provided by the present application are the same as the beneficial effects of the program burning method provided by the above embodiment, and other technical features in the program burning system are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0144] The present application provides a program burning device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the program burning method in the above-mentioned embodiment 1.
[0145] Reference below Figure 5 , which shows a structural schematic diagram of a program burning device suitable for implementing an embodiment of the present application. Figure 5 The program burning device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0146] like Figure 5As shown, the program burning device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read On ly Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the program burning device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the program burning device to communicate wirelessly or wired with other devices to exchange data. Although the program burning device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.
[0147] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0148] The program burning device provided by the present application adopts the program burning method in the above embodiment, which can solve the technical problem of how to burn a program for a power management chip so as to improve the operating efficiency of the power management chip. Compared with the prior art, the beneficial effects of the program burning device provided by the present application are the same as the beneficial effects of the program burning method provided by the above embodiment, and other technical features in the program burning device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0149] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0150] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0151] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the program burning method in the above-mentioned embodiment.
[0152] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read On ly Memory), an erasable programmable read-only memory (EPROM: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0153] The computer-readable storage medium may be included in the program burning device; or may exist independently without being assembled into the program burning device.
[0154] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a program burning device, the program burning device: determines the target power of the chip to be burned through the board identification code, and obtains a preset target power management program corresponding to the target power; burns the target power management program to the chip to be burned, and performs a CRC check on the chip to be burned after the burning is completed to obtain a CRC check result; if it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
[0155] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0156] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0157] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0158] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned program burning method, and can solve the technical problem of how to burn a program for a power management chip so that the operating efficiency of the power management chip is improved. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the program burning method provided by the above-mentioned embodiment, and will not be repeated here.
[0159] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the program burning method as described above are implemented.
[0160] The computer program product provided by the present application can solve the technical problem of how to burn a program into a power management chip so as to improve the operating efficiency of the power management chip. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the program burning method provided by the above embodiment, and will not be repeated here.
[0161] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A program burning method, characterized in that: The program burning method comprises: Determine the target power of the chip to be programmed through the board identification code, and obtain a preset target power management program corresponding to the target power; Burn the target power management program to the chip to be burned, and after the burning is completed, perform a CRC check on the chip to be burned to obtain a CRC check result; If it is detected that the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
2. The program burning method as claimed in claim 1, characterized in that: The chip to be burned includes a read-only memory and a random access memory, and the method of burning the target power management program to the chip to be burned includes: The target power management program is written into the read-only memory, and after detecting that the writing is completed, the target power management program is written into the random access memory.
3. The program burning method as claimed in claim 1, characterized in that: After the step of detecting that the CRC check result indicates that the check is passed, indicating that the burning of the target power management program is completed, the method further includes: Acquire a first configuration identifier and a first revision identifier of the chip to be burned, and acquire a second configuration identifier and a second revision identifier of the target power management program; If it is detected that the first configuration identifier is the same as the second configuration identifier, and if it is detected that the first revision identifier is the same as the second revision identifier, a power supply corresponding to the chip to be programmed is started.
4. The program burning method as claimed in claim 1, characterized in that: The method further comprises: Obtaining a device identifier of the chip to be programmed, and comparing the device identifier with a preset device identifier to be programmed; If it is detected that the device identifier is the same as the device identifier to be burned, a CRC check is performed on the device identifier; If it is detected that the device identifier passes the CRC check, the step of determining the target power of the chip to be programmed by using the board identification code is performed.
5. The program burning method as claimed in claim 1, characterized in that: The step of determining the target power of the chip to be programmed by using the board identification code comprises: If the board identification code is detected to be at a high level, the target power of the chip to be programmed is determined to be 15 watts; If it is detected that the board identification code is at a low level, it is determined that the target power of the chip to be programmed is 6 watts.
6. The program burning method as claimed in claim 1, characterized in that: The step of burning the target power management program into the chip to be burned comprises: The target power management program is burned into the chip to be burned through SMBus communication.
7. A program burning system, characterized in that: The program burning system comprises: The program to be burned is determined by the module, which is used to determine the target power of the chip to be burned by the board identification code, and obtain the preset target power management program corresponding to the target power; A program burning module, used for burning the target power management program into the chip to be burned, and performing a CRC check on the chip to be burned after the burning is completed to obtain a CRC check result; The detection module is used to detect that if the CRC check result indicates that the check is passed, it indicates that the burning of the target power management program is completed.
8. A program burning device, characterized in that: The program burning device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the program burning method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the program burning method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the program burning method according to any one of claims 1 to 6 are implemented.
