An on-line upgrading method, device and system of a single chip microcomputer program

A single-chip microcomputer and program technology, applied to the online upgrade method of single-chip microcomputer programs, devices and systems, can solve problems such as abnormal online upgrades of single-chip microcomputer programs, and achieve the effect of avoiding abnormal situations

Active Publication Date: 2019-02-19
WUHAN JINGLI ELECTRONICS TECH
View PDF6 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the embodiment of the present invention provides an online upgrade method, device and system of a single-chip computer program to solve or at least partially solve the technical problem in the prior art that is prone to abnormality when the single-chip computer program is upgraded online

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
  • An on-line upgrading method, device and system of a single chip microcomputer program
  • An on-line upgrading method, device and system of a single chip microcomputer program
  • An on-line upgrading method, device and system of a single chip microcomputer program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] This embodiment provides an online upgrade method for a single-chip microcomputer program. The execution body is an MCU controller. Please refer to figure 1 , the method includes:

[0060] First, step S101 is performed: the MCU controller receives the upgrade start instruction sent by the control terminal, wherein the MCU controller is pre-divided into three areas, wherein the first area is used to store the boot loader, and the boot loader is preset with a device Feature value, device feature value is used to characterize different microcontroller devices, the second area is used to store the application program, the application program includes a program data area, and the device feature value is preset in the application program, and the third area is used to store flag bit information , the flag bit information includes first flag bit information and second flag bit information, the first flag bit information is used to indicate whether the data of the microcontroll...

Embodiment 2

[0093] See figure 2 , this embodiment provides an online upgrade method for a single-chip microcomputer program, the execution body of which is a control terminal, and the method includes:

[0094] S201: When online upgrade is required, the control terminal generates an upgrade start instruction;

[0095] S202: Send the upgrade start instruction to the MCU controller, wherein the MCU controller is pre-divided into three areas, wherein the first area is used to store a boot loader, and the boot loader is preset with a device characteristic value, The device characteristic value is used to characterize different MCU devices, the second area is used to store the application program, the application program includes the program data area, and the device characteristic value is preset in the application program, and the third area is used to store the flag bit information, the flag bit The information includes the first flag bit information and the second flag bit information. Th...

Embodiment 3

[0101] This embodiment provides an online upgrade device for a single-chip microcomputer program, and the device is an MCU controller. Please refer to image 3 , the MCU controller includes:

[0102] The receiving module 301 is configured to receive an upgrade start instruction sent by the control terminal, wherein the MCU controller is pre-divided into three areas, wherein the first area is used to store a boot loader, and the boot loader is preset with device characteristic values , the device characteristic value is used to characterize different single-chip devices, the second area is used to store the application program, the application program includes a program data area, and the device characteristic value is preset in the application program, and the third area is used to store the flag bit information, the flag The bit information includes first flag bit information and second flag bit information, the first flag bit information is used to indicate whether the data ...

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 an on-line upgrading method, device and system of a single chip microcomputer program. The method comprises the following steps: firstly, receiving an upgrading start instruction, dividing the MCU controller into three regions, modifying the first flag bit information and the second flag bit information, and executing software reset; Then, according to the second flag bit information, judging whether online upgrading is needed or not is judged; when an online upgrade is required, receiving a data update instruction, receiving an upgrade ending instruction, modifying thecorresponding first flag bit information according to the preset device eigenvalue in the boot loading program, controlling jumps from the boot loader to the execution application, and then judges whether the state corresponding to the modified first flag bit information matches the state corresponding to the preset device eigenvalue in the application, and if so, modifying the second flag bit information to a state where online upgrading is not required. The invention realizes the technical effect of on-line upgrading and improving the reliability of upgrading.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to an online upgrade method, device and system of a single-chip microcomputer program. Background technique [0002] Single-chip microcomputers are widely used in industrial equipment due to their high integration, small size, strong functions, low power consumption, and high reliability. function. [0003] In the prior art, the online upgrade of the single-chip microcomputer is mainly completed by starting the online upgrade function code in the loader, so that after the single-chip microcomputer is reset from the application program and runs the online upgrade function, the function code will receive the program to be updated. The file data is overwritten and written to the area used to store application data in the program Flash area, so as to achieve the purpose of updating the microcontroller program. [0004] In the process of implementing the present invention, the appl...

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/65G06F9/4401
CPCG06F8/65G06F9/4401
Inventor 祁焱
Owner WUHAN JINGLI ELECTRONICS TECH
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