Program debugging method of embedded system and embedded system

An embedded system and embedded technology, applied in the field of embedded systems, can solve the problems of increasing the packaging cost of the development board and the high cost of program development, and achieve the effect of reducing the debugging cost.

Inactive Publication Date: 2012-09-12
SUNPLUS TECH CO LTD +1
View PDF3 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because the purchase cost of this online debugger ICD is often tens of thousands of yuan, and some are as high as more than ten thousand yuan, which makes the cost of program development relatively high.
In addition, since this special in-circuit debugger ICD is used to connect between the debugging host and the debugging target, corresponding port leads must be set on the development board of the debugging target, which increases the packaging cost of the development board.

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
  • Program debugging method of embedded system and embedded system
  • Program debugging method of embedded system and embedded system
  • Program debugging method of embedded system and embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] In order to overcome the above-mentioned defects in the ICD debugging technical solution, in the present invention, the CPU of the embedded system transmits high-level debugging instructions through its communication port, and converts the high-level debugging instructions into bottom-level debugging instructions. Store the data corresponding to the underlying debugging instruction into the register of the embedded ICE-RT, and compare it with the data generated by the program running in real time on the CPU to determine whether to enter the debugging mode; when the two data are consistent, the program enters debug mode. Afterwards, the data generated by the real-time operation of the program can be transferred to the debugging host through the debugging port of the CPU itself after protocol conversion. High-level debugging instructions may include setting breakpoints, setting watchpoints, and single stepping. The communication port of the CPU itself may include a Unive...

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 provides a program debugging method of an embedded system and the embedded system, belonging to the field of program debugging. The method comprises the steps that: the CPU (central processing unit) of the embedded system receives a higher-level debugging command from a debugging host computer by the communication port of the CUP and converts the higher-level debugging command into a bottom-level debugging command; a testing access port controller stores the data corresponding to the bottom-level debugging command to a register of an embedded real-time on-line circuit simulator in advance; the embedded real-time on-line circuit simulator compares the data stored in the register in advance with the data of the CPU at the time of program real-time operation, and enters the program into a debugging mode when the two data are consistent; and then the CPU carries out protocol conversion on the data generated by the program real-time operation and transmits to the debugging host computer by the communication port of the CPU. According to the invention, the CPU transmits the higher-level debugging command by the communication port of the CPU, converts the higher-level debugging command into the bottom-level debugging command, and outputs the data by the communication port of the CPU after entering the debugging mode, so that the debugging cost is lowered.

Description

technical field [0001] The invention relates to the technical field of program debugging, in particular to a program debugging method for an embedded system and the embedded system. Background technique [0002] The main work of program debugging is to track the assignment process of variables and view the contents of the memory stack. The purpose of viewing these contents is to observe the assignment process and status of variables, so as to achieve the purpose of debugging. At present, in addition to software debugging, program debugging also has hardware debugging. [0003] The so-called hardware debugging refers to a cross-debugging process realized with the cooperation of computer debugging software. The process of hardware debugging is mainly: the computer software transmits the compiled program to the emulator through the serial port, parallel port or USB port, and the emulator simulates all target board resources such as all target board interfaces and real pin outp...

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/36
Inventor 王泰运林淑琴方嘉崧
Owner SUNPLUS TECH CO LTD
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