CN109165037A - A kind of program online updating method and system based on serial ports processor - Google Patents
A kind of program online updating method and system based on serial ports processor Download PDFInfo
- Publication number
- CN109165037A CN109165037A CN201810857505.8A CN201810857505A CN109165037A CN 109165037 A CN109165037 A CN 109165037A CN 201810857505 A CN201810857505 A CN 201810857505A CN 109165037 A CN109165037 A CN 109165037A
- Authority
- CN
- China
- Prior art keywords
- serial ports
- program
- processor
- flash
- new procedures
- 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.)
- Pending
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/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The program online updating method and system based on serial ports processor that the present invention relates to a kind of, the following steps are included: 1) start-up mode of configuration processor is to start from flash, one boot program of programming inside flash, boot program are interacted for initializing serial ports with serial ports;2) boot program is executed, serial ports is initialized;3) boot program is interacted with serial ports, determines whether program update;If jumping to existing program in application area performing chip without more new procedures;If there are more new procedures, receives more new procedures and be cured to the corresponding region flash, and execute new program.The present invention solves existing serial ports formula processor program and updates cumbersome technical problem, the present invention not only can be convenient from serial ports more new procedures, but also do not need the serial ports start-up mode carried using processor, do not need the start-up mode for changing processor on hardware yet.Greatly facilitate online updating program.
Description
Technical field
The program online updating method and system based on serial ports processor that the present invention relates to a kind of, can be by serial ports to processing
Device online updating and program curing software.
Background technique
In Embedded Application, DSP program is often updated, equipment is at this time often opened, with emulator programming program
Mode shown very inconvenient.For serial ports as a commonly used interface in debugging, transmission data are very convenient.
Some DSP also support to start from serial ports, but this needs for the starting configuration pin of DSP to be changed to serial ports starting, and
And it should be understood that serial ports starting agreement etc.;It is changed to show from piece flash starting in use, being still to start DSP to configure final
It obtains cumbersome.
Summary of the invention
Cumbersome technical problem is updated in order to solve existing serial ports formula processor program, the present invention is provided to be handled based on serial ports
The program online updating method and system of device, the present invention be exactly not only can be convenient from serial ports more new procedures, but also do not need using
The included serial ports start-up mode of processor does not need the start-up mode that processor is changed on hardware certainly yet.This will be very big
Ground facilitates online updating program.Moreover, host computer does not need special software, common debugging assistant be can be realized.
Technical solution of the invention are as follows:
The present invention provides a kind of program online updating method based on serial ports processor, is characterized in that including following
Step:
1) start-up mode of configuration processor is to start from flash, one boot program of programming, boot inside flash
Program is interacted for initializing serial ports with serial ports;
2) boot program is executed, serial ports is initialized;
3) boot program is interacted with serial ports, determines whether program update;
If jumping to existing program in application area performing chip without more new procedures;
If there are more new procedures, receives more new procedures and be cured to the corresponding region flash, and execute new program.
It is updated in order to facilitate identification, in a kind of program online updating method based on serial ports processor of the present invention preferably are as follows:
Boot program is located at the initial position of flash.
The present invention provides a kind of program online updating system based on serial ports processor, including
Interactive module: for being interacted with the realization of host computer serial ports;
Judgment module: when interacting with host computer, judge host computer more new procedures whether in need;
And curing module: it is used in host computer more new procedures in need, by program Solidification to the corresponding region flash.
Advantage for present invention:
1, the present invention greatly facilitates the update of DSP or some other memory program, on the one hand can pass through serial ports
On the other hand online updating program oneself can modify boot program, easily receive various types of data files, and
Upper computer software only needs debugging assistant can be realized, and does not need oneself and writes host computer procedure.
Although 2, the present invention is realized on DSP, other processor types are equally applicable to, as long as it is with serial ports
It can.
Detailed description of the invention
Fig. 1 is serial ports online updating flow chart;
Fig. 2 is that the present invention is based on the program online updating system schematics of serial ports processor.
Specific embodiment
Embodiment 1: configuration DSP starts from Flash.It is divided into two individual regions in Flash, a region is used to programming
Boot program, the program are responsible for serial ports online updating data, and application program is then stored in another region.It first has to enter in flash
Programming boot program at port address.On the one hand Boot program initializes serial ports, to prepare with host computer communication, another aspect root
More new data is determined whether according to serial ports instruction, if there is data update, then data and burned flash is received by serial ports, then
Start to execute new program;If jumping to application program without more new data and going to execute existing code.
Embodiment 2: after system electrification, boot program initializes serial ports, and exports prompt information by serial ports and identify boot
Program is ready, gets out more new procedures;Program data file to be updated is issued by serial ports assistant in upper computer end,
DSP is cured to the corresponding region Flash after receiving program file, then starts to execute new program.
Embodiment 3: after system electrification, boot program initializes serial ports, and exports prompt information by serial ports and identify boot
Program is ready, gets out more new procedures;Not more newer command is sent by serial ports in upper computer end, system, which receives, does not update life
After order, existing program entry address in Flash is jumped directly to, starts to execute existing program.
Claims (3)
1. a kind of program online updating method based on serial ports processor, it is characterised in that the following steps are included:
1) start-up mode of configuration processor is to start from flash, one boot program of programming, boot program inside flash
It is interacted for initializing serial ports, and with serial ports;
2) boot program is executed, serial ports is initialized;
3) boot program is interacted with serial ports, determines whether program update;
If jumping to existing program in application area performing chip without more new procedures;
If there are more new procedures, receives more new procedures and be cured to the corresponding region flash, and execute new program.
2. the program online updating method according to claim 1 based on serial ports processor, it is characterised in that;Boot program
Positioned at the initial position of flash.
3. a kind of program online updating system based on serial ports processor, characterized by comprising:
Interactive module: for being interacted with the realization of host computer serial ports;
Judgment module: when interacting with host computer, judge host computer more new procedures whether in need;
Curing module: it is used in host computer more new procedures in need, by program Solidification to the corresponding region flash.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810857505.8A CN109165037A (en) | 2018-07-31 | 2018-07-31 | A kind of program online updating method and system based on serial ports processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810857505.8A CN109165037A (en) | 2018-07-31 | 2018-07-31 | A kind of program online updating method and system based on serial ports processor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109165037A true CN109165037A (en) | 2019-01-08 |
Family
ID=64898407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810857505.8A Pending CN109165037A (en) | 2018-07-31 | 2018-07-31 | A kind of program online updating method and system based on serial ports processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109165037A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522568A (en) * | 2020-05-07 | 2020-08-11 | 深圳市吉祥腾达科技有限公司 | Method for verifying upgrade file under boot |
CN114125902A (en) * | 2021-11-30 | 2022-03-01 | 上海移远通信技术股份有限公司 | WWAN equipment and configuration method, device and storage medium thereof |
CN114500242A (en) * | 2022-03-31 | 2022-05-13 | 天津华宁电子有限公司 | Control method for double-wire transmission network |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838588A (en) * | 2012-11-20 | 2014-06-04 | 广州市暨华医疗器械有限公司 | Method for conducting online program updating on AT90 single-chip microcomputer through CAN interface |
CN104407878A (en) * | 2014-10-20 | 2015-03-11 | 北京航天发射技术研究所 | On-line upgrading method of C6000 digital signal processor |
CN106874056A (en) * | 2017-03-14 | 2017-06-20 | 成都天奥电子股份有限公司 | TI C2000 DSP serial ports online upgrading methods based on Ymodem |
-
2018
- 2018-07-31 CN CN201810857505.8A patent/CN109165037A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838588A (en) * | 2012-11-20 | 2014-06-04 | 广州市暨华医疗器械有限公司 | Method for conducting online program updating on AT90 single-chip microcomputer through CAN interface |
CN104407878A (en) * | 2014-10-20 | 2015-03-11 | 北京航天发射技术研究所 | On-line upgrading method of C6000 digital signal processor |
CN106874056A (en) * | 2017-03-14 | 2017-06-20 | 成都天奥电子股份有限公司 | TI C2000 DSP serial ports online upgrading methods based on Ymodem |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522568A (en) * | 2020-05-07 | 2020-08-11 | 深圳市吉祥腾达科技有限公司 | Method for verifying upgrade file under boot |
CN114125902A (en) * | 2021-11-30 | 2022-03-01 | 上海移远通信技术股份有限公司 | WWAN equipment and configuration method, device and storage medium thereof |
CN114125902B (en) * | 2021-11-30 | 2024-09-20 | 上海移远通信技术股份有限公司 | WWAN (wireless network access network) equipment, configuration method, device and storage medium thereof |
CN114500242A (en) * | 2022-03-31 | 2022-05-13 | 天津华宁电子有限公司 | Control method for double-wire transmission network |
CN114500242B (en) * | 2022-03-31 | 2022-07-15 | 天津华宁电子有限公司 | Control method for double-wire transmission network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10318268B2 (en) | Setting method for binary integration of boot program and kernel program | |
US9301164B2 (en) | Method, system, and terminal for performing system update between mobile communication terminals | |
CN105893090B (en) | A kind of embedded system BOOTROM and application program updating method | |
CN109165037A (en) | A kind of program online updating method and system based on serial ports processor | |
US20090157356A1 (en) | Hardware test and diagnosis system and method | |
CN103942069A (en) | Quick starting optimizing method based on X86 platform Vxworks operation system | |
WO2017202338A1 (en) | Method and system for loading drive to set-top box | |
CN109189434A (en) | A kind of online upgrading method of electric energy meter | |
CN106569854B (en) | Method and system for setting equipment firmware and realizing factory test | |
WO2017020459A1 (en) | Method and apparatus for configuring plugin package for host | |
US9672047B1 (en) | Systems and methods for accessing a bootable partition on a serial peripheral interface device | |
CN104778105A (en) | Method for rapidly testing compatibility of server and RHEL (red hat enterprise software language) based on virtual machine | |
US9965292B2 (en) | Method of bluetooth pairing with UEFI firmware and computer system thereof | |
US10491736B2 (en) | Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS | |
CN104461638A (en) | Bootloader based XFP optical module upgrading method | |
CN108182079A (en) | A kind of TMS320C6748 program loading methods based on serial ports | |
CN104601798B (en) | A kind of custom application starting control method and device | |
CN105373422B (en) | Controlling terminal equipment enters method, terminal device and the computer equipment of downloading mode | |
KR20150072963A (en) | Multisystem, and method of booting the same | |
CN110366038B (en) | Method for multi-version software equipment to be compatible with multiple technical states | |
CN106775796B (en) | Firmware upgrading method, device and system | |
CN106445601A (en) | Device and method for plugin upgrading | |
CN110297652A (en) | A kind of method of FPGA remote upgrade | |
CN105955822A (en) | Method for improving space utilization rate of BIOS Legacy Option ROM | |
CN104503809A (en) | Application update download method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190108 |
|
RJ01 | Rejection of invention patent application after publication |