CN101159957A - Data terminal equipment updating, renovating method and device - Google Patents

Data terminal equipment updating, renovating method and device Download PDF

Info

Publication number
CN101159957A
CN101159957A CNA2007101673348A CN200710167334A CN101159957A CN 101159957 A CN101159957 A CN 101159957A CN A2007101673348 A CNA2007101673348 A CN A2007101673348A CN 200710167334 A CN200710167334 A CN 200710167334A CN 101159957 A CN101159957 A CN 101159957A
Authority
CN
China
Prior art keywords
instruction
terminal equipment
data terminal
module
cpu
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
Application number
CNA2007101673348A
Other languages
Chinese (zh)
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.)
ZTE Corp
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 CNA2007101673348A priority Critical patent/CN101159957A/en
Publication of CN101159957A publication Critical patent/CN101159957A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an upgrade/repair method and a device for digital terminal equipment, which comprises a burning ROM module used to generate a command and send the command to a command analysis module to write the software code to be burned into a memory device of the digital terminal equipment, to complete the upgrade/repair of the digital terminal equipment; a command analysis module used to analyze the command sent by the burning ROM module and transmits to the corresponding module; a combined test work group time sequence module used to receive the command analyzed by the command analysis module and send a time sequence command to the digital terminal equipment, performing time schedule control. The invention can realize the fast and stable download of data terminal software with easy implementation, simple operation and low cost; is used in the development, production and maintenance of digital terminal equipment; and has the advantages of rapid speed and good stability.

Description

The method and apparatus of a kind of data terminal equipment updating, reparation
Technical field
The present invention relates to communication field, relate in particular to a kind of data terminal equipment updating, restorative procedure and device.
Background technology
Along with progress of science and technology, with mobile phone, data card is that the data terminal equipment of representative also develops to multifunction from simple communication apparatus, mobile TV, visual telephone, multimedia message, increasing function such as camera has been increased in the mobile phone, thereby caused this type of data terminal product software more and more huger, become increasingly complex, the complexity of software and the huge stability decreases that causes equipment such as mobile phone, the probability that breaks down increases, thereby will carry out the upgrading or the reparation of software code to the data terminal equipments such as mobile phone that break down.
For the data terminal equipment that can not normally start, it is wrong not having program or program among its Flash (flash memory), so can't start the communication interface that USB, UART (UART Universal Asynchronous Receiver Transmitter) etc. need driver, also just can't download by these communication interfaces, carry out the program download and can only pass through JTAG (Joint Test Action Group, joint test working group) interface.
Downloading Flash by jtag interface has two kinds of methods, and a kind of is the boundary scan chain method, and a kind of is JTAG Target method.
The boundary scan chain method, can visit with jtag interface that all are attached thereto the resource that connects on the boundary scan chain of CPU, so can have access to the Memory bus, data/address bus/address bus/CS/WR of Flash (NOR) or the like, all can come complete operation Flash and then realize download by the boundary scan register of CPU; The length of the speed of this method for down loading and chip boundary scan chain has much relations, because chip pin is more and more now, causes boundary scan chain also more and more longer, and then influences speed of download greatly.
Another kind is downloaded the Flash method by jtag interface and is called the Target mode.The essence of this mode is to write the code of one section programming Flash (being called the programming plug-in unit usually) earlier, then by jtag interface this section programming code and need data downloaded to download to earlier among the SRAM (static memory) or SDRAM (synchronous DRAM) of Target Board, carry out the programming code then, leaving file programming among SRAM or the SDRAM in Flash; But this method also exists burning equipment price height, the problem that burning speed is slow.
In sum, thereby the technical scheme of a kind of data terminal equipment updating of current needs, reparation solve data terminal equipment research and development, produce and maintenance in the middle of be not activated program among the flash that runs into and maybe need to change the problem that the start-up routine among flash chip or the flash goes wrong and causes data terminal equipment to start, solve the burning equipment price height that exists in original method, the problem that burning speed is slow.
Summary of the invention
Technical problem to be solved by this invention provides the method and apparatus of a kind of data terminal equipment updating, reparation, thereby solved data terminal equipment research and development, produce and maintenance in the middle of be not activated program among the flash that runs into and maybe need to change the problem that the start-up routine among flash chip or the flash goes wrong and causes data terminal equipment to start, also solved burning equipment price height in addition, the problem that burning speed is slow, realization is erasable to the flash fast and stable.
In order to address the above problem, the invention provides the device of a kind of data terminal equipment updating, reparation, comprise data terminal equipment, also comprise,
Burning module, command analysis module, joint test working group tfi module, wherein,
Burning module is used to send instruction and this instruction is sent to command analysis module, and the software code of burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment;
Command analysis module is used for corresponding module is resolved and is sent in the instruction that burning module sends;
Joint test working group tfi module is used to receive the instruction that command analysis module is resolved, and to the instruction of data terminal equipment transmission timing, carries out sequencing control.
Further, said apparatus also can comprise, described joint test working group tfi module, be used to receive the instruction that command analysis module is resolved, to CPU register access module, internal storage access module, Debug module, the instruction of data terminal equipment transmission timing, carry out sequencing control, the instruction that described command analysis module is resolved all is to finish by joint test working group tfi module.
Further, said apparatus can comprise that also corresponding module comprises CPU register access module, internal storage access module, Debug module, joint test working group tfi module.
Further, said apparatus also can comprise, described CPU register access module is used to receive the instruction that command analysis module is resolved, according to the sequential instruction that joint test working group tfi module transmits, each general register of visit CPU;
Described internal storage access module is used to receive the instruction that command analysis module is resolved, and according to the sequential instruction that joint test working group tfi module transmits, the visit unified addressing is at the RAM and the register of memory headroom;
Described Debug module is used to receive the instruction that command analysis module is resolved, and according to the sequential instruction that joint test working group tfi module transmits, carries out shut down procedure, working procedure, breakpoint is set, removes the Debug function operations of breakpoint.
Further, said apparatus can comprise that also the instruction that described burning module sends comprises the operation of the CPU of control data terminal equipment, the instruction that stops; The instruction that is provided with, removes breakpoint; The instruction of each general register of CPU of terminal equipment reads and writes data; Read-write is addressed in the instruction of the external equipment register of unified memory headroom; The instruction of the RAM of the data terminal equipment on the read-write Target Board; The instruction of the memory device of the data terminal equipment on the read-write Target Board.
Further, said apparatus also can comprise, the some operations that comprise user on the interface is resolved in the instruction of burning module transmission resolve to the instruction of program inside and the instruction in the analyzing script file.
Further, said apparatus also can comprise, the instruction in the described script file comprise stop, operation, rdma read, the instruction writing internal memory, breakpoint be set, remove breakpoint.
The present invention also provides the method for a kind of data terminal equipment updating, reparation, comprises data terminal equipment, may further comprise the steps,
A, the instruction transformation of sending become standard association test job group instruction after, send data terminal equipment to;
After the standard association test job group instruction after b, the corresponding conversion of data terminal equipment reception, by joint test working group scan chain, the data terminal equipment download plug-in, finish writing of whole software version, the software code of wanting burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment.
Further, said method can comprise that also among the described step a, described instruction of sending comprises the operation of the CPU of control data terminal equipment, the instruction that stops; The instruction that is provided with, removes breakpoint; The instruction of each general register of CPU of terminal equipment reads and writes data; Read-write is addressed in the instruction of the external equipment register of unified memory headroom; The instruction of the RAM of the data terminal equipment on the read-write Target Board; The instruction of the memory device of the data terminal equipment on the read-write Target Board.
Further, said method also can comprise, among the described step b, comprise,
The CPU of b1, data terminal equipment receives the standard association test job group instruction after the corresponding conversion, enters the Debug state;
The CPU of b2, data terminal equipment, flash memory and RAM receive the standard association test job group instruction after the corresponding conversion, carry out initialization;
The CPU of b3, data terminal equipment receives the standard association test job group instruction after the corresponding conversion, is written to the assigned address of RAM by the joint test working group scan chain download plug-in that burn recording software is required;
The CPU of b4, data terminal equipment receives the standard association test job group instruction after the corresponding conversion, by the assigned address of joint test working group scan chain with the described RAM of program counter pointed, make CPU withdraw from the Debug pattern, operation writes the plug-in unit of the burn recording software of described RAM;
The CPU download plug-in of b5, data terminal equipment is finished writing of whole software version, and the software code of burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment.
Compared with prior art, use the present invention, can realize that the fast and stable of data terminal software is downloaded, realize easily, simple to operate, with low cost, can be applied in the research and development production and maintenance of data terminal equipment, have that speed is fast, the advantage of good stability.
Description of drawings
Fig. 1 is the structure chart of the device of data terminal equipment updating in the specific embodiment of the invention, reparation;
Fig. 2 is the flow chart of the method for data terminal equipment updating in the specific embodiment of the invention, reparation.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
The present invention be to the software version of data terminal equipment upgrade and repair method, data terminal equipment and PC are coupled together, can realize stable, the high-speed downloads of data terminal equipment version, this method is applicable to the software upgrading and the reparation of data terminal equipments such as mobile phone, wireless data card, USB Modem.
As shown in Figure 1, the device of a kind of data terminal equipment updating, reparation comprises data terminal equipment, also comprises burning module, command analysis module, CPU register access module, internal storage access module, Debug module, JTAG tfi module, wherein
Burning module is used to send instruction and this instruction is sent to command analysis module, and the software code of burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment;
Described instruction comprises the operation of the CPU of control data terminal equipment, the instruction that stops etc.; The instruction that is provided with, removes breakpoint; The instruction of each general register of CPU of terminal equipment reads and writes data; Read-write is addressed in the instruction of the external equipment register of unified memory headroom; The instruction of the various RAM of the data terminal equipment on the read-write Target Board; The instruction of the memory device of the data terminal equipment on the read-write Target Board.
The memory device of described data terminal equipment comprises Flash etc.
Command analysis module is used for corresponding module is resolved and is sent in the instruction that burning module sends;
The some operations that comprise user on the interface are resolved in the instruction of burning module transmission resolve to the various instructions of program inside and the various instructions in the analyzing script file.
Various instructions in the described script file mainly comprise stop, operation, rdma read, the instruction of writing internal memory, breakpoint is set, removing breakpoint etc.
Corresponding module comprises CPU register access module, internal storage access module, Debug module, JTAG tfi module.
CPU register access module is used to receive the instruction that command analysis module is resolved, according to the sequential instruction that the JTAG tfi module transmits, each general register of visit CPU;
The internal storage access module is used to receive the instruction that command analysis module is resolved, and according to the sequential instruction that the JTAG tfi module transmits, the visit unified addressing is at the RAM and the various register of memory headroom;
The Debug module is used to receive the instruction that command analysis module is resolved, and according to the sequential instruction that the JTAG tfi module transmits, carries out shut down procedure, working procedure, breakpoint is set, removes various Debug function operations such as breakpoint;
The JTAG tfi module is used to receive the instruction that command analysis module is resolved, and to CPU register access module, internal storage access module, Debug module, the instruction of data terminal equipment transmission timing, carries out sequencing control.
The JTAG tfi module comprises the state machine of JTAG TAP.
The instruction that described command analysis module is resolved finally all is to realize by the state machine of JTAG TAP, and the running of whole JTAG TAP state machine is all finished in the JTAG tfi module.
The method of a kind of data terminal equipment updating, reparation comprises data terminal equipment, may further comprise the steps,
After the instruction transformation of sending become the standard jtag instruction, send data terminal equipment to;
Behind the standard jtag instruction after the corresponding conversion of data terminal equipment reception, by the JTAG scan chain, the data terminal equipment download plug-in, finish writing of whole software version, the software code of wanting burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment.
As shown in Figure 2, the method for a kind of data terminal equipment updating, reparation comprises data terminal equipment, and concrete steps are as follows,
Step 110, the instruction transformation of sending become the standard jtag instruction after, send data terminal equipment to;
Described instruction of sending comprises the operation of the CPU of control data terminal equipment, the instruction that stops etc.; The instruction that is provided with, removes breakpoint; The instruction of each general register of CPU of terminal equipment reads and writes data; Read-write is addressed in the instruction of the external equipment register of unified memory headroom; The instruction of the various RAM of the data terminal equipment on the read-write Target Board; The instruction of the memory device of the data terminal equipment on the read-write Target Board.
Become the standard jtag instruction to realize the described instruction transformation of sending, also can realize by hardware circuit by software.
The CPU of step 120, data terminal equipment receives the standard jtag instruction after the corresponding conversion, enters the Debug state;
The CPU of step 130, data terminal equipment, Flash and RAM receive the standard jtag instruction after the corresponding conversion, carry out initialization;
The CPU of step 140, data terminal equipment receives the standard jtag instruction after the corresponding conversion, is written to the assigned address of RAM by the JTAG scan chain download plug-in that burn recording software is required;
The CPU of step 150, data terminal equipment receives the standard jtag instruction after the corresponding conversion, by the assigned address of JTAG scan chain with the described RAM of program counter pointed, make CPU withdraw from the Debug pattern, operation writes the plug-in unit of the burn recording software of described RAM;
The CPU download plug-in of step 160, data terminal equipment is finished writing of whole software version, and the software code of burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment.
Use the present invention, can realize that the fast and stable of data terminal software is downloaded, realize easily, simple to operate, with low cost, can be applied in the research and development production and maintenance of data terminal equipment, have that speed is fast, the advantage of good stability.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with the people of this technology in the disclosed technical scope of the present invention; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. the device of a data terminal equipment updating, reparation comprises data terminal equipment, it is characterized in that, also comprise,
Burning module, command analysis module, joint test working group tfi module, wherein,
Burning module is used to send instruction and this instruction is sent to command analysis module, and the software code of burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment;
Command analysis module is used for corresponding module is resolved and is sent in the instruction that burning module sends;
Joint test working group tfi module is used to receive the instruction that command analysis module is resolved, and to the instruction of data terminal equipment transmission timing, carries out sequencing control.
2. device as claimed in claim 1 is characterized in that,
Described joint test working group tfi module, be used to receive the instruction that command analysis module is resolved, to CPU register access module, internal storage access module, Debug module, the instruction of data terminal equipment transmission timing, carry out sequencing control, the instruction that described command analysis module is resolved all is to finish by joint test working group tfi module.
3. device as claimed in claim 1 is characterized in that,
Corresponding module comprises CPU register access module, internal storage access module, Debug module, joint test working group tfi module.
4. device as claimed in claim 2 is characterized in that,
Described CPU register access module is used to receive the instruction that command analysis module is resolved, according to the sequential instruction that joint test working group tfi module transmits, each general register of visit CPU;
Described internal storage access module is used to receive the instruction that command analysis module is resolved, and according to the sequential instruction that joint test working group tfi module transmits, the visit unified addressing is at the RAM and the register of memory headroom;
Described Debug module is used to receive the instruction that command analysis module is resolved, and according to the sequential instruction that joint test working group tfi module transmits, carries out shut down procedure, working procedure, breakpoint is set, removes the Debug function operations of breakpoint.
5. device as claimed in claim 1 is characterized in that,
The instruction that described burning module sends comprises the operation of the CPU of control data terminal equipment, the instruction that stops; The instruction that is provided with, removes breakpoint; The instruction of each general register of CPU of terminal equipment reads and writes data; Read-write is addressed in the instruction of the external equipment register of unified memory headroom; The instruction of the RAM of the data terminal equipment on the read-write Target Board; The instruction of the memory device of the data terminal equipment on the read-write Target Board.
6. device as claimed in claim 1 is characterized in that,
The some operations that comprise user on the interface are resolved in the instruction of burning module transmission resolve to the instruction of program inside and the instruction in the analyzing script file.
7. device as claimed in claim 6 is characterized in that,
Instruction in the described script file comprise stop, operation, rdma read, the instruction writing internal memory, breakpoint is set, remove breakpoint.
8. the method for a data terminal equipment updating, reparation comprises data terminal equipment, it is characterized in that, may further comprise the steps,
A, the instruction transformation of sending become standard association test job group instruction after, send data terminal equipment to;
After the standard association test job group instruction after b, the corresponding conversion of data terminal equipment reception, by joint test working group scan chain, the data terminal equipment download plug-in, finish writing of whole software version, the software code of wanting burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment.
9. method as claimed in claim 8 is characterized in that,
Among the described step a, described instruction of sending comprises the operation of the CPU of control data terminal equipment, the instruction that stops; The instruction that is provided with, removes breakpoint; The instruction of each general register of CPU of terminal equipment reads and writes data; Read-write is addressed in the instruction of the external equipment register of unified memory headroom; The instruction of the RAM of the data terminal equipment on the read-write Target Board; The instruction of the memory device of the data terminal equipment on the read-write Target Board.
10. method as claimed in claim 8 is characterized in that,
Among the described step b, comprise,
The CPU of b1, data terminal equipment receives the standard association test job group instruction after the corresponding conversion, enters the Debug state;
The CPU of b2, data terminal equipment, flash memory and RAM receive the standard association test job group instruction after the corresponding conversion, carry out initialization;
The CPU of b3, data terminal equipment receives the standard association test job group instruction after the corresponding conversion, is written to the assigned address of RAM by the joint test working group scan chain download plug-in that burn recording software is required;
The CPU of b4, data terminal equipment receives the standard association test job group instruction after the corresponding conversion, by the assigned address of joint test working group scan chain with the described RAM of program counter pointed, make CPU withdraw from the Debug pattern, operation writes the plug-in unit of the burn recording software of described RAM;
The CPU download plug-in of b5, data terminal equipment is finished writing of whole software version, and the software code of burning is written in the memory device of data terminal equipment, finishes upgrading, the reparation of data terminal equipment.
CNA2007101673348A 2007-10-25 2007-10-25 Data terminal equipment updating, renovating method and device Pending CN101159957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007101673348A CN101159957A (en) 2007-10-25 2007-10-25 Data terminal equipment updating, renovating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007101673348A CN101159957A (en) 2007-10-25 2007-10-25 Data terminal equipment updating, renovating method and device

Publications (1)

Publication Number Publication Date
CN101159957A true CN101159957A (en) 2008-04-09

Family

ID=39307844

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007101673348A Pending CN101159957A (en) 2007-10-25 2007-10-25 Data terminal equipment updating, renovating method and device

Country Status (1)

Country Link
CN (1) CN101159957A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101984407A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Terminal driver upgrading method, device and equipment
CN101500336B (en) * 2009-03-12 2011-07-13 中兴通讯股份有限公司 Mobile communication terminal and data download processing method thereof
WO2013178194A3 (en) * 2013-03-11 2014-02-20 中兴通讯股份有限公司 Data terminal upgrade device and method
CN107291484A (en) * 2016-04-11 2017-10-24 龙芯中科技术有限公司 The method and device of programming bare board
CN110737582A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 OTG port-based detection method and device
CN110737561A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 embedded test systems
CN110737583A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 method and device for testing test code
CN110737551A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 method and device for communication between upper computer and lower computer

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101500336B (en) * 2009-03-12 2011-07-13 中兴通讯股份有限公司 Mobile communication terminal and data download processing method thereof
CN101984407A (en) * 2010-11-02 2011-03-09 中兴通讯股份有限公司 Terminal driver upgrading method, device and equipment
CN101984407B (en) * 2010-11-02 2014-10-29 中兴通讯股份有限公司 Terminal driver upgrading method and device
WO2013178194A3 (en) * 2013-03-11 2014-02-20 中兴通讯股份有限公司 Data terminal upgrade device and method
US9489192B2 (en) 2013-03-11 2016-11-08 Zte Corporation Device and method for upgrading data terminal
CN107291484A (en) * 2016-04-11 2017-10-24 龙芯中科技术有限公司 The method and device of programming bare board
CN107291484B (en) * 2016-04-11 2021-05-25 龙芯中科技术股份有限公司 Method and device for programming bare board
CN110737582A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 OTG port-based detection method and device
CN110737561A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 embedded test systems
CN110737583A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 method and device for testing test code
CN110737551A (en) * 2018-07-20 2020-01-31 北京君正集成电路股份有限公司 method and device for communication between upper computer and lower computer

Similar Documents

Publication Publication Date Title
CN101159957A (en) Data terminal equipment updating, renovating method and device
CN100461105C (en) Update and repair method of intellectualized equipment and system thereof
CN106095620B (en) A kind of development approach of built-in Linux partition holding
CN101604272B (en) Apparatus and method for memory card testing
CN103246586B (en) Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform
CN101938566B (en) Visual terminal debugging method and device
CN103150188B (en) The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer
CN103516559A (en) Method and system for testing application compatibility of intelligent terminal
CN101673202A (en) Program writing method and system, pre-writing device and writing device
CN102075632A (en) Mobile terminal camera debugging method and device
CN111104269B (en) UART interface-based processor debugging method and system
CN103365688A (en) Method for automatic installation and synchronization of software between Android intelligent devices
CN103677885A (en) ARM FLASH simple program programming method
CN104133705B (en) A kind of serial ports loads the system and method for PowerPC System guides files
CN105279127A (en) FPGA program downloading system based on PCI or PCIe bus, and method
CN104268074A (en) Application software online debugging method based on DCS
Vilček et al. Comparative analysis of tools for development of native and hybrid mobile applications
CN104375933A (en) Unit testing method and device
CN111459744A (en) Firmware burning method and firmware debugging method of video processing chip
CN101046789A (en) Data transmission method, firmware updating method and bus loader
CN102346677A (en) Method for upgrading field programmable gate array (FPGA) program
CN110780908A (en) Screen display program upgrading method and system and terminal equipment
CN101452393A (en) DSP2812 program on-line upgrading method based on PCI bus
CN104461859A (en) Emulator and method for supporting NVM soft breakpoint debugging
CN116088911A (en) Firmware batch upgrading system, method and terminal device of distributed IO

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080409