Debugging method and debugging system for embedded system

A technology of embedded system and debugging method, which is applied in the direction of software testing/debugging, etc. It can solve the problems of slow download speed, short life of FLASH, and affecting the life of embedded system, so as to achieve the effect of increasing speed and life

Active Publication Date: 2015-04-08
GIGADEVICE SEMICON (BEIJING) INC
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to propose a debugging method and a debugging system for an embedded system, which can solve the problem of slow download speed of the program file to be debugged and the short life of the FLASH caused by repeatedly erasing and writing the FLASH in the prior art, thus affecting the life of the entire embedded system The problem

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
  • Debugging method and debugging system for embedded system
  • Debugging method and debugging system for embedded system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 It is a flow chart of the debugging method of the embedded system provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the method includes:

[0036] Step 101, setting a debugging mode.

[0037] In this step, the purpose of setting the debugging mode is to set the download address of the program file to be debugged downloaded into the embedded system to be mapped to the random access memory. Random access memory can be read and written at any time, the read and write speed is fast, and the read and write speed has nothing to do with its location. Although the random access memory will discard the stored content when the power is turned off, it is always in the state of power on during the whole debugging process. Even if the power is cut off due to uncontrollable external factors, it will not take too much time to rewrite the program file to be debugged again because of its fast read and write speed.

[0038] Step 102, changing the ...

Embodiment 2

[0052] figure 2 It is a structural diagram of the debugging system of the embedded system provided by the second embodiment of the present invention. Such as figure 2 As shown, the debugging system includes a control host 201 , a debugging circuit 202 and an embedded system 203 connected in sequence. The control host 201 sends control commands and program files to be debugged to the embedded system 203 through the debugging circuit 202 . The embedded system 203 executes the control command after receiving the control command sent by the control host 201 .

[0053] In this embodiment, the control instruction sent by the control host to the embedded system includes a debugging mode change request and a debugging instruction.

[0054] Such as figure 2 As shown, the embedded system 203 includes:

[0055] bus 213.

[0056] The debugging interface 223 is connected to the bus 213 and is used for receiving control instructions and program files to be debugged sent by the contro...

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 discloses a debugging method and a debugging system for an embedded system. The debugging method comprises the following steps: setting a debugging mode; mapping a download link space for a to-be-debugged program file to a random access storage instead of mapping to a quick flashing storage according to the debugging mode; receiving the to-be-debugged program file and storing the to-be-debugged program file in the random access storage; receiving a debugging instruction, running the debugging instruction and debugging the to-be-debugged program file. According to the debugging method and the debugging system for the embedded system provided by the invention, the speed of downloading the to-be-debugged program file during a debugging process is increased, and the service life of the embedded system is prolonged.

Description

technical field [0001] The invention relates to the field of debugging of embedded systems, in particular to a debugging method and a debugging system of an embedded system. Background technique [0002] In the software development and testing phase of the embedded system, the written program will be debugged. During the debugging process, the program file to be debugged needs to be downloaded to the embedded system. [0003] In the prior art, the download address space of the program file to be debugged is the address space mapped by the flash memory (FLASH) of the embedded system. At this time, the existing debugging method will frequently download the written and modified program files into the FLASH. Since it is time-consuming to erase and write FLASH, if the program file is relatively large, it may take tens of seconds to download each time. In addition, every time debugging and downloading, the FLASH will be erased and written, and the FLASH has a certain lifespan, ...

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 GIGADEVICE SEMICON (BEIJING) INC
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