Traceable upgrading method based on single-chip microcomputer

A single-chip microcomputer and upgrade instruction technology, which is applied in the direction of data error detection, response error generation, redundant code error detection, etc., can solve the problems of program loss and continuous failure of single-chip microcomputer, which is not easy to achieve. error-prone, easy-to-maintain effects

Inactive Publication Date: 2021-07-16
ALPHA ESS CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the above upgrade method cannot guarantee that when the new program has problems, it will cause continuous failure of the single chip microcomputer. In order to solve the fault, it is necessary to go back to the original program. However, the upgrade method of the above method is that the new application program completely covers the original program. , the original program is lost. Therefore, in view of the above defects, it is necessary to be able to trace the MCU program back to an initial version instead of simply overwriting it. Therefore, a retroactive upgrade method based on MCU is needed

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
  • Traceable upgrading method based on single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0028] see figure 1 , the present invention provides a technical solution: a retroactive upgrade method based on a single-chip microcomputer, comprising the following steps:

[0029] S1: Power on the MCU and run the BOOT code;

[0030] S2: Perform power-on reset detection, including the following steps:

[0031] S2-1: Perform CRC calculation on the application program area and compare it with the CRC in the data storage area;

[0032] S2-2: ①. The compariso...

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 discloses a traceable upgrading method based on a single-chip microcomputer, which comprises the following steps of: electrifying the single-chip microcomputer, and running a BOOT code; detecting power-on reset by making CRC calculation of an application program area, and comparing with CRC in a data storage area; if comparison passes: executing the application program, if an upgrading instruction is received in the running process of the application program, erasing a backup area, conducting write-in operation on the backup area, if upgrading data is paused, stopping write-in to the flash, indicating the steps continue to be executed; if an upgrading ending instruction and the CRC value are received, writing the CRC value into the data storage area, executing the steps, and at the moment, detecting software reset; if comparison does not pass, reporting a flash damage error, indicating that the BMU can check the application program area every time the BMU is started to prevent accidental faults caused by accidental flash damage after operation; and after upgrading fails, automatically returning the application program and performing working. codes in Boot are extremely few, only flash codes are carried, maintenance is easy, and errors are not prone to occurring.

Description

technical field [0001] The invention relates to the technical field of single-chip microcomputers, in particular to a retroactive upgrade method based on single-chip microcomputers. Background technique [0002] At present, the application of single-chip microcomputer is increasingly widespread, and its application range includes industrial automation, instrumentation, household appliances, information and communication products, and military equipment. In order to improve the competitiveness of products, the products produced by equipment manufacturers provide the latest application software to the greatest extent in their after-sales service, which requires the equipment to support the ability to automatically upgrade the single-chip microcomputer. [0003] In the prior art, the online upgrade method of the single-chip microcomputer may lose the application program due to network fluctuations, power failure during the upgrade, and unstable communication lines. Although yo...

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): G06F8/65G06F11/10G06F11/14G06F1/24
CPCG06F8/65G06F11/1004G06F11/1448G06F1/24
Inventor 严海龙马慧娇刘雄江袁宏亮林栋
Owner ALPHA ESS 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