CN110389778A - A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform - Google Patents

A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform Download PDF

Info

Publication number
CN110389778A
CN110389778A CN201910657532.5A CN201910657532A CN110389778A CN 110389778 A CN110389778 A CN 110389778A CN 201910657532 A CN201910657532 A CN 201910657532A CN 110389778 A CN110389778 A CN 110389778A
Authority
CN
China
Prior art keywords
firmware
information
updated
program data
mcu
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.)
Withdrawn
Application number
CN201910657532.5A
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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910657532.5A priority Critical patent/CN110389778A/en
Publication of CN110389778A publication Critical patent/CN110389778A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

This application discloses the MCU firmware upgrade methods that a kind of isomery accelerates platform, comprising: judges whether the firmware information got matches with local firmware information;If so, the first predeterminated position in Flash is written in the firmware information, preliminary check is sent to host computer and is successfully instructed, so that the host computer sends firmware program data to be updated;Judge whether the firmware program data to be updated are correct according to the check code in the firmware information;If so, the second predeterminated position in the Flash is written in the firmware program data to be updated.By first being verified to firmware, then firmware data is verified according to the check code in firmware information, avoids the occurrence of the problem that firmware program data can not be examined by modification, guarantees the reliability in firmware upgrade operation.Disclosed herein as well is MCU firmware upgrade system, server and computer readable storage mediums that a kind of isomery accelerates platform, have the above beneficial effect.

Description

A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform
Technical field
This application involves field of computer technology, in particular to a kind of MCU firmware upgrade method of isomery acceleration platform, MCU firmware upgrade system, server and computer readable storage medium.
Background technique
At present in cloud computation data center technical field, the isomery for commonly using CPU, FPGA and MCU accelerates platform to improve The real-time of data processing.During use it is generally necessary to which the firmware to modules upgrades.In order to reduce to MCU The cost that (Microcontroller Unit, micro-control unit) chip (such as ARM chip) is upgraded improves upgrading effect Rate, the mode for generalling use IAP in the prior art upgrade ARM chip, that is, carry out application on site volume to ARM chip Journey.Specifically, being that corresponding program carries out programming to the partial region in Flash (flash memory) in the process of running, to realize The firmware of ARM is updated.It is usually three sections by the Falsh of MCU points to reach the target of firmware update, one section for depositing Firmware program is put, one section is used to store firmware update program, such as Bootloader (loading procedure) program, final stage are used for Store firmware update flag bit.The general work process of online upgrading is to run Bootloader program after powering on first, Bootloader programmed check firmware update flag bit whether set, firmware upgrade is carried out if set, if without set Then jump to executing application in firmware program.
But since firmware update flag bit updates not in time, it may appear that unsafe condition.When user is unconscious or After firmware program in person Flash is changed unintentionally by extraneous factor, and firmware upgrade flag bit is not set, this when If waited to device power, Bootloader, which still can be jumped in firmware program, goes operation application program, but this when Application program be mistake, cannot achieve due function.Firmware upgrade is especially easy to appear in firmware upgrade process The case where failure.
Therefore, how to avoid firmware program by modify but can not be verified problem, be that those skilled in the art pay close attention to Important Problems.
Summary of the invention
The purpose of the application be to provide a kind of isomery accelerate the MCU firmware upgrade method of platform, MCU firmware upgrade system, Server and computer readable storage medium, by first being verified to firmware, then according to the check code in firmware information Firmware data is verified, the problem that firmware program data can not be examined by modification is avoided the occurrence of, guarantees firmware upgrade Reliability in operation.
In order to solve the above technical problems, the application provides a kind of MCU firmware upgrade method of isomery acceleration platform, comprising:
Judge whether the firmware information got matches with local firmware information;
If so, the first predeterminated position in Flash is written in the firmware information, preliminary check success is sent to host computer Instruction, so that the host computer sends firmware program data to be updated;
Judge whether the firmware program data to be updated are correct according to the check code in the firmware information;
If so, the second predeterminated position in the Flash is written in the firmware program data to be updated.
Optionally, further includes:
After second predeterminated position is written in the firmware file to be updated, sends firmware update and successfully instruct.
Optionally, further includes:
When MCU electrifying startup, according to the check code of first predeterminated position to the firmware of second predeterminated position Program data is verified;
When passed the verification, start-up operation is executed to the firmware program data;
Obstructed out-of-date when verifying, Xiang Suoshu host computer sends firmware error instruction.
Optionally, judge whether the firmware program data to be updated are correct according to the check code in the firmware information, Include:
Check code calculation processing is carried out to the firmware program data to be updated, obtains check code to be confirmed;
Judge whether check code in the firmware information and the check code to be confirmed are identical.
Optionally, further includes:
When the firmware program data to be updated are incorrect, Xiang Suoshu host computer, which is sent, updates error in data instruction.
The application also provides a kind of MCU firmware upgrade system of isomery acceleration platform, comprising:
Firmware information judgment module, for judging whether the firmware information got matches with local firmware information;
Firmware information writes with a brush dipped in Chinese ink module, is used for when the firmware information is matched with the local firmware information, will be described solid The first predeterminated position in Flash is written in part information, sends preliminary check to host computer and successfully instructs, so as to host computer hair Send firmware program data to be updated;
More new data judgment module, for judging the firmware program to be updated according to the check code in the firmware information Whether data are correct;
Firmware update module, for when the firmware program data to be updated are correct, by the firmware program to be updated The second predeterminated position in the Flash is written in data.
Optionally, further includes:
Correction verification module is powered on, for when MCU electrifying startup, according to the check code of first predeterminated position to described the The firmware program data of two predeterminated positions are verified;
Electrifying startup module, for when passed the verification, executing start-up operation to the firmware program data;
Mistake sending module, for obstructed out-of-date when verifying, Xiang Suoshu host computer sends firmware error instruction.
Optionally, the more new data judgment module, comprising:
Check code computing unit, for carrying out check code calculation processing to the firmware program data to be updated, obtain to Confirm check code;
Check code judging unit, for judge the check code in the firmware information and the check code to be confirmed whether phase Together.
The application also provides a kind of server, comprising:
Memory, for storing computer program;
Processor, the step of MCU firmware upgrade method as described above is realized when for executing the computer program.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium The step of machine program, the computer program realizes MCU firmware upgrade method as described above when being executed by processor.
A kind of isomery provided herein accelerates the MCU firmware upgrade method of platform, comprising: judges the firmware got Whether information matches with local firmware information;If so, the first predeterminated position in Flash is written in the firmware information, upwards Position machine sends preliminary check and successfully instructs, so that the host computer sends firmware program data to be updated;Believed according to the firmware Check code in breath judges whether the firmware program data to be updated are correct;If so, by the firmware program number to be updated According to the second predeterminated position being written in the Flash.
Whether the firmware information got by judgement matches between original firmware information, by firmware if matching Information is written in the first predeterminated position, to judge that firmware program data are according to the firmware information in electrifying startup It is no mistake occur, then judge whether the firmware program data to be updated got are correct, if then by firmware program to be updated The second predeterminated position is written in data, realizes firmware update, and does not influence the firmware information saved, so as to can be with when subsequent power on Using the firmware information, simultaneously as first then verification firmware information judges information of check code, firmware data judgement is improved Reliability avoids firmware data by check code judgement and is modified the case where can not but verifying, further improves and upgraded The reliability verified in journey.
The application also provides the MCU firmware upgrade system that a kind of isomery accelerates platform, server and computer-readable deposits Storage media has the above beneficial effect, and therefore not to repeat here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart for the MCU firmware upgrade method that the first isomery provided by the embodiment of the present application accelerates platform;
Fig. 2 is the flow chart for the MCU firmware upgrade method that second of isomery accelerates platform provided by the embodiment of the present application;
Fig. 3 is a kind of structural representation of the MCU firmware upgrade system of isomery acceleration platform provided by the embodiment of the present application Figure.
Specific embodiment
The core of the application be to provide a kind of isomery accelerate the MCU firmware upgrade method of platform, MCU firmware upgrade system, Server and computer readable storage medium, by first being verified to firmware, then according to the check code in firmware information Firmware data is verified, the problem that firmware program data can not be examined by modification is avoided the occurrence of, guarantees firmware upgrade Reliability in operation.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the prior art, in order to which the Falsh of MCU points are usually three sections by the target for reaching firmware update, one section for depositing Firmware program is put, one section is used to store firmware update program, such as Bootloader program, and final stage is for storing firmware more New flag bit.The general work process of online upgrading is to run Bootloader program, Bootloader journey after powering on first Sequence examine firmware update flag bit whether set, firmware upgrade is carried out if set, firmware is jumped to if without set Executing application in program.But since firmware update flag bit updates not in time, it may appear that unsafe condition.When User is unconscious or Flash in firmware program changed unintentionally by extraneous factor after, and firmware upgrade flag bit is not It is set, if this when, to device power, Bootloader, which still can be jumped in firmware program, goes operation application program, But the application program of this when is mistake, cannot achieve due function.It is easy especially in firmware upgrade process There is the case where firmware upgrade failure.
Therefore, the application provides a kind of MCU firmware upgrade method of isomery acceleration platform, passes through the firmware for judging to get Whether information matches between original firmware information, and firmware information is written in the first predeterminated position if matching, with Just it can judge whether firmware program data occur mistake according to the firmware information in electrifying startup, then judgement is got Whether firmware program data to be updated are correct, if the second predeterminated position then is written in firmware program data to be updated, realize solid Part updates, and does not influence the firmware information saved, so that the firmware information can be used when subsequent power on, simultaneously as first Then verification firmware information judges information of check code, improve the reliability of firmware data judgement, is avoided by check code judgement Firmware data is modified the case where can not but verifying, and further improves the reliability verified in escalation process.
Referring to FIG. 1, Fig. 1 is the firmware upgrade side MCU that the first isomery provided by the embodiment of the present application accelerates platform The flow chart of method.
In the present embodiment, this method may include:
S101, judges whether the firmware information got matches with local firmware information;If so, executing S102;If it is not, Then execute S105;
This step is intended to judge whether the firmware information got matches with local firmware information, that is, first uses firmware Information rather than firmware file carry out preliminary test.If this time firmware update is not suitable for the hardware, thus can to avoid to Firmware transmits firmware file, reduces volume of transmitted data, improves the efficiency of firmware upgrade.
Specifically, the firmware information may include: device name, firmware version number, firmware size, cyclic redundancy check.Pass through Device name therein, firmware version number, firmware size can carry out the preliminary check in this step.It is as follows respectively:
It examines device name: mainly judging whether the firmware to be updated and equipment match, only firmware and equipment phase With just can be carried out upgrade job;
It examines firmware version number: being on the one hand whether the judgement version number to be updated conflicts with the firmware in current Flash, On the other hand the firmware version number of burning in equipment is checked convenient for the later period;
Examine firmware size: for judging firmware before the update if appropriate for this Flash size, if firmware is greater than Flash capacity then determines not upgrading.
The first predeterminated position in Flash is written in firmware information by S102, is sent preliminary check to host computer and is successfully referred to It enables, so that host computer sends firmware program data to be updated;
On the basis of S101, this step is intended to that first in Flash is written in firmware information after firmware information matches Predeterminated position.Wherein, the first predeterminated position is for storing the memory range of firmware information in flash, with storage firmware journey The position of sequence is distinguished, that is, the first predeterminated position and the second predeterminated position it is mutually indepedent, be independent of each other, guarantee data storage Security and reliability.
Further, it then sends preliminary check to host computer successfully to instruct, so that host computer sends firmware program to be updated Data.
General is by firmware program data and firmware information while to download in the prior art, then passes through firmware information Judge whether firmware program data meet the requirements, carries out corresponding firmware update behaviour according to firmware program data when meeting the requirements Make, but does not save firmware information.Namely when firmware changes, when being modified, the prior art is also had no idea quickly Verify firmware situation.
And through this embodiment in the step, firmware information can be stored in the first predeterminated position so as to when powering on When starting, can be judged according to firmware information operation firmware it is whether correct, if go wrong, improve MCU operation can By property.Also, the verification data are stored in FLASH, and when use can directly acquire, and maintain the efficiency of verification.
S103 judges whether firmware program data to be updated are correct according to the check code in firmware information;If so, executing S104;If it is not, then executing S105;
On the basis of S102, this step mainly judges whether firmware program data to be updated are correct according to check code. Wherein, check code can be CRC (Cyclic Redundancy Check, cyclic redundancy check) check code, be also possible to MD5 It is worth check code, can also be the check code of cryptographic Hash, it is seen then that the form of check code is not unique in the present embodiment, does not do herein It is specific to limit.
Optionally, this step may include:
Check code calculation processing is carried out to firmware program data to be updated, obtains check code to be confirmed;
Judge whether check code in firmware information and check code to be confirmed are identical.
The second predeterminated position in Flash is written in firmware program data to be updated by S104;
On the basis of S102, this step is intended to execute firmware and writes with a brush dipped in Chinese ink operation, that is, by firmware program data to be updated The second predeterminated position in Flash is written.The mode that the operation that firmware program data are write with a brush dipped in Chinese ink is carried out in this step can be using existing Any one firmware for having technology to provide writes with a brush dipped in Chinese ink method, is not specifically limited herein.
Wherein, the first predeterminated position in the present embodiment and the second predeterminated position can be according to firmware files in the prior art Size space and the memory space of flash delimited, also, the information data amount saved in the first predeterminated position is smaller, It will not influence the memory space of firmware.
S105 sends to host computer and updates error in data instruction.
This step is intended to transmit the message for updating error.
Optionally, the present embodiment can also include:
When firmware program data to be updated are incorrect, sent to host computer and update error in data instruction.
To sum up, whether the present embodiment is matched by the firmware information that judgement is got between original firmware information, such as Firmware information is then written in the first predeterminated position by fruit matching, to be judged according to the firmware information in electrifying startup Whether firmware program data there is mistake, then judge whether the firmware program data to be updated got are correct, if then will The second predeterminated position is written in firmware program data to be updated, realizes firmware update, and does not influence the firmware information saved, so as to It is subsequent that the firmware information can be used when powering on, simultaneously as first then verification firmware information judges information of check code, improve The reliability of firmware data judgement avoids firmware data by check code judgement and is modified the case where can not but verifying, into one Step improves the reliability verified in escalation process.
Below by way of one embodiment, the MCU firmware upgrade method of platform is accelerated to do a kind of isomery provided by the present application It further illustrates.
Referring to FIG. 2, Fig. 2 is the firmware upgrade side MCU that second of isomery accelerates platform provided by the embodiment of the present application The flow chart of method.
In the present embodiment, this method may include:
S201, judges whether the firmware information got matches with local firmware information;If so, executing S202;If it is not, Then execute S205;
The first predeterminated position in Flash is written in firmware information by S202, is sent preliminary check to host computer and is successfully referred to It enables, so that host computer sends firmware program data to be updated;
S203 judges whether firmware program data to be updated are correct according to the check code in firmware information;If so, executing S204;If it is not, then executing S205;
The second predeterminated position in Flash is written in firmware program data to be updated by S204;
S205 sends to host computer and updates error in data instruction;
S206, when MCU electrifying startup, according to the check code of the first predeterminated position to the firmware program of the second predeterminated position Data are verified;
S207 executes start-up operation to firmware program data when passed the verification;
S208, it is obstructed out-of-date when verifying, firmware error instruction is sent to host computer.
As it can be seen that the S206 to S208 in the present embodiment is mainly to the school how used in the first predeterminated position in the application Code is tested to be described further.It, can be according to the school saved in the first predeterminated position namely at any time when MCU is powered on It tests code to verify firmware program data, to guarantee MCU reliability of operation.
As it can be seen that whether the present embodiment is matched by the firmware information that judgement is got between original firmware information, such as Firmware information is then written in the first predeterminated position by fruit matching, to be judged according to the firmware information in electrifying startup Whether firmware program data there is mistake, then judge whether the firmware program data to be updated got are correct, if then will The second predeterminated position is written in firmware program data to be updated, realizes firmware update, and does not influence the firmware information saved, so as to It is subsequent that the firmware information can be used when powering on, simultaneously as first then verification firmware information judges information of check code, improve The reliability of firmware data judgement avoids firmware data by check code judgement and is modified the case where can not but verifying, into one Step improves the reliability verified in escalation process.
Below by way of a specific embodiment, to a kind of MCU firmware upgrade of isomery acceleration platform provided by the present application Method is described further.
The present embodiment carries out CRC operation to the firmware to be updated by the way of CRC check, first with host computer, so The CRC operation result of two byte lengths is handed down to terminal MCU afterwards.After MCU receives result, first by CRC operation result Fixation position of the fireware_code1 programming into Flash.In device power operation, can run in Flash first Bootloader program, Bootloader program carry out CRC operation to APP firmware again and obtain fireware_code2, then Fireware_code1 is compared with fireware_code2.If fireware_code1 and fireware_code2 mono- It causes, then jumps to APP program;If comparison result is inconsistent, Bootloader program is continued to run, is waited to APP firmware Upgraded.
It, can be effective using the method for CRC check verifying firmware validity compared with the method for simple flag bit set Avoid because APP program is not normally functioning or can not achieve caused by artificial or external factor changes unintentionally firmware The problem of original function.
Wherein, Bootloader program is the program for being responsible for carrying out data write-in.
Specifically, a kind of isomery provided in this embodiment accelerates the MCU firmware upgrade method of platform, may include:
Firstly, running two sections of programs in MCU: being responsible for the Bootloader program of online upgrading and be responsible for realizing function APP program.Bootloader program, Bootloader programmed check APP firmware validity are run after powering on first.If inspection It is correct to test firmware, then jumps directly to the execution of APP program, realizes specific function, until host computer sends firmware upgrade instruction; If examining firmware incorrect or the never programming of APP program, the cyclic program in Bootloader is executed always and is waited Position machine sends firmware upgrade instruction.
Firmware upgrade process may include:
Step 1, by communication interface, host computer sends firmware upgrade instruction;Such as Terminal Ready, then preparation is returned to just Thread response instruction;
Step 2, if host computer receives the ready response instruction of terminal return, firmware information is issued, as terminal is set Standby title, firmware version number, firmware size, CRC check result etc.;If information is correct, firmware information is written terminal Fixation position in Flash simultaneously returns to waiting for upgrading response instruction;
Step 3, if host computer receive terminal return etc. response to be upgraded instruction, the HEX file of firmware is handed down to Terminal device;HEX file is put into caching buff by terminal device, and carries out CRC check to file.It will if verification is correct Position is fixed in HEX file write-in Flash, and returns to the successful response instruction of programming;
Step 4, it if host computer receives the programming successful respond instruction of terminal return, sends firmware update and finishes instruction. At this point, terminal program jumps to Bootloader program original position again examines firmware validity;If firmware update success, Firmware verification passes through at this time, and programming jump to APP is applied.
Wherein, firmware information includes device name, firmware version number, firmware size, CRC check, and firmware validity is examined It specifically includes that
It examines device name: mainly confirming whether the firmware to be updated and equipment match, only firmware and equipment phase With just can be carried out upgrade job;
It examines firmware version number: being on the one hand whether the judgement version number to be updated conflicts with the firmware in current Flash, On the other hand the firmware version number of burning in equipment is checked convenient for the later period;
Examine firmware size: for examining firmware if appropriate for this Flash size before the update, if firmware is greater than Flash capacity then determines not upgrading;
It examines CRC check: referring to that host computer calculates the fireware_code1 obtained, after completing for HEX file reception Firmware validity comparison;
Device name is wherein examined, firmware version number is examined, firmware size step is examined only to need to judge in escalation process, CRC check is examined to require to judge in start process in escalation process and each power on.
The embodiment of the present application provides a kind of MCU firmware upgrade method of isomery acceleration platform, can pass through judgement and obtain To firmware information whether match between original firmware information, firmware information is written to the first default position if matching In setting, to judge whether firmware program data mistake occur according to the firmware information in electrifying startup, then judge Whether the firmware program data to be updated got are correct, if the second default position then is written in firmware program data to be updated It sets, realizes firmware update, and do not influence the firmware information saved, so that the firmware information can be used when subsequent power on, together When, due to first verifying firmware information and then judging information of check code, the reliability of firmware data judgement is improved, check code is passed through Judgement avoids firmware data and is modified the case where can not but verifying, and further improves the reliability verified in escalation process.
The MCU firmware upgrade system of platform is accelerated to be introduced a kind of isomery provided by the embodiments of the present application below, under A kind of isomery of text description accelerates the MCU firmware upgrade system of platform and a kind of above-described isomery to accelerate the MCU of platform solid Part upgrade method can correspond to each other reference.
Referring to FIG. 3, Fig. 3 is a kind of MCU firmware upgrade system of isomery acceleration platform provided by the embodiment of the present application Structural schematic diagram.
In the present embodiment, which may include:
Firmware information judgment module 100, for judging whether the firmware information got matches with local firmware information;
Firmware information writes with a brush dipped in Chinese ink module 200, for when firmware information is matched with local firmware information, firmware information to be written The first predeterminated position in Flash sends preliminary check to host computer and successfully instructs, so that host computer sends firmware journey to be updated Ordinal number evidence;
More new data judgment module 300, for judging firmware program data to be updated according to the check code in firmware information It is whether correct;
Firmware update module 400, for when firmware program data to be updated are correct, firmware program data to be updated to be write Enter the second predeterminated position in Flash.
Optionally, which can also include:
Correction verification module is powered on, is used for when MCU electrifying startup, according to the check code of the first predeterminated position to the second default position The firmware program data set are verified;
Electrifying startup module, for when passed the verification, executing start-up operation to firmware program data;
Mistake sending module sends firmware error instruction to host computer for obstructed out-of-date when verifying.
Optionally, the more new data judgment module 300 may include:
Check code computing unit obtains to be confirmed for carrying out check code calculation processing to firmware program data to be updated Check code;
Check code judging unit, for judging whether the check code in firmware information is identical as check code to be confirmed.
The embodiment of the present application also provides a kind of server, comprising:
Memory, for storing computer program;
Processor realizes MCU firmware upgrade method as described above in Example when for executing the computer program The step of.
The embodiment of the present application also provides a kind of computer readable storage medium, stores on the computer readable storage medium There is computer program, the computer program realizes the firmware upgrade side MCU as described above in Example when being executed by processor The step of method.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Accelerate MCU firmware upgrade method, the MCU firmware upgrade system of platform to a kind of isomery provided herein above System, server and computer readable storage medium are described in detail.Specific case used herein is to the application's Principle and embodiment is expounded, the present processes that the above embodiments are only used to help understand and its core Thought.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application It is interior.

Claims (10)

1. the MCU firmware upgrade method that a kind of isomery accelerates platform characterized by comprising
Judge whether the firmware information got matches with local firmware information;
If so, the first predeterminated position in Flash is written in the firmware information, preliminary check is sent to host computer and is successfully referred to It enables, so that the host computer sends firmware program data to be updated;
Judge whether the firmware program data to be updated are correct according to the check code in the firmware information;
If so, the second predeterminated position in the Flash is written in the firmware program data to be updated.
2. MCU firmware upgrade method according to claim 1, which is characterized in that further include:
After second predeterminated position is written in the firmware file to be updated, sends firmware update and successfully instruct.
3. MCU firmware upgrade method according to claim 1, which is characterized in that further include:
When MCU electrifying startup, according to the check code of first predeterminated position to the firmware program of second predeterminated position Data are verified;
When passed the verification, start-up operation is executed to the firmware program data;
Obstructed out-of-date when verifying, Xiang Suoshu host computer sends firmware error instruction.
4. MCU firmware upgrade method according to claim 1, which is characterized in that according to the verification in the firmware information Code judges whether the firmware program data to be updated are correct, comprising:
Check code calculation processing is carried out to the firmware program data to be updated, obtains check code to be confirmed;
Judge whether check code in the firmware information and the check code to be confirmed are identical.
5. MCU firmware upgrade method according to claim 1, which is characterized in that further include:
When the firmware program data to be updated are incorrect, Xiang Suoshu host computer, which is sent, updates error in data instruction.
6. the MCU firmware upgrade system that a kind of isomery accelerates platform characterized by comprising
Firmware information judgment module, for judging whether the firmware information got matches with local firmware information;
Firmware information writes with a brush dipped in Chinese ink module, for when the firmware information is matched with the local firmware information, the firmware to be believed Breath write-in Flash in the first predeterminated position, to host computer send preliminary check successfully instruct, so as to the host computer send to Update firmware program data;
More new data judgment module, for judging the firmware program data to be updated according to the check code in the firmware information It is whether correct;
Firmware update module, for when the firmware program data to be updated are correct, by the firmware program data to be updated The second predeterminated position in the Flash is written.
7. MCU firmware upgrade system according to claim 6, which is characterized in that further include:
Correction verification module is powered on, is used for when MCU electrifying startup, it is pre- to described second according to the check code of first predeterminated position If the firmware program data of position are verified;
Electrifying startup module, for when passed the verification, executing start-up operation to the firmware program data;
Mistake sending module, for obstructed out-of-date when verifying, Xiang Suoshu host computer sends firmware error instruction.
8. MCU firmware upgrade system according to claim 6, which is characterized in that the more new data judgment module, packet It includes:
Check code computing unit obtains to be confirmed for carrying out check code calculation processing to the firmware program data to be updated Check code;
Check code judging unit, for judging whether the check code in the firmware information and the check code to be confirmed are identical.
9. a kind of server characterized by comprising
Memory, for storing computer program;
Processor realizes such as MCU firmware upgrade described in any one of claim 1 to 5 when for executing the computer program The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes such as the firmware upgrade side MCU described in any one of claim 1 to 5 when the computer program is executed by processor The step of method.
CN201910657532.5A 2019-07-19 2019-07-19 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform Withdrawn CN110389778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910657532.5A CN110389778A (en) 2019-07-19 2019-07-19 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910657532.5A CN110389778A (en) 2019-07-19 2019-07-19 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform

Publications (1)

Publication Number Publication Date
CN110389778A true CN110389778A (en) 2019-10-29

Family

ID=68286883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910657532.5A Withdrawn CN110389778A (en) 2019-07-19 2019-07-19 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform

Country Status (1)

Country Link
CN (1) CN110389778A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309353A (en) * 2020-01-20 2020-06-19 山东超越数控电子股份有限公司 Method and device for updating FPGA (field programmable Gate array) firmware of operation board based on server control board
CN111538517A (en) * 2020-04-24 2020-08-14 苏州浪潮智能科技有限公司 Server firmware upgrading method and system, electronic equipment and storage medium
CN111752584A (en) * 2020-06-11 2020-10-09 Oppo广东移动通信有限公司 Firmware upgrading method and device, electronic equipment and computer readable storage medium
CN111782531A (en) * 2020-07-02 2020-10-16 江西联智集成电路有限公司 Method and system for detecting firmware integrity of chip
CN112181460A (en) * 2020-09-27 2021-01-05 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112559059A (en) * 2020-11-19 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 BIOS option configuration method and related device
CN112596749A (en) * 2020-12-28 2021-04-02 厦门亿联网络技术股份有限公司 Method and device for system power-on self-test and self-repair
CN112631628A (en) * 2020-12-11 2021-04-09 邦彦技术股份有限公司 Singlechip upgrading method, singlechip and storage medium
CN113220318A (en) * 2020-01-21 2021-08-06 广州汽车集团股份有限公司 Program updating method and device for motor controller and readable storage medium
CN113791808A (en) * 2021-10-20 2021-12-14 守卫者(杭州)科技有限公司 Bottom layer program upgrading method and device, computer equipment and storage medium
CN113805921A (en) * 2021-09-26 2021-12-17 深圳威消保科技有限公司 Firmware remote upgrading method and device
CN114124401A (en) * 2021-11-02 2022-03-01 佛吉亚歌乐电子(丰城)有限公司 Data authentication method, device, equipment and storage medium
CN116055316A (en) * 2021-10-28 2023-05-02 青岛海信宽带多媒体技术有限公司 Method for preventing online upgrade errors and optical module
CN117112001A (en) * 2023-10-24 2023-11-24 北京傲星科技有限公司 Method and device for upgrading software in board

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111309353B (en) * 2020-01-20 2023-05-23 超越科技股份有限公司 Method and equipment for updating operation board FPGA firmware based on server control board
CN111309353A (en) * 2020-01-20 2020-06-19 山东超越数控电子股份有限公司 Method and device for updating FPGA (field programmable Gate array) firmware of operation board based on server control board
CN113220318A (en) * 2020-01-21 2021-08-06 广州汽车集团股份有限公司 Program updating method and device for motor controller and readable storage medium
CN111538517A (en) * 2020-04-24 2020-08-14 苏州浪潮智能科技有限公司 Server firmware upgrading method and system, electronic equipment and storage medium
CN111538517B (en) * 2020-04-24 2023-07-14 苏州浪潮智能科技有限公司 Method and system for upgrading server firmware, electronic equipment and storage medium
CN111752584A (en) * 2020-06-11 2020-10-09 Oppo广东移动通信有限公司 Firmware upgrading method and device, electronic equipment and computer readable storage medium
CN111782531A (en) * 2020-07-02 2020-10-16 江西联智集成电路有限公司 Method and system for detecting firmware integrity of chip
CN112181460A (en) * 2020-09-27 2021-01-05 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112181460B (en) * 2020-09-27 2024-01-16 深圳市豪恩声学股份有限公司 Program firmware upgrading method and device, electronic equipment and storage medium
CN112559059B (en) * 2020-11-19 2023-07-14 山东云海国创云计算装备产业创新中心有限公司 BIOS (basic input output System) option configuration method and related device
CN112559059A (en) * 2020-11-19 2021-03-26 山东云海国创云计算装备产业创新中心有限公司 BIOS option configuration method and related device
CN112631628A (en) * 2020-12-11 2021-04-09 邦彦技术股份有限公司 Singlechip upgrading method, singlechip and storage medium
CN112596749A (en) * 2020-12-28 2021-04-02 厦门亿联网络技术股份有限公司 Method and device for system power-on self-test and self-repair
CN113805921A (en) * 2021-09-26 2021-12-17 深圳威消保科技有限公司 Firmware remote upgrading method and device
CN113805921B (en) * 2021-09-26 2023-10-24 深圳威消保科技有限公司 Firmware remote upgrading method and device
CN113791808A (en) * 2021-10-20 2021-12-14 守卫者(杭州)科技有限公司 Bottom layer program upgrading method and device, computer equipment and storage medium
CN116055316A (en) * 2021-10-28 2023-05-02 青岛海信宽带多媒体技术有限公司 Method for preventing online upgrade errors and optical module
CN114124401A (en) * 2021-11-02 2022-03-01 佛吉亚歌乐电子(丰城)有限公司 Data authentication method, device, equipment and storage medium
CN114124401B (en) * 2021-11-02 2023-11-17 佛吉亚歌乐电子(丰城)有限公司 Data authentication method, device, equipment and storage medium
CN117112001A (en) * 2023-10-24 2023-11-24 北京傲星科技有限公司 Method and device for upgrading software in board

Similar Documents

Publication Publication Date Title
CN110389778A (en) A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform
CN107179909A (en) Method for upgrading software, device and computer-readable recording medium
CN105893090B (en) A kind of embedded system BOOTROM and application program updating method
WO2016179957A1 (en) Method and device for repairing application programs, and storage medium
CN109358888A (en) Server firmware upgrade method, device, system and computer readable storage medium
CN107908417B (en) Firmware upgrading method and electronic equipment
CN108121554A (en) A kind of upgrade method and upgrade-system of open air embedded device system
WO2011088701A1 (en) Method and device for online upgrading cross-platform version
CN108170457A (en) Firmware upgrade method, device and VR head-mounted displays
CN111309354A (en) OTA (over the air) upgrading method and device of networking equipment
CN110990036A (en) OTA upgrading method and device for power change cabinet, power change equipment and storage medium
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN114840242A (en) System upgrading method and device of electronic equipment and readable storage medium
CN113282316A (en) Remote upgrading method and device for Internet of things equipment
CN112650518A (en) DSP program on-line upgrading method
CN112433769A (en) BMC starting method and device, computer equipment and storage medium
WO2022156512A1 (en) Method and apparatus for firmware upgrade, device, and storage medium
CN103425932B (en) Signature calibration method and terminal device
CN110147246A (en) Version checking method and device, storage medium and the terminal of space download technology
CN112152846B (en) Metering instrument remote upgrading method based on Internet of things
CN112507343A (en) BIOS updating method, device, equipment and medium
CN112667265A (en) Method and device for updating bootstrap program
CN116700765A (en) Firmware upgrading method and device of servo driver and servo driver
CN110389777A (en) A kind of edition upgrading verification method, system and the relevant apparatus of BIOS node
CN109684026A (en) APP replacing skins method, apparatus, electronic equipment and storage medium

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20191029