Method for using dual code mirroring to run on an embedded device

An embedded device and code technology, applied in the field of code image management, can solve the problems of increased flash cost, large code capacity and complexity, and achieve the effects of easy maintenance and upgrade, saving storage space, and good economic benefits.

Inactive Publication Date: 2011-12-21
SHENZHEN GONGJIN ELECTRONICS CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing technology has proposed a cross-dual backup mechanism, but it can no longer fully meet the needs
The main reason is that embedded devices have more and more functions, more and more complicated, and the code capacity is getting larger and larger. Nor flash may reach 8MB, 16MB, or even 32MB, and nand flash is even larger.
Therefore, the original dual backup technology requires twice the size of the flash, and the price difference from a single code image is obvious, which increases the cost of the flash a lot.
Profit margins for embedded devices are very low in many industries, so cost reduction has become an urgent issue

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
  • Method for using dual code mirroring to run on an embedded device
  • Method for using dual code mirroring to run on an embedded device
  • Method for using dual code mirroring to run on an embedded device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The method of using dual-code mirroring operation on an embedded device, the above method is to realize the process of loading and running through the image code storage area in the flash memory unit. The structure of the flash memory unit includes a startup code area, a non-volatile random storage area, and configuration information. Command storage area, code image storage area, and user code area, the key is: described code image storage area includes a main code image storage area and at least one auxiliary code image storage area, and the steps of dual code image operation include:

[0018] a. Start the boot program in the boot area of ​​the system;

[0019] b. Read the configuration and information mirrored in the two code mirrors from the non-volatile random storage area;

[0020] c. Use the crc check codes in the main code image storage area and the auxiliary code image storage area to verify the primary image information and the auxiliary image information, and...

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 method of using dual-code mirroring operation on the embedded device provides a low-cost method that meets the needs of embedded device program generation, loading, and running upgrades, and improves the safety and reliability of the program. The above method is through program compilation, production burning The process of adding a secondary code image to the image code storage area in the flash memory in addition to the main code image, so that the two code images can complement each other and upgrade each other. On the premise of reducing the flash space, when one of the code images is damaged Still able to work normally, and self-repair, thereby improving the safety and reliability of embedded devices. The auxiliary code image storage space is a minimum application system, which includes basic system functions, and is easy to maintain and upgrade. Compared with the previous method of cross-backup with direct double-backup flash, it saves up to half of the flash space, and the cost is lower. Very good value for money.

Description

technical field [0001] The present invention relates to the code image management technology in the flash memory of the embedded device. By improving the space structure of the flash memory, an auxiliary code image storage space is added as a supplement to the main code image storage space to ensure the safety and reliability of the program code of the embedded device, especially It is suitable for the equipment that the program code can be automatically upgraded through the network. Background technique [0002] In the prior art, program codes of embedded devices are generally stored in non-volatile memories such as flash memory. Initially, the program code was read-only, but due to the rapid development of technology, the code needs to be continuously updated, or because other data other than the program need to be saved, such as modifying the configuration, recording and rewriting the data related to operation. In the process of rewriting or upgrading, there may be power...

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): G06F11/14G06F9/445
Inventor 刘宏钧王志波汪澜
Owner SHENZHEN GONGJIN ELECTRONICS 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