CN110471675A - A kind of burning program method, system, device and computer readable storage medium - Google Patents
A kind of burning program method, system, device and computer readable storage medium Download PDFInfo
- Publication number
- CN110471675A CN110471675A CN201910773913.XA CN201910773913A CN110471675A CN 110471675 A CN110471675 A CN 110471675A CN 201910773913 A CN201910773913 A CN 201910773913A CN 110471675 A CN110471675 A CN 110471675A
- Authority
- CN
- China
- Prior art keywords
- program
- program content
- chip microcontroller
- content
- startup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of burning program method, system, device and computer readable storage mediums, obtain the target program including startup program content and user program content first;The startup program content in target program is compiled with user program content to different time domain using scatter-loading file technology;Startup program content is burned onto different address spaces from user program content respectively, upgraded version contents of program is transmitted to default updated contents memory space;User program content and the part to be upgraded in startup program content are upgraded with upgraded version contents of program using the startup program content in single-chip microcontroller.It include startup program content and user program content in one target program, using scatter-loading file technology by target program startup program content and user program content be compiled into different time domains respectively, thus by a target program two kinds of contents separate.Realizing one target program of maintenance also can be realized the remote upgrade of single-chip microcontroller.
Description
Technical field
The present invention relates to singlechip technology field, more specifically to a kind of burning program method, system, device and
Computer readable storage medium.
Background technique
The main way of current monolithic machine remote upgrade is to write two programs respectively, and a program is started in single-chip microcontroller
When program that user program is upgraded, i.e. LD program, another program is the user program that user realizes function of the MCU,
That is AP program.
There are mainly three types of implementations in terms of the burning of the two programs, the first is the single-chip microcontroller of individual producers hard
Being divided to FLASH on part is two regions, including the startup program region (LDROM) and the region user program (APROM), in burning
By dedicated burn recording software and tool, respectively by LD burning program to the area LDROM, by AP burning program to the area APROM.Second
Kind selects the starting programming address of LD program Yu AP program when user is in programming program by hand, in two times by two burning programs
To in chip.The third is that LD program and AP program are synthesized a recordable paper, then made using dedicated tool software
With burn recording software by the burning program of synthesis to chip content.
These three modes are required to establish independent two soft projects, and one is LD program, and one is AP program, and compiles
It translates and generates two independent recordable papers.
It need to be with tool respectively by two burning files to single-chip microcontroller, in this way in exploitation and production process when producing burning
In a product at least need to safeguard two sets of source code engineerings and burning program, during actual development identical product modify two sets
Distinct program is more easier to generate mistake, is issued in Workshop procedures or production process in program if two program mismatches are also held
Lot size problem is easily caused, can all occur two programs in all kinds of office software processes in subsequent management process, increases management
Workload, be also easy to cause wrong generation.
Automatic replication tool batch burning program is generally used in large-scale production process, general tool only supports list
The burning of a file, if reducing production efficiency there are two burning respectively is needed if recordable paper twice.
Summary of the invention
The purpose of the present invention is to provide a kind of burning program method, system, device and computer readable storage medium, with
Realization only needs to safeguard a set of program during remote upgrade single-chip microcontroller.
To achieve the above object, the embodiment of the invention provides following technical solutions:
A kind of burning program method, comprising:
Obtain the target program including startup program content and user program content;
Using the default compilation tool based on scatter-loading file technology by the startup program content in the target program
Compiling compiles the user program content in the target program to the second operation time domain to the first operation time domain;
The startup program content is burned onto first address, with being burned onto pre-set user program by the user program content
Location;
Upgraded version contents of program is transmitted to default updated contents memory space;
Using the startup program content in the single-chip microcontroller with the upgraded version contents of program to user's journey
Sequence content is upgraded with the part to be upgraded in the startup program content.
Optionally, the startup program content includes startup program and interrupt vector table;
Correspondingly, the startup program content using in the single-chip microcontroller and the upgraded version contents of program pair
Before part to be upgraded in the user program content and the startup program content is upgraded, further includes:
Start the single-chip microcontroller so that the single-chip microcontroller by the interrupt vector table with being copied to default interrupt vector table
Location;
The startup program content using in the single-chip microcontroller and the upgraded version contents of program are to the use
Family contents of program is upgraded with the part to be upgraded in the startup program content, comprising:
Using the startup program in the single-chip microcontroller with the upgraded version contents of program in the user program
Appearance is upgraded with the interrupt vector table.
Optionally, the starting single-chip microcontroller, so that the interrupt vector table is copied in default by the single-chip microcontroller
After disconnected vector table address, further includes:
The start bit that interrupt vector table is arranged is set to the default interrupt vector table address.
It is optionally, described that upgraded version contents of program is transmitted to default updated contents memory space, comprising:
By first updated contents memory block of the user program content transmission of the upgraded version into the single-chip microcontroller;
The interrupt vector table of the upgraded version is transmitted to the second updated contents memory block in the single-chip microcontroller.
Optionally, the startup program content using in the single-chip microcontroller and the upgraded version contents of program pair
The user program content is upgraded with the part to be upgraded in the startup program content, comprising:
Upgrading mark is sent to the preset configuration conservation zone of the single-chip microcontroller, so that the single-chip microcontroller detects described preset
After configuring the upgrading mark in conservation zone, by the user program content update to target user's contents of program.
To achieve the above object, the application also provides a kind of system of burning program, comprising:
Target program obtains module, for obtaining the target program including startup program content and user program content;
Collector, for utilizing the default compilation tool based on scatter-loading file technology will be in the target program
Startup program content is compiled to the first operation time domain, and the user program content in the target program is compiled to when the second operation
Domain;
The user program content is burned by burning module for the startup program content to be burned onto first address
Pre-set user program address;
Transmission module, for upgraded version contents of program to be transmitted to default updated contents memory space;
Update module, for utilizing the startup program content and the upgraded version contents of program in the single-chip microcontroller
The user program content and the part to be upgraded in the startup program content are upgraded.Optionally, the starting journey
Sequence content includes startup program and interrupt vector table;
Correspondingly, the system also includes:
Single-chip microcontroller starting module, for starting the single-chip microcontroller, so that the single-chip microcontroller replicates the interrupt vector table
To default interrupt vector table address;
The update module, is specifically used for:
Using the startup program in the single-chip microcontroller with the upgraded version contents of program in the user program
Appearance is upgraded with the interrupt vector table.
Optionally, the system also includes:
Start bit sets setup module, and the start bit for interrupt vector table to be arranged is with being set to the default interrupt vector table
Location.
To achieve the above object, the application also provides a kind of burning program device, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as the step of any one described program method for burn-recording.
To achieve the above object, the application also provides a kind of computer readable storage medium, the computer-readable storage
It is stored with computer program on medium, is realized when the computer program is executed by processor such as any one described program burning side
The step of method.By above scheme it is found that a kind of burning program method provided in an embodiment of the present invention, comprising: obtaining includes opening
The target program of dynamic program content and user program content;Using the default compilation tool based on scatter-loading file technology by institute
It states the startup program content in target program to compile to the first operation time domain, the user program content in the target program is compiled
It translates to the second operation time domain;The startup program content and the user program content are burned onto single-chip microcontroller differently respectively
Location space;Target user's contents of program is burned onto the single-chip microcontroller;Utilize the startup program content in the single-chip microcontroller
By the user program content update to target user's contents of program.
It both may include starting journey it can be seen that a kind of burning program method provided by the present application, in a target program
Sequence content includes user program content again, before carrying out burning, utilizes the default compiling work based on scatter-loading file technology
Tool by target program startup program content and user program content be compiled into different operation time domains respectively, so as to will
Different contents, different address spaces can be burned onto burning by two kinds of contents separation in one target program.It is real
The remote upgrade that one target program of maintenance also can be realized single-chip microcontroller is showed.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of burning program method flow diagram disclosed by the embodiments of the present invention;
Fig. 2 is a kind of single-chip microcontroller subregion schematic diagram disclosed by the embodiments of the present invention;
Fig. 3 is a kind of single-chip microcontroller subregion schematic diagram disclosed by the embodiments of the present invention;
Fig. 4 is a kind of single-chip microcontroller subregion schematic diagram disclosed by the embodiments of the present invention;
Fig. 5 is a kind of single-chip microcontroller subregion schematic diagram disclosed by the embodiments of the present invention;
Fig. 6 is a kind of system of burning program structural schematic diagram disclosed by the embodiments of the present invention;
Fig. 7 is a kind of burning program apparatus structure schematic diagram disclosed by the embodiments of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of burning program method, system, device and computer readable storage mediums, with reality
It only needs to safeguard a set of program during present remote upgrade single-chip microcontroller.
Referring to Fig. 1, a kind of burning program method provided in an embodiment of the present invention is specifically included:
S101 obtains the target program including startup program content and user program content.
Target program is obtained first, had both been included the content of startup program (LD) in a target program, and had also been included user's journey
The content of sequence (AP).
S102, using the default compilation tool based on scatter-loading file technology by the startup program in the target program
Content is compiled to the first operation time domain, and the user program content in the target program is compiled to the second operation time domain.
It should be noted that needing to control upgraded version journey using startup program due to the operation of remote microcontroller upgrading
Sequence covers original program to be upgraded, such as user program, to realize the upgrading to original program to be upgraded, thus, it is necessary to
Startup program and original user program there is into certain interval on memory space, that is, are unable to Coutinuous store.And for same
For a target program, compile obtained recordable paper also only one, when burning, an initial address can only be specified, burnt
Startup program content and user program content in record file being programmed successively from initial address in sequence, this cannot
Make the address space that there is interval between the content of the two programs.
For this purpose, this programme is compiled target program using scatter-loading file technology, in such a way that parameter is set,
Startup program content and user program content are compiled into different operation time domains respectively, although so as to realize compiling file
Only one, but content therein can be separated.
In a specific embodiment, startup program content includes startup program and interrupt vector table, correspondingly, institute
It states using the startup program content in the single-chip microcontroller with the upgraded version contents of program to the user program content
Before being upgraded with the part to be upgraded in the startup program content, further includes:
Start the single-chip microcontroller so that the single-chip microcontroller by the interrupt vector table with being copied to default interrupt vector table
Location;
The startup program content using in the single-chip microcontroller and the upgraded version contents of program are to the use
Family contents of program is upgraded with the part to be upgraded in the startup program content, comprising:
Using the startup program in the single-chip microcontroller with the upgraded version contents of program in the user program
Appearance is upgraded with the interrupt vector table.
Wherein, startup program, that is, above-mentioned is used to control the program of upgrading, and interrupt vector table be also need to be upgraded it is interior
Hold.But scatter-loading file technology is merely capable of dividing startup program content and user program content, startup program
In content, the division of startup program and interrupt vector table really be cannot achieve.Therefore single-chip microcontroller operational process is utilized in this programme
It realizes interrupt vector table and startup program division of teaching contents, in single-chip microcontroller starting, by the interrupt vector in startup program content
Table duplication is a to arrive interrupt vector table address, at this point, just having two parts interrupt vector table in single-chip microcontroller, portion is to be located at starting
Interrupt vector table in contents of program, portion is the interrupt vector table positioned at interrupt vector table address, when being upgraded
Upgraded using the disconnected vector table of interrupt vector table address centering.
Carrying out upgrading to the interrupt vector table of interrupt vector table address will cause another question, that is, deposit in single-chip microcontroller
In new version and two interrupt vector tables of legacy version, if still starting legacy version interrupt vector table when operation, upgrading is invalid, is
This, in a specific embodiment, the starting single-chip microcontroller, so that the single-chip microcontroller answers the interrupt vector table
After system to default interrupt vector table address, further includes:
The start bit that interrupt vector table is arranged is set to the default interrupt vector table address.In the present solution, modification is interrupted
The starting address of vector table starts interrupt vector table from startup program content for original, is revised as from interrupt vector table
Location starts interrupt vector table, thereby may be ensured that the interrupt vector table of starting is the interrupt vector table of latest edition, ensure that
The validity of upgrading.
S103, is burned onto first address for the startup program content, and the user program content is burned onto pre-set user
Program address.
It, can will be different specifically, after the startup program content in target program is separated with user program content
Content is burned onto the different address space of single-chip microcontroller.
Upgraded version contents of program is transmitted to default updated contents memory space by S104.
When needing to upgrade the user program of existing operation, it is necessary first to by the user program of upgraded version, i.e. mesh
Mark user program is burned onto single-chip microcontroller.
In a specific embodiment, described that upgraded version contents of program is transmitted to default updated contents storage sky
Between, comprising:
By first updated contents memory block of the user program content transmission of the upgraded version into the single-chip microcontroller;
The interrupt vector table of the upgraded version is transmitted to the second updated contents memory block in the single-chip microcontroller.
It should be noted that upgraded version program can both be stored in external memory space, single-chip microcontroller can also be stored in
It is internal.In the present solution, in order to which two memory blocks will be marked off inside single-chip microcontroller, that is, the first updated contents memory block and second
Updated contents memory block, by the user program content transmission of upgraded version to the first updated contents memory block, by upgraded version
Interrupt vector table is transmitted to the second updated contents memory block in single-chip microcontroller to be made to upgrade without additionally increasing storage equipment
Process is easier.
S105, using the startup program content in the single-chip microcontroller with the upgraded version contents of program to the use
Family contents of program is upgraded with the part to be upgraded in the startup program content.
Current user program content and startup program content to be upgraded are covered using single-chip microcontroller control upgraded version program
Part to be upgraded, i.e. interrupt vector table are interrupted, the upgrading of user program can be completed.
In a specific embodiment, the startup program content using in the single-chip microcontroller and the liter
Grade version program content upgrades the user program content and the part to be upgraded in the startup program content, wraps
It includes:
Upgrading mark is sent to the preset configuration conservation zone of the single-chip microcontroller, so that the single-chip microcontroller detects described preset
After configuring the upgrading mark in conservation zone, by the user program content update to target user's contents of program.
It is identified in the present solution, configuring conservation zone for storing upgrading, when needing single-chip microcontroller update user program content,
Upgrading mark, which is sent, after single-chip microcontroller detects the upgrading mark of configuration conservation zone to configuration conservation zone executes the operation of upgrading.
In above-mentioned specific embodiment, i.e., the user program content of the upgraded version of the first updated contents memory block is copied into application
The interrupt vector table content of the upgraded version of second updated contents memory block is copied to interrupt vector table area by program area.
It can be seen that a kind of burning program method provided by the embodiments of the present application, both may include in a target program
Startup program content includes user program content again, before carrying out burning, utilizes presetting based on scatter-loading file technology
Compilation tool by target program startup program content and user program content be compiled into different operation time domains respectively, thus
Two kinds of contents in one target program can be separated, it is empty that different contents can be burned onto different addresses in burning
Between.Realizing one target program of maintenance also can be realized the remote upgrade of single-chip microcontroller.
A kind of specific burning program method provided by the embodiments of the present application is introduced below, one kind described below
Specific burning program method can be cross-referenced with any of the above-described embodiment.
A kind of specific burning program method provided by the embodiments of the present application, specifically includes:
Referring to table 1, single-chip microcontroller is divided in advance in this programme, the program Operational Zone (APROM) of single-chip microcontroller is divided
For 6 regions.
Table 1
LDROM | Startup program area |
VECT_ROM | Interrupt vector table subregion |
APROM | Application area/user program |
UPDATE1 | First updated contents memory block |
UPDATE2 | Second updated contents memory block |
CONFIG | Configure conservation zone |
Wherein, the area LDROM storage startup program and interrupt vector program;The area VECT_ROM stores in program actual motion
Disconnected vector table;The area ARROM store currently practical operation user program (application program be equal to user program add interrupt vector table,
I.e. current monolithic machine executes the necessary program of normal function);The area UPDATE1 stores user program and upgrades data;The area UPDATE2 deposits
It stores up interrupt vector and upgrades data;The area CONFIG storage configuration information.
Firstly, be compiled into recordable paper according to soft project compiling file, wherein startup program includes two parts content, one
Part is startup program, and another part is interrupt vector table.Based on dispersion loading technique by startup program content and user program
Content is divided into two addresses, startup program and interrupt vector program in first address, and user program is in reserved user program address.
Referring to fig. 2, startup program is added interrupt vector and user program by replication tool when burning, is burnt to starting journey respectively
Sequence adds interrupt vector area, user program area, and wipes interrupt vector table area, user program upgrading memory block, interrupt vector upgrading
Memory block, configuration conservation zone.
Referring to Fig. 3, after the completion of programming, start single-chip microcontroller, startup program brings into operation when single-chip microcontroller first powers on, and is holding
It detects whether interrupt vector table area has program before row function, finds interruption in startup program area if without interrupt vector program
Vector portion content copies to interrupt vector table area, then relocates interrupt vector table, later programming jump to application program
It operates normally.It should be noted that since escalation process must also upgrade interrupt vector program, and program cannot upgrade itself
Currently performed part, so needing interrupt vector program copy to interrupt vector table area, such escalation process only needs to upgrade
Interrupt vector table area and user program area, do not need starting and upgrading program area.
Referring to fig. 4, then new version is burnt by data-interfaces such as serial ports if necessary to upgrade procedure in normal use process
Record file content is transferred to single-chip microcontroller, single-chip microcontroller identification startup program, interrupt vector program and user program in transmission process,
User program and interrupt vector program are saved in reserved upgrading memory block respectively.
Data, which are written after being transmitted in configuration conservation zone, needs remote upgrade mark, then warm reset single-chip microcontroller.
Referring to Fig. 5, startup program is run after monolithic processor resetting first, startup program reads configuration conservation zone, if there is rising
Grade flag bit, then start to upgrade, and interrupt vector upgrading memory block content is first copied to interrupt vector table area, by user program
User program area is copied to, old program is covered, then interrupt vector address is set, user program is jumped to and executes normal function.
A kind of system of burning program provided by the embodiments of the present application is introduced below, a kind of program described below is burnt
Recording system can be cross-referenced with any of the above-described embodiment.
Referring to Fig. 6, a kind of system of burning program provided by the embodiments of the present application is specifically included:
Target program obtains module 301, for obtaining the target program including startup program content and user program content;
Collector 302, for utilizing the default compilation tool based on scatter-loading file technology by the target program
In startup program content compile to first operation time domain, by the user program content in the target program compile to second fortune
Row time domain;
Burning module 303, for the startup program content to be burned onto first address, by the user program content burning
To pre-set user program address;
Transmission module 304, for upgraded version contents of program to be transmitted to default updated contents memory space;
Update module 305, for utilizing the startup program content and the upgraded version program in the single-chip microcontroller
Content upgrades the user program content and the part to be upgraded in the startup program content.
Optionally, the startup program content includes startup program and interrupt vector table;
Correspondingly, the system also includes:
Single-chip microcontroller starting module, for starting the single-chip microcontroller, so that the single-chip microcontroller replicates the interrupt vector table
To default interrupt vector table address;
The update module, is specifically used for:
Using the startup program in the single-chip microcontroller with the upgraded version contents of program in the user program
Appearance is upgraded with the interrupt vector table.
Optionally, the system also includes: start bit sets setup module, and the start bit for interrupt vector table to be arranged is set to
The default interrupt vector table address.
The system of burning program of the present embodiment is for realizing burning program method above-mentioned, therefore in system of burning program
It is compiled for example, target program obtains module 301 the embodiment part of the visible burning program method hereinbefore of specific embodiment
Translate module 302, burning module 303, transmission module 304, update module 305 is respectively used to realize in above procedure method for burn-recording
Step S101, S102, S103, S104 and S105, so, specific embodiment is referred to corresponding various pieces embodiment
Description, details are not described herein.
A kind of burning program device provided in an embodiment of the present invention is introduced below, a kind of program described below is burnt
Recording device can be cross-referenced with any of the above-described embodiment.
Referring to Fig. 7, a kind of burning program device provided in an embodiment of the present invention is specifically included:
Memory 100, for storing computer program;
Processor 200, the step of any of the above-described burning program method is realized when for executing the computer program.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage
There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can
The operation of reading instruction provides environment.Processor 200 provides calculating and control ability for burning program device, may be implemented above-mentioned
Burning program method described in one embodiment.
Further, the burning program device in the present embodiment can also include:
Input interface 300, for obtaining the computer program of extraneous importing, and the computer program that will acquire save to
In the memory 100, it can be also used for the various instructions and parameter that obtain extraneous terminal device transmission, and be transmitted to processor
In 200, so that processor 200 is handled accordingly using above-mentioned various instructions and parametric evolving.In the present embodiment, the input is connect
Mouth 300 can specifically include but be not limited to USB interface, serial line interface, speech input interface, fingerprint input interface, hard disk and reads
Interface etc..
Output interface 400, the various data for generating processor 200 are exported to coupled terminal device, with
Other terminal devices convenient for being connected with output interface 400 can get the various data of the generation of processor 200.The present embodiment
In, the output interface 400 can specifically include but be not limited to USB interface, serial line interface etc..
Communication unit 500, for completing the communication of current device and other equipment.
Keyboard 600, the various parameters data or instruction inputted and tapping keycap in real time for obtaining user.
Display 700 carries out real-time display for the relevant information to burning program process, in time in order to user
Solve present procedure burning situation.
Mouse 800 can be used for assisting user input data and simplify the operation of user.
The present invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer
Step provided by above-described embodiment may be implemented when program is executed by processor.The storage medium may include: USB flash disk, movement
Hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory,
RAM), the various media that can store program code such as magnetic or disk.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Claims (10)
1. a kind of burning program method characterized by comprising
Obtain the target program including startup program content and user program content;
The startup program content in the target program is compiled using the default compilation tool based on scatter-loading file technology
To the first operation time domain, the user program content in the target program is compiled to the second operation time domain;
The startup program content is burned onto first address, the user program content is burned onto pre-set user program address;
Upgraded version contents of program is transmitted to default updated contents memory space;
Using the startup program content in the single-chip microcontroller with the upgraded version contents of program in the user program
Appearance is upgraded with the part to be upgraded in the startup program content.
2. the method according to claim 1, wherein the startup program content include startup program and interrupt to
Scale;
Correspondingly, the startup program content using in the single-chip microcontroller is with the upgraded version contents of program to described
Before part to be upgraded in user program content and the startup program content is upgraded, further includes:
Start the single-chip microcontroller, so that the interrupt vector table is copied to default interrupt vector table address by the single-chip microcontroller;
The startup program content using in the single-chip microcontroller and the upgraded version contents of program are to user's journey
Sequence content is upgraded with the part to be upgraded in the startup program content, comprising:
Using in the single-chip microcontroller the startup program and the upgraded version contents of program to the user program content with
The interrupt vector table is upgraded.
3. according to the method described in claim 2, it is characterized in that, described start the single-chip microcontroller, so that the single-chip microcontroller will
The interrupt vector table is copied to after default interrupt vector table address, further includes:
The start bit that interrupt vector table is arranged is set to the default interrupt vector table address.
4. according to the method described in claim 2, it is characterized in that, described be transmitted to default upgrading for upgraded version contents of program
Content storage space, comprising:
By first updated contents memory block of the user program content transmission of the upgraded version into the single-chip microcontroller;
The interrupt vector table of the upgraded version is transmitted to the second updated contents memory block in the single-chip microcontroller.
5. the method according to claim 1, wherein in the startup program using in the single-chip microcontroller
Hold with the upgraded version contents of program to the part to be upgraded in the user program content and the startup program content into
Row upgrading, comprising:
Upgrading mark is sent to the preset configuration conservation zone of the single-chip microcontroller, so that the single-chip microcontroller detects the preset configuration
After upgrading mark in conservation zone, by the user program content update to target user's contents of program.
6. a kind of system of burning program characterized by comprising
Target program obtains module, for obtaining the target program including startup program content and user program content;
Collector, for utilizing the default compilation tool based on scatter-loading file technology by the starting in the target program
Contents of program is compiled to the first operation time domain, and the user program content in the target program is compiled to the second operation time domain;
The user program content is burned onto default by burning module for the startup program content to be burned onto first address
User program address;
Transmission module, for upgraded version contents of program to be transmitted to default updated contents memory space;
Update module, for utilizing the startup program content in the single-chip microcontroller with the upgraded version contents of program to institute
User program content is stated to be upgraded with the part to be upgraded in the startup program content.
7. system according to claim 6, which is characterized in that the startup program content include startup program and interrupt to
Scale;
Correspondingly, the system also includes:
Single-chip microcontroller starting module, for starting the single-chip microcontroller so that the single-chip microcontroller interrupt vector table is copied to it is pre-
If interrupt vector table address;
The update module, is specifically used for:
Using in the single-chip microcontroller the startup program and the upgraded version contents of program to the user program content with
The interrupt vector table is upgraded.
8. system according to claim 7, which is characterized in that the system also includes:
Start bit sets setup module, and the start bit for interrupt vector table to be arranged is set to the default interrupt vector table address.
9. a kind of burning program device characterized by comprising
Memory, for storing computer program;
Processor is realized when for executing the computer program such as any one of claim 1 to 5 described program method for burn-recording
Step.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the step such as any one of claim 1 to 5 described program method for burn-recording when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910773913.XA CN110471675B (en) | 2019-08-21 | 2019-08-21 | Program burning method, system, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910773913.XA CN110471675B (en) | 2019-08-21 | 2019-08-21 | Program burning method, system, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110471675A true CN110471675A (en) | 2019-11-19 |
CN110471675B CN110471675B (en) | 2023-06-16 |
Family
ID=68513121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910773913.XA Active CN110471675B (en) | 2019-08-21 | 2019-08-21 | Program burning method, system, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471675B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221553A (en) * | 2019-12-31 | 2020-06-02 | 深圳优地科技有限公司 | Firmware upgrading method and device |
CN112052031A (en) * | 2020-08-26 | 2020-12-08 | 烽火通信科技股份有限公司 | Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050102660A1 (en) * | 2002-04-12 | 2005-05-12 | Shao-Chun Chen | Initialization and update of software and/or firmware in electronic devices |
CN101539885A (en) * | 2009-04-23 | 2009-09-23 | 大唐微电子技术有限公司 | Soft ware autonomous air upgrading method of wireless communication module, device and system thereof |
CN101814036A (en) * | 2010-03-09 | 2010-08-25 | 广州市聚晖电子科技有限公司 | RF remote upgrading method and system |
CN102985929A (en) * | 2010-05-11 | 2013-03-20 | 杉中顺子 | External boot device, external boot program, external boot method and network communication system |
CN103346816A (en) * | 2013-06-28 | 2013-10-09 | 长沙威胜信息技术有限公司 | Wireless communication system and remote updating method thereof |
CN104122815A (en) * | 2014-06-26 | 2014-10-29 | 南京易周能源科技有限公司 | Hydrological measurement and control terminal based on ARM and remote upgrading method thereof |
CN105204899A (en) * | 2015-09-17 | 2015-12-30 | 浪潮软件集团有限公司 | Realization of network-based singlechip firmware upgrading method |
WO2017080383A1 (en) * | 2015-11-12 | 2017-05-18 | 华为技术有限公司 | Method and device for loading software module |
CN107861745A (en) * | 2017-11-30 | 2018-03-30 | 厦门科华恒盛股份有限公司 | A kind of application program online upgrading method, apparatus, equipment and storage medium |
CN109240730A (en) * | 2018-08-29 | 2019-01-18 | 武汉光迅科技股份有限公司 | A kind of single-chip microcontroller online upgrading method and system |
-
2019
- 2019-08-21 CN CN201910773913.XA patent/CN110471675B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050102660A1 (en) * | 2002-04-12 | 2005-05-12 | Shao-Chun Chen | Initialization and update of software and/or firmware in electronic devices |
CN101539885A (en) * | 2009-04-23 | 2009-09-23 | 大唐微电子技术有限公司 | Soft ware autonomous air upgrading method of wireless communication module, device and system thereof |
CN101814036A (en) * | 2010-03-09 | 2010-08-25 | 广州市聚晖电子科技有限公司 | RF remote upgrading method and system |
CN102985929A (en) * | 2010-05-11 | 2013-03-20 | 杉中顺子 | External boot device, external boot program, external boot method and network communication system |
CN103346816A (en) * | 2013-06-28 | 2013-10-09 | 长沙威胜信息技术有限公司 | Wireless communication system and remote updating method thereof |
CN104122815A (en) * | 2014-06-26 | 2014-10-29 | 南京易周能源科技有限公司 | Hydrological measurement and control terminal based on ARM and remote upgrading method thereof |
CN105204899A (en) * | 2015-09-17 | 2015-12-30 | 浪潮软件集团有限公司 | Realization of network-based singlechip firmware upgrading method |
WO2017080383A1 (en) * | 2015-11-12 | 2017-05-18 | 华为技术有限公司 | Method and device for loading software module |
CN107861745A (en) * | 2017-11-30 | 2018-03-30 | 厦门科华恒盛股份有限公司 | A kind of application program online upgrading method, apparatus, equipment and storage medium |
CN109240730A (en) * | 2018-08-29 | 2019-01-18 | 武汉光迅科技股份有限公司 | A kind of single-chip microcontroller online upgrading method and system |
Non-Patent Citations (1)
Title |
---|
杨冠军等: "基于ARM9E的启动程序设计与实现", 《电子设计工程》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111221553A (en) * | 2019-12-31 | 2020-06-02 | 深圳优地科技有限公司 | Firmware upgrading method and device |
CN112052031A (en) * | 2020-08-26 | 2020-12-08 | 烽火通信科技股份有限公司 | Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card |
CN112052031B (en) * | 2020-08-26 | 2023-03-14 | 烽火通信科技股份有限公司 | Method and device for automatically matching and upgrading CPLD (complex programmable logic device) by service board card |
Also Published As
Publication number | Publication date |
---|---|
CN110471675B (en) | 2023-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101763279B (en) | BootLoader architectural design method | |
CN106095620B (en) | A kind of development approach of built-in Linux partition holding | |
CN109240730B (en) | Singlechip online upgrading method and system | |
CN103793238A (en) | Rack and method for simultaneously updating multiple basic input output systems thereof | |
CN110471675A (en) | A kind of burning program method, system, device and computer readable storage medium | |
CN103902331A (en) | Information processing apparatus and information processing method | |
CN106708584A (en) | Program burn method and device thereof | |
JP2009146229A (en) | Programmable controller system | |
CN104407878A (en) | On-line upgrading method of C6000 digital signal processor | |
CN110096290A (en) | A kind of battery simulator master control borad method for upgrading software | |
WO2022227409A1 (en) | Embedded terminal remote software updating method | |
CN104536398A (en) | Frequency converter monitoring method and system | |
JP2009157533A (en) | Programmable controller system | |
JP5636783B2 (en) | Programmable controller and method for debugging programmable controller | |
JP5849592B2 (en) | Programmable controller system, programming device thereof, programmable controller, program, and debugging method | |
CN109558121A (en) | Development approach, device, equipment and the storage medium of interface drive program | |
CN109933358B (en) | Control method for reducing program upgrading amount of metering equipment | |
CN109728886A (en) | A kind of method of data synchronization, device, equipment and storage medium suitable for cross-version upgrading | |
CN106775956A (en) | Xen virtual machine Fork Mechanism establishing methods | |
JP2005301520A (en) | Programming system | |
CN109933345A (en) | Method and relevant apparatus are filled under a kind of unperturbed of controller | |
CN106126211A (en) | A kind of MCU In-circuit programming system supporting debugging interface | |
JP6119452B2 (en) | Programmable controller system, its support device, programmable controller, program | |
JP5141095B2 (en) | Plant controller system | |
CN114237640A (en) | Chip test control panel Uboot burning method based on serial port protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |