Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and system for upgrading an embedded device program

An embedded device and program upgrade technology, applied in the direction of bootloader, program control device, software engineering design, etc., can solve the problems of BootLoader program simulation, slow efficiency, and long program download time, so as to improve efficiency and reduce program download. time, to achieve the effect of adjustability

Active Publication Date: 2020-09-25
SHANDONG LUNENG SOFTWARE TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] (2) The application cannot be debugged independently;
[0013] Two programs are used in the solution. The application program is a subroutine called by the BootLoader program. It cannot be simulated directly without the BootLoader program, nor can it be simulated together with the BootLoader program.
[0014] The above two problems make the emulation and debugging of embedded programs complicated, and the program downloading in mass production takes a lot of time and the efficiency is slow

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
  • A method and system for upgrading an embedded device program
  • A method and system for upgrading an embedded device program
  • A method and system for upgrading an embedded device program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] 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.

[0041] figure 1 It is a schematic diagram of the process of running a traditional embedded device program. Such as figure 1 As shown, after the program starts running, it enters the MAIN() function after the kernel is initialized. The MAIN() function is an infinite loop. The program has been circulating between task 1, task 2 and task N, where N is a positive integer greater than 0 .

[0042] figure 2 It is a schematic diagram of the running process of the embedded device program of the present invention. The location of BootLoader is after the kernel initialization and before the MAIN() function, so the program first executes the BOOTLOADER program, such as f...

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 an embedded device program upgrading method and system. The method comprises the steps of writing an application and embedding a BOOTLOADER program into a position of the application before execution to fuse the BOOTLOADER program and the application; downloading the application embedded with the BOOTLOADER program to an MCU by utilizing an emulator, dividing a storage space of the MCU into an MCU kernel initialization code space, a BOOTLOADER program code space and an application code space independent of one another; meanwhile, solidifying an entry address of an interrupt processing program; and during upgrading, downloading the upgraded application to the MCU by utilizing an upper computer, and erasing the application in the application code space before upgrading, so that quick upgrading of an embedded device program is finally realized.

Description

technical field [0001] The invention belongs to the field of embedded devices, in particular to a method and system for upgrading programs of embedded devices. Background technique [0002] Embedded devices need to be upgraded, and the casing needs to be disassembled during the upgrade, and the workload of the program upgrade is huge. In order to complete the program upgrade without dismantling the case, the developer needs to write the BootLoader program for a specific interface, and write the corresponding host computer. [0003] The general program upgrade implementation process is as follows: [0004] (1) Write BootLoader program and application program; [0005] (2) Use the emulator to download the BootLoader program to the MCU; [0006] (3) Use the host computer to download the application program to the MCU through a specific interface according to the BootLoader program protocol; [0007] (4) When upgrading, use the host computer to download the application progr...

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 Patents(China)
IPC IPC(8): G06F9/4401G06F8/65
CPCG06F8/654
Inventor 刘广扩李豹胡勇何军田吴延宇王培仑刘喻明
Owner SHANDONG LUNENG SOFTWARE TECH