Embedded system cross-debugging method and device

An embedded system and debugging method technology, which is applied in the direction of faulty hardware testing method, program control device, software testing/debugging, etc., can solve problems such as time consumption, low efficiency, and cost, and achieve the effect of improving debugging efficiency

Active Publication Date: 2017-06-30
SOUTH CHINA NORMAL UNIVERSITY
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] However, the biggest problem with this debugging method in the prior art is that the efficiency is very low
Because every time the program is modified, the entire firmware must be repackaged, which generally takes 10 minutes or even longer; at the same time, the entire firmware must be reprogrammed, and the external memory must be erased before programming, which also takes a lot of time
In addition, since programming firmware and JTAG debugging are two different tools, it takes a lot of time to switch back and forth

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Embedded system cross-debugging method and device
  • Embedded system cross-debugging method and device
  • Embedded system cross-debugging method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] In order to solve the defect that the entire firmware needs to be repackaged and the firmware is erased and programmed in the prior art when the application program is modified, it takes too long to debug again, the present invention provides an application that can complete the application more efficiently. A debugging method and device for updating the program to save debugging time. It is specifically introduced through the following embodiments.

[0048] In the present invention, by partially modifying the operating system, a new "update program" state is added, and the application program written in the predetermined memory is written to the system firmware area of ​​the external memory through the driver program, and the system firmware A new directory entry record corresponding to the application is added to the file system directory entry of the zone. In this way, in the normal state after the system restarts, the operating system can be loaded into the new applic...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a cross-debugging method of embedded system. The cross-debugging method comprises the following steps that S1, electrified starting is performed, and an operating system is loaded and operates; S2, whether a program is required to be updated or not is judged, if yes, the step S3 is executed, and if not, the step S9 is executed; S3, the operating system loads and operates a program updating module; S4, a JTAG downloads a modified application program into a memory; S5, the JTAG writes program information into the predetermined memory; S6, the program updating module writes the application program of the memory into an external storage firmware zone according to program information; S7, a record pointing to the application program is added in a firmware zone file system directory entry; S8, updating completion is prompted, and restarting is performed; S9, a normal application loading state is enabled, and the newest directory entry corresponding to the application is retrieved from the tail to the head of the firmware zone file system directory entry; S10, the application program is loaded through the newest directory entry, operates and is debugged. The invention further provides a device for achieving the method.

Description

Technical field [0001] The invention relates to a debugging method and device, in particular to an efficient embedded system cross debugging method and device. Background technique [0002] Embedded system cross debugging methods are generally divided into two types, one is the on-chip debugging method based on JTAG, and the other is the remote debugging method based on debugging agent. [0003] See figure 1 , Which is the connection block diagram of the JTAG-based on-chip debugging method. JTAG is an international standard chip test protocol, and most CPU systems currently support JTAG. The most prominent representative of the JTAG-based on-chip debugging method is the JLink debugger, which defines a software debugging level RDI interface standard, and then the JLink debugger converts the RDI interface issued by the debugging environment software (IAR, KEIL, etc.) into JTAG commands. Debug the chip. This method is mostly suitable for the debugging of the bottom layer of the emb...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/22G06F9/445G06F11/36
CPCG06F8/65G06F11/2273G06F11/2284G06F11/362
Inventor 黄鑫吴跃前薛云王德明朱衡德
Owner SOUTH CHINA NORMAL UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products