CN101145108A - Program downloading method and device for embedded type CPU minimum systematic module - Google Patents

Program downloading method and device for embedded type CPU minimum systematic module Download PDF

Info

Publication number
CN101145108A
CN101145108A CNA2007101546535A CN200710154653A CN101145108A CN 101145108 A CN101145108 A CN 101145108A CN A2007101546535 A CNA2007101546535 A CN A2007101546535A CN 200710154653 A CN200710154653 A CN 200710154653A CN 101145108 A CN101145108 A CN 101145108A
Authority
CN
China
Prior art keywords
embedded type
program
type cpu
module
application program
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
Application number
CNA2007101546535A
Other languages
Chinese (zh)
Other versions
CN101145108B (en
Inventor
郭正钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUHAN ZHONGXING SOFTWARE CO., LTD.
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2007101546535A priority Critical patent/CN101145108B/en
Publication of CN101145108A publication Critical patent/CN101145108A/en
Application granted granted Critical
Publication of CN101145108B publication Critical patent/CN101145108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a program downloading method which is used in the minimum system module of an embedded CPU. And the method includes the steps as follows: step 1, the JTAG interface on the minimum system module of the embedded CPU can be used to download the guide program to the storage module on the minimum system module of the embedded CPU; step 2, the downloaded guide program can be used to allocate a low-speed communications interface on the minimum system module of the embedded CPU, and the minimum system module of the embedded CPU can restart; step 3, the low-speed communications interface downloads a first application program to a fast storage; the invention also provides a program downloading program which can be used in the minimum system module of an embedded CPU, and the device comprises a guide program downloading unit, a first configuration unit, and a first application program downloading unit; thereby, the method and the device provided by the invention can reduce the design size of the minimum system module, and can simplify the production process of the minimum system module.

Description

The program down-loading method and the device that are used for embedded type CPU minimum systematic module
Technical field
The present invention relates to method for down loading, more specifically, relate to a kind of program down-loading method and device that is used for embedded type CPU minimum systematic module.
Background technology
Fig. 1 downloads process flow diagram according to the embedded type CPU minimum systematic module program of prior art.
The embedded type CPU minimum system is widely used in the IT product.Application program is moved on the CPU minimum system functional subsystems such as circuit integrated circuit board is managed.In order to accelerate tempo of development, the embedded type CPU minimum system through regular meeting by modularization.In the suitability for industrialized production of IT product, need fast, give in large quantity embedded type CPU minimum systematic module downloading guides program and application program.Need extract plugged procedure stores device on the module for minimum systematic module downloading guides program in the past, these devices are generally nonvolatile memories such as FLASH or EEPROM, with special-purpose chip burner the boot burning are advanced then in the device such as FLASH.After boot program loads and the operation, can give minimum systematic module down load application program by other communication interfaces.As shown in Figure 1, represented this downloading mode with the mode of process flow diagram.Obviously, this mode is more time-consuming and bothersome.
In addition, the FLSAH of plug type or EEPROM need a socket on module, and perhaps this socket is unacceptable concerning the modular design of size sensitivity.If replace device with socket with nonvolatile semiconductor memory member (such as SMD FLASH device) not with socket, will dwindle the size of design, but how to have become problem, be put into burning on the chip burner because cannot pull up FLASH to the SMD FLASH downloading guides program on the module.
Summary of the invention
In order to solve above-mentioned the problems of the prior art, the present invention proposes a kind of program down-loading method that is used for embedded type CPU minimum systematic module, this method may further comprise the steps: step 1, utilize the jtag interface on the embedded type CPU minimum systematic module, boot is downloaded on the memory module on the embedded type CPU minimum systematic module; Step 2, the boot that use is downloaded disposes the low-speed communication interface on the embedded type CPU minimum systematic module, and restarts embedded type CPU minimum systematic module; And step 3, use the low-speed communication interface that first application program is downloaded on the short-access storage.
The method according to this invention also comprises: use first application program to dispose high-speed communication interface on the embedded type CPU minimum systematic module, and restart embedded type CPU minimum systematic module; And use high-speed communication interface that second application program is downloaded on the short-access storage.
Wherein, the capacity of second application program is greater than the capacity of first application program.
Simultaneously, memory module comprises short-access storage and EEPROM.
In addition, the low-speed communication interface comprises UART and HDLC interface, and high-speed communication interface comprises Ethernet interface.
Simultaneously, the invention allows for a kind of program downloading apparatus that is used for embedded type CPU minimum systematic module, this device comprises: the boot download unit, be used to utilize the jtag interface on the embedded type CPU minimum systematic module, boot is downloaded on the memory module on the embedded type CPU minimum systematic module; First dispensing unit is used to use the boot of being downloaded to dispose low-speed communication interface on the embedded type CPU minimum systematic module, and restarts embedded type CPU minimum systematic module; And the first application program download unit, be used to use the low-speed communication interface that first application program is downloaded to short-access storage.
According to device of the present invention, also comprise: second dispensing unit is used to use first application program to dispose high-speed communication interface on the embedded type CPU minimum systematic module, and restarts embedded type CPU minimum systematic module; And the second application program download unit, be used to use high-speed communication interface that second application program is downloaded to short-access storage.
Wherein, the capacity of second application program is greater than the capacity of first application program.
Simultaneously, memory module comprises short-access storage and EEPROM.
In addition, the low-speed communication interface comprises UART interface and HDLC interface, and high-speed communication interface comprises Ethernet interface.
Therefore, adopt method and apparatus of the present invention can reduce the design size of minimum systematic module and simplify the production procedure of minimum systematic module.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used from explanation the present invention with embodiments of the invention one, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 downloads process flow diagram according to the embedded type CPU minimum systematic module program of prior art;
Fig. 2 is the process flow diagram that is used for the program down-loading method of embedded type CPU minimum systematic module according to of the present invention;
Fig. 3 is according to the multiple batches of downloading guides program of first embodiment of the inventive method and the process flow diagram of application program;
Fig. 4 downloads process flow diagram according to the minimum systematic module program of second embodiment of the inventive method;
Fig. 5 be according to the 3rd embodiment of the inventive method with UART/HDLC and Ethernet respectively as the process flow diagram of low speed and high-speed downloads interface;
Fig. 6 is a process flow diagram of directly downloading whole application programs according to the 4th embodiment of the inventive method with UART/HDLC; And
Fig. 7 is the block diagram that is used for the program downloading apparatus of embedded type CPU minimum systematic module according to of the present invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for description and interpretation the present invention, and be not used in qualification the present invention.
Main points of the present invention are to utilize the interfaces such as JTAG, HDLC, UART and Ethernet on the embedded type CPU minimum systematic module to download to the not plug type program storage spare on the module multiple batches ofly.
FLASH on the module is before the downloading guides program, and the inside is without any program, so the various communication interfaces on the module are not configured, can not and PERCOM peripheral communication.CPU in the embedded minimum system generally has jtag interface, and jtag interface can be operated data, address and the control bus of CPU on the embedded minimum systematic module, programmes to FLASH.All want a serial input hundreds of pin scan-data and other management datas because JTAG is universal serial bus and every operation one secondary data, address and control bus, therefore programming is very slow to FLASH with JTAG.
The present invention proposes a kind of method, the program that is used for embedded type CPU minimum systematic module is downloaded.Next embodiments of the invention are described in conjunction with the accompanying drawings.
Fig. 2 is the process flow diagram that is used for the program down-loading method of embedded type CPU minimum systematic module according to of the present invention.As shown in Figure 2, may further comprise the steps:
S202 utilizes the jtag interface on the embedded type CPU minimum systematic module, and boot is downloaded on the memory module on the embedded type CPU minimum systematic module;
S204, the boot that use is downloaded disposes the low-speed communication interface on the embedded type CPU minimum systematic module, and restarts embedded type CPU minimum systematic module; And
S206 uses the low-speed communication interface that first application program is downloaded on the short-access storage.
The method according to this invention also comprises: use first application program to dispose high-speed communication interface on the embedded type CPU minimum systematic module, and restart embedded type CPU minimum systematic module; And use high-speed communication interface that second application program is downloaded on the short-access storage.
Wherein, the capacity of second application program is greater than the capacity of first application program.
Simultaneously, memory module comprises short-access storage and EEPROM.
In addition, the low-speed communication interface comprises UART and HDLC interface, and high-speed communication interface comprises Ethernet interface.
Fig. 3 is according to the multiple batches of downloading guides program of first embodiment of the inventive method and the process flow diagram of application program.As shown in Figure 3, may further comprise the steps:
S302 utilizes jtag interface to the FLASH downloading guides program on the module, only downloads the simplest boot with the jtag interface of low speed to module, configures simple low-speed communication interface (for example UART and HDLC interface);
S304, boot need be restarted a lower module after downloading and finishing;
S306 allows program be loaded among the RAM and operation, and can utilize the low-speed communication interface that configures to download simple application program this moment, to comprise in the simple application program configuration high-speed communication interface (such as 100,000,000 or gigabit ethernet interface) code;
S308, after restarting once more, module loading simple application program configures high-speed communication interface; And
S310 downloads to high capacity, complicated application program on the FLASH of module by high-speed communication interface.
So just finished the process that downloads of plug type program storage not on the module, just program storage is in the process that systematically downloads.
Fig. 4 downloads process flow diagram according to the minimum systematic module program of second embodiment of the inventive method.As shown in Figure 4, may further comprise the steps:
S402, embedded type CPU minimum systematic module hardware is produced;
S404, the downloading guides program;
S406, the down load application program; And
S408, module production finishes/is placed into and uses in each system of module.
Compare with the prior art of Fig. 1, this flow process becomes and has oversimplified.
Fig. 5 be according to the 3rd embodiment of the inventive method with UART/HDLC and Ethernet respectively as the process flow diagram of low speed and high-speed downloads interface.
Present embodiment utilizes UART or HDLC to download the simple application program as the low speed download interface, downloads high capacity, complex application with Ethernet interface as the high-speed downloads interface.Generally speaking, Ethernet interface (100,000,000 or gigabit) is more a lot of soon as the interface of data link layer protocol than UART and HDLC.This embodiment is applicable to the very big situation of normal application program volume, and the application program here includes the logical code of programming device on the configuration module.
As shown in Figure 5, may further comprise the steps:
S502 utilizes jtag interface to download the simplest boot to FLASH, UART on the configuration module or HDLC interface;
S504, reseting module;
S506 utilizes UART or HDLC interface to download the simple application program to FLASH, the Ethernet interface on the configuration module;
S508, reseting module once more; And
S510 utilizes Ethernet interface to download high capacity, complex application to FALSH.
Fig. 6 is a process flow diagram of directly downloading whole application programs according to the 4th embodiment of the inventive method with UART/HDLC.
Present embodiment directly utilizes UART or HDLC interface to download whole final application programs, has omitted with the Fast Ethernet mouth and has come the down load application program, and this embodiment is applicable to that the application program volume is not very big situation.
As shown in Figure 6, may further comprise the steps:
S602 utilizes jtag interface to download the simplest boot to FLASH, UART on the configuration module or HDLC interface;
S604, reseting module; And
S606 utilizes UART or HDLC interface to download whole application programs to FLASH.
Fig. 7 is the block diagram that is used for the program downloading apparatus 700 of embedded type CPU minimum systematic module according to of the present invention.
As shown in Figure 7, this device comprises: boot download unit 702, be used to utilize the jtag interface on the embedded type CPU minimum systematic module, and boot is downloaded on the memory module on the embedded type CPU minimum systematic module; First dispensing unit 704 is used to use the boot of being downloaded to dispose low-speed communication interface on the embedded type CPU minimum systematic module, and restarts embedded type CPU minimum systematic module; And the first application program download unit 706, be used to use the low-speed communication interface that first application program is downloaded to short-access storage.
According to device of the present invention, also comprise: second dispensing unit 708 is used to use first application program to dispose high-speed communication interface on the embedded type CPU minimum systematic module, and restarts embedded type CPU minimum systematic module; And the second application program download unit 710, be used to use high-speed communication interface that second application program is downloaded to short-access storage.
Wherein, the capacity of second application program is greater than the capacity of first application program.
Simultaneously, memory module comprises short-access storage and EEPROM.
In addition, the low-speed communication interface comprises UART interface and HDLC interface, and high-speed communication interface comprises Ethernet interface.
In sum, utilize method and apparatus of the present invention can reduce the design size of minimum systematic module and simplify the production procedure of minimum systematic module.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a program down-loading method that is used for embedded type CPU minimum systematic module is characterized in that, may further comprise the steps:
Step 1 is utilized the jtag interface on the embedded type CPU minimum systematic module, and boot is downloaded on the memory module on the described embedded type CPU minimum systematic module;
Step 2, the described boot that use is downloaded disposes the low-speed communication interface on the described embedded type CPU minimum systematic module, and restarts described embedded type CPU minimum systematic module; And
Step 3 uses described low-speed communication interface that first application program is downloaded on the described short-access storage.
2. program down-loading method according to claim 1 is characterized in that, also comprises:
Use described first application program to dispose high-speed communication interface on the described embedded type CPU minimum systematic module, and restart described embedded type CPU minimum systematic module; And
Use described high-speed communication interface that second application program is downloaded on the described short-access storage.
3. program down-loading method according to claim 2 is characterized in that the capacity of described second application program is greater than the capacity of described first application program.
4. according to each described program down-loading method in the claim 1 to 3, it is characterized in that described memory module comprises short-access storage and EEPROM.
5. according to each described program down-loading method in the claim 1 to 3, it is characterized in that described low-speed communication interface comprises UART and HDLC interface.
6. according to each described program down-loading method in the claim 1 to 3, it is characterized in that described high-speed communication interface comprises Ethernet interface.
7. a program downloading apparatus that is used for embedded type CPU minimum systematic module is characterized in that, comprising:
The boot download unit is used to utilize the jtag interface on the embedded type CPU minimum systematic module, and boot is downloaded on the memory module on the described embedded type CPU minimum systematic module;
First dispensing unit is used to use the described boot of being downloaded to dispose low-speed communication interface on the described embedded type CPU minimum systematic module, and restarts described embedded type CPU minimum systematic module; And
The first application program download unit is used to use described low-speed communication interface that first application program is downloaded to described short-access storage.
8. program downloading apparatus according to claim 7 is characterized in that, also comprises:
Second dispensing unit is used to use described first application program to dispose high-speed communication interface on the described embedded type CPU minimum systematic module, and restarts described embedded type CPU minimum systematic module; And
The second application program download unit is used to use described high-speed communication interface that second application program is downloaded to described short-access storage.
9. program downloading apparatus according to claim 8 is characterized in that the capacity of described second application program is greater than the capacity of described first application program.
10. according to each described program downloading apparatus in the claim 7 to 9, it is characterized in that described memory module comprises short-access storage and EEPROM.
11., it is characterized in that described low-speed communication interface comprises UART interface and HDLC interface according to each described program downloading apparatus in the claim 7 to 9.
12., it is characterized in that described high-speed communication interface comprises Ethernet interface according to each described program downloading apparatus in the claim 7 to 9.
CN2007101546535A 2007-09-20 2007-09-20 Program downloading method and device for embedded type CPU minimum systematic module Active CN101145108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101546535A CN101145108B (en) 2007-09-20 2007-09-20 Program downloading method and device for embedded type CPU minimum systematic module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101546535A CN101145108B (en) 2007-09-20 2007-09-20 Program downloading method and device for embedded type CPU minimum systematic module

Publications (2)

Publication Number Publication Date
CN101145108A true CN101145108A (en) 2008-03-19
CN101145108B CN101145108B (en) 2010-06-02

Family

ID=39207648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101546535A Active CN101145108B (en) 2007-09-20 2007-09-20 Program downloading method and device for embedded type CPU minimum systematic module

Country Status (1)

Country Link
CN (1) CN101145108B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105045624A (en) * 2015-07-17 2015-11-11 天津市英贝特航天科技有限公司 PowerPC mainboard and program writing method
WO2016078222A1 (en) * 2014-11-19 2016-05-26 中兴通讯股份有限公司 Bootstrap transmission method, embedded system and bootstrap transmission system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016078222A1 (en) * 2014-11-19 2016-05-26 中兴通讯股份有限公司 Bootstrap transmission method, embedded system and bootstrap transmission system
CN105677376A (en) * 2014-11-19 2016-06-15 中兴通讯股份有限公司 Bootstrap program transmission method, embedded system and bootstrap program transmission system
CN105045624A (en) * 2015-07-17 2015-11-11 天津市英贝特航天科技有限公司 PowerPC mainboard and program writing method

Also Published As

Publication number Publication date
CN101145108B (en) 2010-06-02

Similar Documents

Publication Publication Date Title
CN103777972B (en) System, configuration method based on field programmable gate array and upgrade method
CN102609286A (en) System for updating FPGA (Field Programmable Gate Array) configuration program from a long distance based on control of processor and method therefor
CN100461105C (en) Update and repair method of intellectualized equipment and system thereof
CN102073517A (en) Upgrading and backup method and device for embedded system
CN106707848A (en) Control program organization structure of control system and download method
CN101566943A (en) Method, terminal and system for controlling terminal software functions
CN103309693A (en) Complex programmable logic device updating method and system
CN103118198A (en) Firmware upgrading method and system for mobile terminals
CN103677915A (en) Automatic burning method of flash mirror image based on TF starting card
CN108182078B (en) Optimized missile-borne device non-dismantling software online upgrading method
CN109002331A (en) Starting method and device of touch screen, computer equipment and storage medium
CN101145108B (en) Program downloading method and device for embedded type CPU minimum systematic module
CN102122530A (en) System and method for programming flash memory
CN111797015A (en) Testing method and device based on dynamic byte codes
CN104536774B (en) Chip software method for burn-recording
CN101667133B (en) Method for updating firmware and chip updating firmware by using same
US6851013B1 (en) Fast program mode
CN102033767A (en) Single plate and method for upgrading same on line
CN102446101A (en) System for mandatorily upgrading firmware and method for mandatorily upgrading firmware thereof
CN109542484B (en) Method and system for updating FPGA configuration chip on line
US8990474B2 (en) Logic device having a compressed configuration image stored on an internal read only memory
US20080246504A1 (en) Apparatus and method to manage external voltage for semiconductor memory testing with serial interface
CN101162430A (en) Memory card and method of updating memory card program
CN101515240A (en) Digital signal processor loading method, electronic device and electronic system
CN100483349C (en) Software loading method and its system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20151110

Address after: 430223 East Lake Wuhan New Technology Development Zone Hua Hua Road, Optics Valley Industrial Park, ZTE building, building No. 3, building

Patentee after: WUHAN ZHONGXING SOFTWARE CO., LTD.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Patentee before: ZTE Corporation