Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 increase the development cost

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

Embodiment Construction

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

[0037] Taking the debugging simulation of the MCU as an example, the specific implementation manner of the present invention will be described in detail in conjunction with the accompanying drawings.

[0038] In this embodiment, the MCU is used not only as the emulator but also as the MCU of the target machine, and its essence is a ROM monitor. To realize online debugging and simulation, it is necessary to have a module for communicating with the PC host, and the MCU generally supports serial port interrupt communication, and the serial port communication is generally used for data exchange and command transmission between the MCU and the PC host, and is also a common debugging and simulation method. . For the online debugging simulation system, it is necessary to read and write the data and register...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More