CN111752584A - Firmware upgrading method and device, electronic equipment and computer readable storage medium - Google Patents

Firmware upgrading method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111752584A
CN111752584A CN202010528598.7A CN202010528598A CN111752584A CN 111752584 A CN111752584 A CN 111752584A CN 202010528598 A CN202010528598 A CN 202010528598A CN 111752584 A CN111752584 A CN 111752584A
Authority
CN
China
Prior art keywords
information
firmware
upgraded
component
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010528598.7A
Other languages
Chinese (zh)
Inventor
李志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010528598.7A priority Critical patent/CN111752584A/en
Publication of CN111752584A publication Critical patent/CN111752584A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a firmware upgrading method, a firmware upgrading device, electronic equipment and a computer readable storage medium.A processor sends current firmware information to a component to be upgraded so that the component to be upgraded can write the current firmware information into a cache region; further, the processor instructs the component to be upgraded to perform a checking operation on the information in the cache region, and obtains a first checking result returned by the component to be upgraded; then, determining whether the information in the cache region is the same as the current firmware information or not based on the first check result; and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded. By adopting the method, the efficiency and the reliability of firmware upgrading can be improved.

Description

Firmware upgrading method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a firmware upgrading method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of charging technology in the mobile phone industry, the charging power is increased, the charging speed is increased, and the demand for a quick charging microprocessor (MCU for short) in a mobile phone is increased. In order to adapt to the development of the charging technology, a new fast-charging MCU is produced. Compared with the traditional quick-charging MCU, the novel MCU not only has stronger logical operation function, but also can integrate the functions of sampling and the like, and is widely applied to mobile phones. The fast charging MCU is empty when leaving the factory, so that a fast charging firmware array stored at an AP end needs to be downloaded to a storage area of the fast charging MCU through an Application Processor (AP) end, and firmware upgrade needs to be performed on the fast charging MCU subsequently when a fast charging logic requirement changes.
In the conventional technology, when firmware upgrade is performed on the quick charge MCU through the mobile AP, after the quick charge MCU stores firmware information provided by the mobile AP in a storage area of the quick charge MCU, the mobile AP needs to read the information stored in the quick charge MCU and then perform Cyclic Redundancy Check (CRC) Check, and after the CRC Check is passed, the firmware upgrade of the quick charge MCU is completed.
However, the firmware upgrading method is inefficient.
Disclosure of Invention
The embodiment of the application provides a firmware upgrading method and device, electronic equipment and a computer readable storage medium, and the firmware upgrading efficiency of a fast charging MCU can be improved.
In a first aspect, a firmware upgrade method includes:
sending the current firmware information to a component to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the method comprises the steps that a component to be upgraded is instructed to execute verification operation on information in a cache region, and a first verification result returned by the component to be upgraded is obtained;
determining whether the information in the cache region is the same as the current firmware information or not based on the first check result;
and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded.
In a second aspect, a firmware upgrade apparatus includes:
the sending module is used for sending the current firmware information to the part to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the indication module is used for indicating the component to be upgraded to execute verification operation on the information in the cache region and obtaining a first verification result returned by the component to be upgraded;
the determining module is used for determining whether the information in the cache region is the same as the current firmware information or not based on the first checking result;
and the upgrading module is used for sending a firmware upgrading instruction to the part to be upgraded when the information in the cache area is the same as the current firmware information.
In a third aspect, an electronic device includes a memory and a processor, the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to implement the following steps when executing the computer program:
sending the current firmware information to a component to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the method comprises the steps that a component to be upgraded is instructed to execute verification operation on information in a cache region, and a first verification result returned by the component to be upgraded is obtained;
determining whether the information in the cache region is the same as the current firmware information or not based on the first check result;
and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded.
In a fourth aspect, a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
sending the current firmware information to a component to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the method comprises the steps that a component to be upgraded is instructed to execute verification operation on information in a cache region, and a first verification result returned by the component to be upgraded is obtained;
determining whether the information in the cache region is the same as the current firmware information or not based on the first check result;
and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded.
According to the firmware upgrading method, the firmware upgrading device, the electronic equipment and the computer readable storage medium, the processor sends the current firmware information to the component to be upgraded, so that the component to be upgraded can write the current firmware information into the cache area; further, the processor instructs the component to be upgraded to perform a checking operation on the information in the cache region, and obtains a first checking result returned by the component to be upgraded; then, determining whether the information in the cache region is the same as the current firmware information or not based on the first check result; and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded. Because the part to be upgraded executes the verification operation on the information in the cache region, the processor does not need to read the information in the cache region and then execute the verification, the reading operation time in the firmware upgrade is reduced, and the firmware upgrade efficiency is improved; furthermore, the first check result is returned by the part to be upgraded, so that the processor can determine whether the information in the cache area is the same as the current firmware information, instead of determining through the part to be upgraded, thereby avoiding the inaccuracy of the obtained confirmation result caused by data transmission errors and improving the reliability of the firmware upgrading process.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a firmware upgrade method in one embodiment;
FIG. 2 is a flow diagram of a method for firmware upgrade in one embodiment;
FIG. 3 is a flow chart of a firmware upgrade method in another embodiment;
FIG. 4 is a flow chart of a firmware upgrade method in another embodiment;
FIG. 5 is a flowchart of a firmware upgrade method in another embodiment;
FIG. 6 is a flowchart of a firmware upgrade method in another embodiment;
FIG. 7 is a flowchart of a firmware upgrade method in another embodiment;
FIG. 8 is a block diagram showing the structure of a firmware upgrading apparatus according to an embodiment;
FIG. 9 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 10 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 11 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 12 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 13 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 14 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 15 is a block diagram showing the construction of a firmware upgrading apparatus according to another embodiment;
FIG. 16 is a schematic diagram of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an application environment of a firmware upgrade method in an embodiment. As shown in fig. 1, the application environment includes an electronic device 100, which may be a wireless terminal, which may be a device that provides voice and/or other traffic data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. The wireless terminal may be a mobile terminal such as a cellular phone and a computer having a mobile terminal, for example, a mobile device which may be portable, pocket, hand-held, computer-included or vehicle-mounted, etc. The electronic device 100 includes a processor 110 and a component 120, where the processor 101 may be a mobile phone AP, and the component 110 may be a mobile phone flash MCU, or other types of components such as a storage component, which is not limited herein. Processor 110 is coupled to component 120 for implementing firmware upgrades of component 120.
FIG. 2 is a flow diagram of a method for firmware upgrade in one embodiment. The firmware upgrading method in this embodiment is described by taking the processor running in fig. 1 as an example. As shown in fig. 2, the firmware upgrade method:
s101, sending current firmware information to a component to be upgraded; and the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region.
The part to be upgraded can be an MCU in the electronic equipment, such as a fast charging MCU in a mobile phone; the component to be upgraded may also be a storage component, a display component, and the like in the electronic device, which is not limited herein. The component to be upgraded may be disposed inside the electronic device, or may be an external component connected to the electronic device body through a wire or wirelessly, such as a display, a mouse, an optical disk drive, and the like connected to a computer host, or a positioning device disposed inside the electronic device, and the type and the disposition manner of the component are not limited herein.
The firmware information refers to software in the component, which serves as the bottommost layer of the component, for example, in a fast charging MCU in a mobile phone, the firmware is a code for controlling a charging logic. In general, when the device leaves the factory, the memory of the component may be blank and does not contain any firmware information, and the firmware information needs to be written into the component through a specific program; in addition, when the firmware information in the component needs to be upgraded, new firmware information needs to be written into the component through a specific program to replace the old version of firmware information.
Specifically, when the processor upgrades the firmware information of the component, the current firmware information may be sent to the component to be upgraded first. When the processor sends the current firmware information to the component to be upgraded, the processor may directly send the current firmware information stored in the electronic device to the component to be upgraded, or send a storage address of the current firmware information to the component to be upgraded, and instruct the component to be upgraded to download the current firmware information from the storage address, where the sending method is not limited herein.
The processor may send the current firmware information to the component to be upgraded by one-time transmission, or may send the current firmware information to the component to be upgraded by multiple times, which is not limited herein.
In addition, when the processor sends the current firmware information to the component to be upgraded, the current firmware information may be sent through an I2C bus connected between the processor and the component to be upgraded, or the information may be transferred through a register of the component to be upgraded, which is not limited herein.
After the part to be upgraded acquires the current firmware information, the current firmware information can be written into a cache region of the part to be upgraded, the part to be upgraded can write the current firmware information into the cache region byte by byte, and a plurality of bytes can be cached at one time according to the processing capacity of the part to be upgraded; the above buffering method is not limited herein.
And S102, indicating the to-be-upgraded component to execute a verification operation on the information in the cache region, and obtaining a first verification result returned by the to-be-upgraded component.
Specifically, the processor may instruct the component to be upgraded to perform the verification operation on the information in the cache region, and the processor may instruct the component to be upgraded to perform the verification operation multiple times, for example, after the component to be upgraded caches a part of the information, the processor performs a verification operation once, and the verification operation needs to be performed multiple times in the caching process; in addition, the processor can also perform one-time verification on the information in the cache region after the part to be upgraded is cached; the above indication method is not limited herein.
The processor may instruct the component to be upgraded to check part of the information in the cache region, or may instruct the component to be upgraded to check all the information in the cache region, which is not limited herein.
The processor can indicate information such as a checking operation mode and the like when the to-be-upgraded component is indicated to perform checking operation on the information in the cache region, so that the to-be-upgraded component can perform checking operation according to the indicated information; in addition, the processor can also send a verification trigger instruction to the component to be upgraded, and the component to be upgraded verifies the information in the cache region according to a preset verification rule after acquiring the verification trigger instruction; the type of indication is not limited herein.
The verification operation is used for verifying the integrity of the information in the cache region, and the situation that the information written into the cache region by the component to be upgraded is different from the current verification information due to data transmission errors is avoided. The check operation may be a parity check, or may be an MD5 check, and the type of the check operation is not limited herein.
After the component to be upgraded completes the verification operation according to the instruction of the processor, a first verification result may be returned to the processor, where the first verification result may be a verification code obtained by the component to be upgraded after performing verification calculation on the information in the cache region.
S103, determining whether the information in the cache region is the same as the current firmware information or not based on the first check result.
After the processor obtains the first verification result returned by the component to be upgraded, the processor can compare the first verification result with the self-obtained verification result to determine whether the information in the cache area is the same as the current firmware information. Specifically, the processor may obtain the verification result before sending the current firmware information, or may perform the verification operation after receiving the first verification result, which is not limited herein.
Optionally, after receiving the first check result, the processor may perform the same check operation on the current firmware information to obtain a second check result; and if the first check result is the same as the second check result, determining that the information in the cache region is the same as the current firmware information.
And S104, if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the part to be upgraded.
On the basis of the above steps, if the information in the cache area is the same as the current firmware information, the processor may determine that the current firmware information sent to the component to be upgraded is transmitted normally, and may instruct the component to be upgraded to perform firmware upgrade.
If the first check result is different from the second check result, determining that the information in the cache region of the component to be upgraded is different from the current firmware information, determining that the current firmware upgrade fails, and sending the current firmware information to the component to be upgraded again so that the component to be upgraded writes the current firmware information into the cache region again.
After the part to be upgraded receives the firmware upgrading instruction, the current firmware information in the cache region can be programmed into the storage region of the firmware information, and the historical firmware information in the part to be upgraded can be replaced, so that the firmware upgrading is completed.
According to the firmware upgrading method, the processor sends the current firmware information to the component to be upgraded, so that the component to be upgraded can write the current firmware information into the cache area; further, the processor instructs the component to be upgraded to perform a checking operation on the information in the cache region, and obtains a first checking result returned by the component to be upgraded; then, determining whether the information in the cache region is the same as the current firmware information or not based on the first check result; and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded. Because the part to be upgraded executes the verification operation on the information in the cache region, the processor does not need to read the information in the cache region and then execute the verification, the reading operation time in the firmware upgrade is reduced, and the firmware upgrade efficiency is improved; furthermore, the first check result is returned by the part to be upgraded, so that the processor can determine whether the information in the cache area is the same as the current firmware information, instead of determining through the part to be upgraded, thereby avoiding the inaccuracy of the obtained confirmation result caused by data transmission errors and improving the reliability of the firmware upgrading process.
Fig. 3 is a schematic flowchart of a firmware upgrade method in an embodiment, where the embodiment relates to a manner in which a processor instructs a component to be upgraded to perform a verification operation on information in a cache region, and on the basis of the above embodiment, as shown in fig. 3, the above step S102 includes:
s201, determining whether the part to be upgraded completes the writing operation of the current firmware information or not based on the writing state information returned by the part to be upgraded.
The writing state information may indicate whether all the current firmware information is written completely, or whether all the parts of the current firmware information are written completely, and the processor may determine whether firmware information which is not written completely exists based on the writing completion state of each part of the current firmware information; the indication method of the firmware information is not limited herein. For example, the component to be upgraded may write the write status information into the status register, and when the bit1 in the status register is 1, it may indicate that the current firmware information is written completely; in addition, the bit1 being 1 may also indicate that writing of the currently cached partial firmware information is completed, and when bits 1 continuously returned by the component to be upgraded are all 1, after the current firmware information is sent, the processor may determine that the component to be upgraded has completed writing of the current component information.
S202, if yes, indicating the to-be-upgraded component to execute verification operation on the information in the cache region.
After determining that the part to be upgraded has completed the write operation of the current firmware information, the processor may instruct the part to be upgraded to perform a verification operation on the information in the cache area.
Optionally, the current firmware information comprises at least one firmware single page information; the processor may instruct the component to be upgraded to perform a cyclic redundancy CRC check on a preset number of firmware single page information in the cache area.
Specifically, the processor may send a check instruction to the component to be upgraded, so that the component to be upgraded may perform CRC check on the first few pages of firmware single page information in the cache region according to a preset rule, or may also perform CRC check on the last few pages of firmware single page information in the cache region, where the instruction manner is not limited herein.
Optionally, the processor may write a page number index of the firmware single page information to be verified into a control register of the component to be upgraded; the page index is used for indicating the part to be upgraded to carry out CRC (cyclic redundancy check) on the firmware single page information corresponding to the page index, and returning a first check result and check state information.
Specifically, the page index may be a continuous page number or a discrete page number, and is not limited herein. For example, the processor may instruct the component to be upgraded to check the firmware single page information of page 1, may instruct the component to be upgraded to check the firmware single page information of pages 3 to 7, and may instruct the component to be upgraded to check pages 1 and 3, respectively.
The control register of the component to be upgraded may include a plurality of control sub-registers, the processor may write the page index into the control sub-register for CRC check, for example, write the number a of pages that need to be subjected to CRC check into the REG _ CRC _ LEN register, and the component to be upgraded may perform CRC calculation on the firmware single page information of the page 1 to the page a to obtain a CRC check code.
After the part to be upgraded finishes the checking operation based on the indication, a first checking result can be returned to the processor, and the value of the status register is maintained according to the return state of the first checking result. Further, the processor can read the check state information in the state register of the component to be upgraded every a first preset time interval; and if the verification state information represents that the first verification information is calculated, reading a first verification result in the data register of the component to be upgraded. The first preset time may be 5ms or 10ms, which is not limited herein; the check state information may be used to represent whether the component to be upgraded has completed the calculation of the first check result, and write the first check result into the data register, and may be represented by 1 bit or multiple bits, which is not limited herein. The check status information may be that the bit is 1 to indicate that the first check result has been calculated, or the bit is 0 to indicate that the first check result has been calculated, which is not limited herein.
For example, the component to be upgraded may set bit3 of the status register to 0 during the calculation of the CRC check, and set bit3 bit1 of the status register after the CRC check is finished and the first check result is written into the data register REG _ CRC. The processor may read the value of the status register REG _ STATE every 5ms after sending the check indication, read the value of REG _ STATE again every 5ms if bit3 is 0, and read the first check result from REG _ CRC if bit3 is 1, indicating that the first check result has been calculated. If the processor reads the status register for multiple times to indicate that the first check result is still in the calculation, the reading of the status register may be stopped after a second preset time period, for example, 20ms, and the firmware upgrading process may be stopped.
According to the firmware upgrading method, after the part to be upgraded finishes the writing operation of the current firmware information, the processor instructs the part to be upgraded to execute the verification operation, so that the part to be upgraded can finish the verification of the information in the cache region through one operation, the verification times are reduced, and the firmware upgrading efficiency is improved; furthermore, the processor performs cyclic redundancy CRC (cyclic redundancy check) on the single page information of the firmware with the preset number in the cache region by indicating the part to be upgraded, so that the part to be upgraded does not need to perform check calculation on all information in the cache region, the data volume of the check calculation is reduced, and the firmware upgrading efficiency is further improved.
Fig. 4 is a flowchart illustrating a firmware upgrading method in an embodiment, where the embodiment relates to a manner in which a processor sends current firmware information, and on the basis of the embodiment, as shown in fig. 4, the step S101 includes:
s301, paging processing is carried out on the current firmware information according to the preset byte number, and at least one piece of firmware single page information is obtained.
Specifically, the preset byte may be 128 bytes, 256 bytes, or more bytes, which is not limited herein. After the processor performs paging processing on the current firmware information according to the preset byte number, the firmware single page information with the byte numbers all being the preset byte number can be obtained.
And S302, respectively sending the firmware single page information to the parts to be upgraded.
On the basis of the above steps, the processor may send the firmware single page information to the component to be upgraded, and the manner in which the processor sends the firmware single page information to the component to be upgraded is similar to that in S101, which is not described herein again.
In one mode of transmission, the processor may write a single page of firmware information to a data register of the component to be upgraded; then, writing the write operation instruction into a control register of the component to be upgraded; and the write operation instruction is used for instructing the part to be upgraded to write the firmware single page information in the data register into the cache region. The write operation command may be a command identifier, for example, represented by 0x 60.
For example, when the processor sends the nth page of firmware single page information to the component to be upgraded, 256 bytes of the firmware single page information of the page may be written into the DATA register REG _ DATA of the component to be upgraded, and then the write operation instruction 0x60 may be written into the control register. The part to be upgraded can execute write operation on 256 bytes in the data register according to the information in the data register and the control register, and write the firmware single page information into the cache region.
The method comprises the steps that a part to be upgraded can return write state information to a processor in the process of writing firmware single page information into a cache region, so that the processor can determine whether the part to be upgraded finishes cache operation of the firmware single page information, and after the fact that the firmware single page information of the part to be upgraded is cached is detected, the processor sends the next firmware single page information to the part to be upgraded. The writing status information may indicate the writing status of the firmware single page information by one bit, or may indicate the writing status by a plurality of bits, which is not limited herein.
For example, the component to be upgraded may set bit0 of status register REG _ STATE to 1 during the write operation, and set bit0 of status register REG _ STATE to 0 after the write operation of the firmware single page information is completed. The processor can determine whether the part to be upgraded has finished the write operation of the firmware single page information according to the value of the status register, can read the value of bit0 of the status register REG _ STATE, and if bit0 bit1, continue to read the value of the bit at an interval of a third preset time (for example, 10 ms); if the read bit0 is 1, it is determined that the firmware single page information writing is completed, and if the bits 0 of the multiple read status register REG _ STATE are all 1, for example, after exceeding a fourth preset time (for example, 400ms), it may be determined that the writing of the component to be upgraded fails. Further, the processor may send the firmware single page information to the component to be upgraded again, or may stop the firmware upgrading process.
Optionally, the processor may write the firmware single page information into the data register, and at the same time, may write the page number index corresponding to the firmware single page information into the data register of the component to be upgraded. For example, when the processor sends page 5 firmware single page information, page number index 5 may be written to the data register of the component to be upgraded. Specifically, the processor may write the firmware single page information and the corresponding page index into the same data register, or write the firmware single page information and the corresponding page index into different data sub-registers, for example, two adjacent data sub-registers. For example, the processor may write 256 bytes of firmware single page information to one of the data subregisters, and then write the page number index to the other data subregister in 4 bytes.
When the firmware single page information in the data register is written into the cache region by the component to be upgraded, the storage position of the firmware single page information in the cache region can be determined according to the page number index. For example, the continuous storage space sram in the cache region is used to receive firmware single page information, and then the MTP memory address space is determined according to the page index corresponding to the firmware single page information, where the page index corresponds to the offset address, and when the page 5 firmware single page information is cached, the address of the firmware single page information in the MTP memory address space is: MTP start address +256 × 5.
According to the firmware upgrading method, the processor performs paging processing on the current firmware information, so that each page of firmware single page information can be respectively sent to the part to be upgraded, the part to be upgraded does not need to cache information byte by byte, but can process information of preset byte number once, the information sending efficiency is improved, and the firmware upgrading efficiency is improved; furthermore, the processor can determine the single-page writing state of each piece of firmware single-page information, so that the piece of firmware single-page information of one page can be retransmitted after the piece of firmware single-page information fails to be transmitted, instead of being retransmitted after all the current piece of firmware information is transmitted, and the firmware upgrading efficiency is further improved.
Fig. 5 is a schematic flowchart of a firmware upgrading method in an embodiment, where the embodiment relates to a manner in which a processor determines whether to upgrade firmware of a component to be upgraded, and on the basis of the embodiment, as shown in fig. 5, before the step S101, the method further includes:
s401, obtaining the version number of the historical firmware information stored in the part to be upgraded.
Specifically, the processor may determine whether to perform a firmware upgrade on the component to be upgraded by comparing the version numbers. The processor can acquire the version number of the historical firmware information stored in the part to be upgraded, and can read the instruction through the version number to instruct the part to be upgraded to write the version number into the register; the version number may also be queried in the historical firmware information by reading the historical firmware information, which is not limited herein.
Optionally, the version number of the historical firmware information is located at a preset position in the historical firmware information; the historical firmware information comprises at least one historical firmware single page information; the processor can obtain a target page index of the history firmware single page information where the version number is located, and then writes the target page index and a reading operation instruction into a control register of the component; the reading operation instruction is used for indicating the part to be upgraded to return historical firmware single page information corresponding to the target page number index; and reading the version number of the historical firmware information from the historical firmware single page information corresponding to the target page index based on the preset position.
The version number of the historical firmware information may be located on a first page of the historical firmware information, or may be located on any page of the historical firmware information, which is not limited herein. Optionally, the version number of the historical firmware information is located in the last ten bytes of the last page of the historical firmware information.
When the processor acquires the target page number index of the history firmware single page information where the version number is located, the processor can determine the target page number corresponding to the version number according to a preset rule, for example, the processor stores the page number where the version number is located; alternatively, the processor may receive the target page index sent by the component to be upgraded through the target page index reading instruction, which is not limited herein. Optionally, when the version number is located at a preset position in the last page of the historical firmware information, the processor may read the total number of pages of the historical firmware information stored in the status register of the component to be upgraded; then, based on the total number of pages, the page number of the most significant page of the historical firmware information is determined as the target page number index. For example, one of the data registers of the component to be upgraded may store the total PAGE number of the historical firmware information, and the register may be REG _ NUM _ PAGE, and the processor may learn the total PAGE number M of the historical firmware information by reading the value of the data register and then determine that the version number of the historical firmware information is on the mth PAGE of the historical firmware information.
After the processor can obtain the target page number index, historical firmware single page information corresponding to the target page number index can be read. Specifically, the processor may write a target page number index into the control register and a read operation instruction into the control register. The target page number index and the read operation instruction may be located in different control subregisters. For example, the processor writes a target page number index into the control sub-register 0x20, and then writes a read operation instruction 0x70 into the control sub-register 0x90, so that the component to be upgraded can write the single-page information of the historical firmware corresponding to the target page number index into the DATA register REG _ DATA in the storage area, and set the value of the status register according to the single-page write status.
Further, the processor may determine whether the writing of the historical firmware single page information is completed according to the value in the status register, for example, the processor may continuously read the value of bit0 in the status register, if bit0 is 1, it identifies that the component to be upgraded is being written, and if bit0 is 0, it indicates that the writing of the historical firmware single page information is completed. If bit0 is always 1 for a period of time (e.g., 10ms), the processor may consider the historical firmware single page information write to fail and stop the firmware upgrade. After the single page write status information indicates that the historical firmware single page information write is complete, the processor may read the historical firmware single page information in the data register and then read a version number of the historical firmware information at a preset location, e.g., the last ten bytes, in the historical firmware single page information. In addition, when the part to be upgraded is written into the historical firmware single page information, the page number corresponding to the historical firmware single page information can be written into the data register at the same time, and the processor can only read the version number in the historical firmware single page information with the preset byte number. For example, the DATA register REG _ DATA includes 256 bytes of historical firmware single page information and 4 bytes of page number information, and the processor may read the last ten bytes of the 256 bytes to obtain the version number.
S402, when the version number of the historical firmware information is lower than the version number of the current firmware information, determining to upgrade the firmware information in the part to be upgraded.
When the version number of the historical firmware information is lower than the version number of the current firmware information, the processor may determine to perform firmware upgrade on the component to be upgraded. When the version number of the historical firmware information is greater than or equal to the version number of the current firmware information, the processor may determine that a firmware upgrade is not required for the component.
According to the firmware upgrading method, the processor obtains the version number of the existing historical firmware information in the part to be upgraded and compares the version number of the historical firmware information with the version number of the current firmware information to determine whether the part is upgraded or not, and the current firmware information does not need to be compared with the historical firmware information to determine, so that the comparison data volume is reduced, and the firmware upgrading efficiency is improved; furthermore, because the version number of the historical firmware information is located at the preset position, the processor can directly and quickly read the information at the position to obtain the version number, and the firmware upgrading efficiency is further improved.
In one embodiment, on the basis of the above embodiments, after determining that the component to be upgraded is upgraded, the processor may enter the firmware upgrade mode by controlling the pin level of the component to be upgraded.
After determining that the component to be upgraded is upgraded and before sending the current firmware information to the component to be upgraded, the processor can forcibly reset the component to be upgraded in a hardware resetting manner. The processor can make the component to be upgraded reset forcibly and enter a firmware upgrading mode by controlling the pin level of the component to be upgraded. The control mode of the pin level is related to the pin definition of the part to be upgraded. For example, for a fast-charging MCU, the processor may pull up the reset gpio pin of the MCU, and pull down the clock pin for more than two seconds, so that the MCU enters a firmware upgrade mode to start executing a firmware upgrade program.
According to the firmware upgrading method, the processor enables the part to be upgraded to enter the firmware upgrading mode in a pin level control mode, and compared with entering the soft reset mode in an instruction mode, failure of entering the upgrading mode due to instruction sending errors can be avoided, and the firmware upgrading process is more stable.
In an embodiment, on the basis of the above embodiments, a firmware upgrading method is provided, which may be applied to firmware upgrading of a flash MCU by a mobile phone AP, as shown in fig. 6, and includes the following steps:
s501, reading the total page number of the historical firmware information stored in the status register of the part to be upgraded.
S502, based on the total page number, determining the page number of the most one page of the historical firmware information as a target page number index.
S503, writing the target page number index and the reading operation instruction into a control register of the component.
S504, based on the preset position, reading the version number of the historical firmware information from the historical firmware single page information corresponding to the target page number index.
And S505, determining whether the version number of the historical firmware information is lower than the version number of the current firmware information, if so, executing S506, and if not, exiting the firmware upgrading process.
And S506, entering a firmware upgrading mode by controlling the pin level of the part to be upgraded.
And S507, paging the current firmware information according to the preset byte number to obtain at least one firmware single page information.
And S508, repeatedly executing the single-page writing operation until the single-page information of the firmware is respectively sent to the part to be upgraded.
S509, determining whether the part to be upgraded finishes the writing operation of the current firmware information based on the writing state information returned by the part to be upgraded; if yes, go to S510.
And S510, writing the page number index of the single page information of the firmware to be verified into a control register of the component to be upgraded.
And S511, reading the checking state information in the state register of the component to be upgraded at intervals of a first preset time length.
S512, determining whether the first check information is calculated according to the check state information, if so, executing S513; if the process goes to step S513.
And S513, whether the time length for reading the check state information is greater than a second preset time length or not is judged, if yes, the firmware upgrading process is quitted, and if not, the step returns to the step of executing S511.
And S514, executing the same verification operation on the current firmware information to obtain a second verification result.
And S515, determining whether the first check result is the same as the second check result, if so, executing the S515, and if not, exiting the firmware upgrading process.
And S516, sending a firmware upgrading instruction to the part to be upgraded.
As shown in fig. 7, the single-page write operation may include:
s601, writing single page information of the firmware into a data register of the component to be upgraded.
And S602, writing the page number index corresponding to the firmware single page information into a data register of the component to be upgraded.
And S603, writing the write operation instruction into the control register of the component to be upgraded.
S604, reading single-page writing state information in a state register of the component to be upgraded at intervals of a third preset time length;
s605, determining whether the part to be upgraded finishes the writing operation of the single page information of the firmware according to the single page writing state information; if yes, the writing of the firmware single page information is completed; if not, executing S606;
and S606, judging whether the time for reading the single-page writing state information is longer than a fourth preset time, if so, exiting the single-page writing operation process, and if not, returning to execute S604.
The implementation principle and technical effect of the firmware upgrading method are similar to those of the above embodiments, and are not described herein again.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 8 is a block diagram of a firmware upgrading apparatus according to an embodiment. As shown in fig. 8, the above apparatus includes:
the sending module 10 is used for sending the current firmware information to the part to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the indicating module 20 is configured to indicate the component to be upgraded to perform a verification operation on the information in the cache region, and obtain a first verification result returned by the component to be upgraded;
a determining module 30, configured to determine whether the information in the cache area is the same as the current firmware information based on the first check result;
and the upgrading module 40 is configured to send a firmware upgrading instruction to the component to be upgraded when the information in the cache area is the same as the current firmware information.
In an embodiment, on the basis of the above embodiment, as shown in fig. 9, the above indication module 20 includes:
a determining unit 201, configured to determine whether the component to be upgraded has completed writing operation of the current firmware information based on the writing status information returned by the component to be upgraded;
and the indicating unit 202 is used for indicating the component to be upgraded to perform a verification operation on the information in the cache region when the component to be upgraded has completed the writing operation of the current firmware information.
In an embodiment, on the basis of the foregoing embodiment, the current firmware information includes at least one firmware single page information, and the indication unit 202 is specifically configured to: and indicating the part to be upgraded to perform cyclic redundancy CRC (cyclic redundancy check) on the single page information of the firmware with the preset number in the cache region.
In an embodiment, on the basis of the foregoing embodiment, the foregoing indicating unit 202 is specifically configured to: the page number index of the single page information of the firmware to be verified is written into a control register of the component to be upgraded; the page index is used for indicating the part to be upgraded to carry out CRC (cyclic redundancy check) on the firmware single page information corresponding to the page index, and returning a first check result and check state information.
In one embodiment, on the basis of the above embodiment, as shown in fig. 10, the above indication module 20 includes:
the first reading unit 203 is configured to read check state information in a state register of the component to be upgraded every first preset time interval;
and the second reading unit 204 is configured to read a first verification result in the data register of the component to be upgraded when the verification state information represents that the calculation of the first verification information is completed.
In an embodiment, on the basis of the above embodiment, as shown in fig. 11, the determining module 30 includes:
a verification unit 301, configured to perform the same verification operation on the current firmware information to obtain a second verification result;
a comparing unit 302, configured to determine that the information in the cache area is the same as the current firmware information when the first check result is the same as the second check result.
In an embodiment, on the basis of the above embodiment, as shown in fig. 12, the sending module 10 includes:
the paging unit 101 is configured to perform paging processing on current firmware information according to a preset number of bytes to obtain at least one firmware single page information;
and the sending unit 102 is used for respectively sending the firmware single page information to the parts to be upgraded.
In an embodiment, on the basis of the foregoing embodiment, the sending unit 102 is specifically configured to: writing single page information of the firmware into a data register of the component to be upgraded; writing the write operation instruction into a control register of the component to be upgraded; and the write operation instruction is used for instructing the part to be upgraded to write the firmware single page information in the data register into the cache region.
In an embodiment, on the basis of the foregoing embodiment, the sending unit 102 is further configured to: and writing the page number index corresponding to the single page information of the firmware into a data register of the component to be upgraded.
In an embodiment, on the basis of the above embodiment, as shown in fig. 13, the apparatus further includes an obtaining module 50, configured to: acquiring the version number of historical firmware information stored in a part to be upgraded; and when the version number of the historical firmware information is lower than the version number of the current firmware information, determining to upgrade the firmware information in the part to be upgraded.
In an embodiment, on the basis of the above embodiment, as shown in fig. 14, the version number is located at a preset position in the firmware information, and the obtaining module 50 includes:
an obtaining unit 501, configured to obtain a target page index of the history firmware single page information where the version number is located;
a write unit 502 for writing a target page number index and a read operation instruction into a control register of the component; the reading operation instruction is used for indicating the part to be upgraded to return historical firmware single page information corresponding to the target page number index;
a third reading unit 503, configured to read, based on the preset position, a version number of the historical firmware information from the historical firmware single page information corresponding to the target page number index.
In an embodiment, on the basis of the above embodiment, the obtaining unit 501 is specifically configured to: taking the total number of pages of historical firmware information stored in a status register of a component to be upgraded; determining the page number of the most previous page of the historical firmware information as a target page number index based on the total page number; the version number is located at a preset position in the last page of the historical firmware information.
In an embodiment, on the basis of the above embodiment, as shown in fig. 15, the above apparatus further includes a control module 60 for: and entering a firmware upgrading mode by controlling the pin level of the part to be upgraded.
The implementation principle and technical effect of the firmware upgrading device provided in this embodiment are similar to those of the method embodiments described above, and are not described herein again.
The division of each module in the firmware upgrading device is only for illustration, and in other embodiments, the firmware upgrading device may be divided into different modules as needed to complete all or part of the functions of the firmware upgrading device.
For the specific definition of the firmware upgrading apparatus, reference may be made to the above definition of the firmware upgrading method, which is not described herein again. The modules in the firmware upgrading device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 16 is a schematic diagram of the internal structure of the electronic device in one embodiment. As shown in fig. 16, the electronic apparatus includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a firmware upgrade method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal digital assistant), a Point of sale (POS), a vehicle-mounted computer, and a wearable device.
Those skilled in the art will appreciate that the structure shown in fig. 16 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the firmware upgrading method when executing the computer program, and includes:
sending the current firmware information to a component to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the method comprises the steps that a component to be upgraded is instructed to execute verification operation on information in a cache region, and a first verification result returned by the component to be upgraded is obtained;
determining whether the information in the cache region is the same as the current firmware information or not based on the first check result;
and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded.
The implementation principle and technical effect of the electronic device provided by this embodiment are similar to those of the method embodiments described above, and are not described herein again.
The implementation of each module in the firmware upgrading device provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. Program modules constituted by such computer programs may be stored on the memory of the electronic device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to execute a computer program to implement the steps of the above-described firmware upgrade method, comprising:
sending the current firmware information to a component to be upgraded; the current firmware information is used for the part to be upgraded to write the current firmware information into the cache region;
the method comprises the steps that a component to be upgraded is instructed to execute verification operation on information in a cache region, and a first verification result returned by the component to be upgraded is obtained;
determining whether the information in the cache region is the same as the current firmware information or not based on the first check result;
and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a firmware upgrade method.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. A method for upgrading firmware, comprising:
sending the current firmware information to a component to be upgraded; the current firmware information is used for the component to be upgraded to write the current firmware information into a cache region;
the part to be upgraded is instructed to execute verification operation on the information in the cache region, and a first verification result returned by the part to be upgraded is obtained;
determining whether the information in the cache region is the same as the current firmware information based on the first check result;
and if the information in the cache region is the same as the current firmware information, sending a firmware upgrading instruction to the component to be upgraded.
2. The firmware upgrading method according to claim 1, wherein the instructing the component to be upgraded to perform a check operation on the information in the cache area comprises:
determining whether the part to be upgraded finishes the writing operation of the current firmware information or not based on writing state information returned by the part to be upgraded;
and if so, instructing the component to be upgraded to execute verification operation on the information in the cache region.
3. The firmware upgrade method according to claim 2, wherein the current firmware information includes at least one firmware single page information; the instructing the component to be upgraded to perform a checking operation on the information in the cache region includes:
and indicating the part to be upgraded to perform cyclic redundancy CRC (cyclic redundancy check) on the single page information of the firmware with the preset number in the cache region.
4. The firmware upgrading method according to claim 3, wherein the instructing the component to be upgraded to perform CRC check on a preset number of firmware single page information in the cache area comprises:
writing a page number index of single page information of the firmware to be verified into a control register of the component to be upgraded; the page index is used for indicating the part to be upgraded to carry out CRC (cyclic redundancy check) on the firmware single page information corresponding to the page index, and returning a first check result and check state information.
5. The firmware upgrading method according to claim 4, wherein the obtaining of the first verification result returned by the component to be upgraded comprises:
reading the check state information in the state register of the component to be upgraded every a first preset time interval;
and if the verification state information represents that the first verification information is calculated, reading a first verification result in a data register of the component to be upgraded.
6. The firmware upgrade method according to any one of claims 1 to 5, wherein the determining whether the information in the cache area is the same as the current firmware information based on the first check result includes:
executing the same check operation on the current firmware information to obtain a second check result;
and if the first check result is the same as the second check result, determining that the information in the cache region is the same as the current firmware information.
7. The firmware upgrading method according to any one of claims 1 to 5, wherein the sending the current firmware information to the component to be upgraded comprises:
paging the current firmware information according to the preset byte number to obtain at least one firmware single page information;
and respectively sending the firmware single page information to the parts to be upgraded.
8. The firmware upgrading method according to claim 7, wherein the sending the firmware single page information to the component to be upgraded comprises:
writing the firmware single page information into a data register of the component to be upgraded;
writing a write operation instruction into a control register of the component to be upgraded; the write operation instruction is used for instructing the to-be-upgraded component to write the firmware single page information in the data register into the cache region.
9. The firmware upgrade method according to claim 8, further comprising:
and writing the page number index corresponding to the firmware single page information into a data register of the component to be upgraded.
10. The firmware upgrade method according to any one of claims 1 to 5, wherein before sending the current firmware information to the component to be upgraded, further comprising:
acquiring the version number of historical firmware information stored in a part to be upgraded;
and when the version number of the historical firmware information is lower than the version number of the current firmware information, determining to upgrade the firmware information in the part to be upgraded.
11. The firmware upgrade method according to claim 10, wherein the version number is located at a preset position in the firmware information; the historical firmware information comprises at least one historical firmware single page information; the acquiring of the version number of the historical firmware information stored in the component to be upgraded includes:
acquiring a target page number index of the history firmware single page information where the version number is located;
writing the target page number index and a read operation instruction into a control register of the component; the reading operation instruction is used for indicating the part to be upgraded to return historical firmware single page information corresponding to the target page number index;
and reading the version number of the historical firmware information in the historical firmware single page information corresponding to the target page index based on the preset position.
12. The firmware upgrading method according to claim 11, wherein the obtaining of the target page number index of the historical firmware single page information where the version number is located includes:
reading the total page number of the historical firmware information stored in the status register of the component to be upgraded;
determining the page number of the most previous page of the historical firmware information as the target page number index based on the total page number; the version number is located at a preset position in the last page of the historical firmware information.
13. The firmware upgrade method according to any one of claims 1 to 5, wherein before sending the current firmware information to the component to be upgraded, further comprising:
and entering a firmware upgrading mode by controlling the pin level of the part to be upgraded.
14. A firmware upgrade apparatus, comprising:
the sending module is used for sending the current firmware information to the part to be upgraded; the current firmware information is used for the component to be upgraded to write the current firmware information into a cache region;
the indication module is used for indicating the component to be upgraded to execute verification operation on the information in the cache region and obtaining a first verification result returned by the component to be upgraded;
a determining module, configured to determine whether information in the cache area is the same as the current firmware information based on the first check result;
and the upgrading module is used for sending a firmware upgrading instruction to the component to be upgraded when the information in the cache area is the same as the current firmware information.
15. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the firmware upgrade method according to any one of claims 1 to 13.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the firmware upgrade method according to any one of claims 1 to 13.
CN202010528598.7A 2020-06-11 2020-06-11 Firmware upgrading method and device, electronic equipment and computer readable storage medium Pending CN111752584A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010528598.7A CN111752584A (en) 2020-06-11 2020-06-11 Firmware upgrading method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010528598.7A CN111752584A (en) 2020-06-11 2020-06-11 Firmware upgrading method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111752584A true CN111752584A (en) 2020-10-09

Family

ID=72676012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010528598.7A Pending CN111752584A (en) 2020-06-11 2020-06-11 Firmware upgrading method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111752584A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214235A (en) * 2020-10-23 2021-01-12 Oppo广东移动通信有限公司 Method and device for upgrading quick-charging firmware, mobile terminal and storage medium
CN112579128A (en) * 2020-12-23 2021-03-30 恒为科技(上海)股份有限公司 Data processing method, upper computer, single chip microcomputer and system
CN113608771A (en) * 2021-06-20 2021-11-05 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for quickly programming FPGA firmware and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007202583A1 (en) * 2006-06-06 2007-12-20 Mackay, Julie Michelle A system, method and software application for managing meta-language documents
CN107832074A (en) * 2017-11-28 2018-03-23 福州瑞芯微电子股份有限公司 A kind of intelligent sound box data updating method and device
CN110389778A (en) * 2019-07-19 2019-10-29 苏州浪潮智能科技有限公司 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform
CN111095200A (en) * 2018-08-23 2020-05-01 深圳市汇顶科技股份有限公司 Method, device and equipment for safely upgrading embedded program and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2007202583A1 (en) * 2006-06-06 2007-12-20 Mackay, Julie Michelle A system, method and software application for managing meta-language documents
CN107832074A (en) * 2017-11-28 2018-03-23 福州瑞芯微电子股份有限公司 A kind of intelligent sound box data updating method and device
CN111095200A (en) * 2018-08-23 2020-05-01 深圳市汇顶科技股份有限公司 Method, device and equipment for safely upgrading embedded program and storage medium
CN110389778A (en) * 2019-07-19 2019-10-29 苏州浪潮智能科技有限公司 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214235A (en) * 2020-10-23 2021-01-12 Oppo广东移动通信有限公司 Method and device for upgrading quick-charging firmware, mobile terminal and storage medium
CN112579128A (en) * 2020-12-23 2021-03-30 恒为科技(上海)股份有限公司 Data processing method, upper computer, single chip microcomputer and system
CN112579128B (en) * 2020-12-23 2023-05-09 恒为科技(上海)股份有限公司 Data processing method, upper computer, singlechip and system
CN113608771A (en) * 2021-06-20 2021-11-05 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for quickly programming FPGA firmware and readable medium

Similar Documents

Publication Publication Date Title
CN111752584A (en) Firmware upgrading method and device, electronic equipment and computer readable storage medium
US9110786B2 (en) Read operation prior to retrieval of scatter gather list
JP5458574B2 (en) Multiprocessor system, portable terminal using multiprocessor system
US9960626B2 (en) Apparatus and method for updating remote standalone firmware
US7873778B2 (en) Apparatus for storing page data
CN110716727B (en) Software upgrading method and system
EP2003569A9 (en) Flash memory controller
CN102077176A (en) Copyback optimization for memory system
KR20050069925A (en) Non-volatile storage device control method
TWI598816B (en) Electronic device and method for firmware updating thereof
US20150278014A1 (en) Apparatus and method for detecting and correcting read disturb errors on a flash memory
US20170249245A1 (en) Control device, storage device, and storage control method
CN113360161A (en) Resource upgrading method and related product
CN111752583B (en) Firmware upgrading method, device, electronic equipment and computer readable storage medium
CN114760276B (en) Method and device for downloading data and secure element
CN111752583A (en) Firmware upgrading method and device, electronic equipment and computer readable storage medium
US9443604B2 (en) Electronic device and data-management method thereof
CN100363893C (en) Loading system and method
CN108121610B (en) Memory system and operating method thereof
JP5543274B2 (en) Electronic control device for automobile and data writing method in electronic control device for automobile
CN109299018B (en) Method and device for reading historical data in Flash memory
JP5666273B2 (en) Data storage device and data storage method
WO2013122725A1 (en) System and method of sending correction data to a buffer of a non-volatile memory
US10379875B2 (en) Solid state storage device and program loading method thereof
JP5851819B2 (en) Data writing / reading apparatus and data writing / reading method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination