System and method for upgrading firmware of MCU on line

A technology for upgrading firmware and firmware upgrade. The redundancy in hardware is used for data error detection, software deployment, and response error generation. It can solve the problem of low firmware upgrade reliability, data memory and program memory not working properly, etc. problem, to achieve the effect of reliable code jump and reliable firmware upgrade

Pending Publication Date: 2016-07-06
SHENZHEN HIGHGREAT TECH DEV CO LTD
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This solution uses the existing RAM or register set on the chip to upgrade the firmware online. However, during the online upgrade of the firmware, neither the data memory nor the program memory can work normally. Restart the firmware upgrade process, the firmware upgrade is less reliable

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • System and method for upgrading firmware of MCU on line
  • System and method for upgrading firmware of MCU on line
  • System and method for upgrading firmware of MCU on line

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0054] Please refer to figure 1 as well as figure 2 , Embodiment 1 of the present invention is:

[0055] A system for MCU1 online upgrade of firmware, comprising MCU1, backup RAM2, power-down detection circuit 4, backup battery 3, MPU5 and upper computer 6, said backup RAM2 and power-down detection circuit 4 are all connected to said MCU1, said Backup battery 3 is connected with described backup RAM2; The FLASH storage area of ​​described MCU1 comprises IAP program storage area 11, APP1 program storage area 13 and APP2 program storage area 14, and program storage area is not limited to three, and concrete distribution can be according to Actual needs and the size of FLASH are adjusted; APP1 program storage area 13 stores the currently running APP program, and APP2 program storage area 14 stores update data packets; the state information of the backup RAM2 storage firmware upgrade; the state information includes: update sign : When MCU1 receives external information, it is s...

Embodiment 2

[0057] Please refer to image 3 as well as Figure 4 , the second embodiment of the present invention is:

[0058] A method corresponding to the MCU online upgrade firmware system of the first embodiment above, comprising:

[0059] The FLASH of MCU1 is divided into an IAP program storage area 11, APP1 program storage area 13 and APP2 program storage area 14, APP1 program storage area 13 stores the APP program in operation;

[0060] MCU1 obtains the update request, and requests the host computer 6 or MPU5 to update the program according to the update request;

[0061] MCU1 obtains update data packet, and described update data packet is stored in APP2 program storage area 14; And carry out firmware upgrade according to described update data packet; Above-mentioned update request and update data packet can be sent to MCU1 by upper computer 6, also can be by MPU5 It can be sent to MCU1, and can also be sent to MPU5 by host computer 6, and then sent to MCU1 by MPU5; specifically...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a system and method for upgrading firmware of an MCU on line. The system comprises the MCU, a backup RAM and a backup battery, wherein the backup RAM is connected with the MCU, and is connected with the backup battery; a FLASH storage area of the MCU comprises an IAP (In Application Programming) program storage area and at least two APP program storage areas, and the two APP program storage areas are used for storing APP programs currently in running and update data packets respectively; the backup RAM is used for storing firmware upgrading state information, and the state information comprises a state marker and a firmware version number. The programs currently in running and the update data packets are stored in different APP program storage areas, and codes in each APP program storage area exist independently without mutual interference; programs of which update is interrupted are continuously updated according to the firmware upgrading state information in the backup RAM, so as to avoid influence of system power failure on online firmware upgrading.

Description

technical field [0001] The invention relates to the technical field of upgrading firmware of MCU products, in particular to a system and a method for upgrading firmware online of an MCU. Background technique [0002] During the MCU firmware update process, it is necessary to overwrite the MCU code storage area. If the update process is accidentally interrupted (such as power failure, cable connection interruption), the MCU will not be able to run the code normally when the MCU restarts. [0003] The Chinese invention patent with publication number CN1752933A discloses a chip system that supports firmware online upgrade and its online upgrade method. A data memory for module data, the data memory is also connected to the program memory, and is used for storing the firmware upgrade program copied from the program memory. The method is: after the firmware receives the online upgrade instruction, copy the firmware online upgrade program stored in the program memory to the data ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F11/20
CPCG06F8/65G06F11/2015
Inventor 高建民
Owner SHENZHEN HIGHGREAT TECH DEV CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products