Embedded system on-line debugging emulation method based on communication interruption

An embedded system and simulation method technology, applied in the field of online debugging and simulation, can solve problems such as increasing development cost, and achieve the effect of high versatility

Inactive Publication Date: 2009-01-07
VIMICRO CORP
View PDF0 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This will also increas

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 on-line debugging emulation method based on communication interruption
  • Embedded system on-line debugging emulation method based on communication interruption
  • Embedded system on-line debugging emulation method based on communication interruption

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0036] The invention can be used to support the debugging simulation of any embedded system that communicates with a debugging host (such as a computer) in an interrupt mode.

[0037] In the following, the debugging simulation of the MCU is taken as an example, and the specific embodiments of the present invention are described in detail with reference to the accompanying drawings.

[0038] In this embodiment, the MCU is used as both an emulator and an MCU of the target machine, and is essentially a ROM monitor. To realize online debugging simulation, it is necessary to have a module to communicate with the PC host, and the MCU generally supports serial interrupt communication. Serial communication is generally used for data exchange and command transmission between the MCU and the PC host. It is also a common debugging simulation method. . For the online debugging simulation system, it is necessary to read and write the data and register information in the user program, that is, ...

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 an online debugging simulation method for an embedded system based on interruption communication, which is characterized in that: when a user program which is operating is hung, a debugging host computer can send an interrupt signal and an instruction ready for debugging; after the embedded system responses, the program index of a stack and the breakpoint spot information of the user program are saved, the program index of the stack is modified as an entry address of a closed loop of a monitoring communication interface, and the stack at operation state is set at debugged state and returns to the closed loop; when the operation of a user program needs to be resumed, the debugging host computer send an interrupt signal and an instruction ready for operating the user program; after the embedded system responses, the saved program index and the breakpoint spot information of the user program are resaved into a corresponding stack position, and the stack resumes the breakpoint spot of the user program and returns to the position where the user program is hung for further operation. The online debugging simulation method for the embedded system based on interruption communication can realize online debugging simulation without extra hardware and occupies small sources.

Description

technical field [0001] The invention relates to an embedded system, in particular to an online debugging simulation method for the embedded system. Background technique [0002] Embedded system debugging simulation is generally divided into software offline simulation and online hardware debugging simulation. Software offline simulation has relatively high requirements for simulation programs, and can not get real-time information of hardware during actual operation, while embedded systems generally deal directly with hardware. , so this method is limited. [0003] On-line hardware debugging and emulation can be carried out on-line debugging and emulation directly on the operating hardware system. Some traditional single-chip emulator hardware systems use special-purpose emulation single-chip microcomputers. For example, the microprocessor (MCU) of ARM architecture usually has JTAG protocol and hardware support to realize online debugging and simulation, and can obtain real...

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
IPC IPC(8): G06F17/50G06F9/48
Inventor 周雪珍胡庆庆
Owner VIMICRO CORP
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