Check patentability & draft patents in minutes with Patsnap Eureka AI!

A soft breakpoint simulation method for debugging in norflash program space

A program space and simulation method technology, applied in software testing/debugging, instrumentation, electrical digital data processing, etc., can solve problems such as poor applicability and low debugging efficiency of NorFlash program space, achieve high practical value, improve debugging efficiency, save money The effect of hardware overhead

Active Publication Date: 2018-05-22
C SKY MICROSYST CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to overcome the shortcomings of low debugging efficiency and poor applicability in NorFlash program space in existing embedded development, the present invention provides a soft breakpoint simulation method for debugging in NorFlash program space with high debugging efficiency and good applicability

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
  • A soft breakpoint simulation method for debugging in norflash program space
  • A soft breakpoint simulation method for debugging in norflash program space
  • A soft breakpoint simulation method for debugging in norflash program space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be further described below in conjunction with the accompanying drawings.

[0029] refer to Figure 1 ~ Figure 4 , a kind of soft breakpoint simulation method of NorFlash program space debugging, described soft breakpoint simulation method comprises the steps:

[0030] (1) In the processor encoding stage, for the encoding of the soft breakpoint instruction, it must be an encoding format of all 0s;

[0031] (2) In the NorFlash program space debugging stage, when the debugger needs to insert a breakpoint instruction into the program space, the debugger calls the breakpoint instruction insertion unit, which uses the NorFlash space to write the specified position from 1 according to a specific length The feature of 0, insert the soft breakpoint instruction of the processor, that is, write all 0;

[0032] (3) When the debugger receives the debugging request of the running program, it first judges whether the instruction at the current PC matches ...

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 soft breakpoint simulation method during NorFlash program space debugging. The method comprises the following steps: (1) encoding a soft breakpoint instruction in an all-zero encoding format at a processor encoding phase; (2) calling a breakpoint instruction insertion unit by a debugger at a NorFlash program space debugging phase when the debugger requests a breakpoint instruction to be inserted into a program space, wherein the unit inserts a soft breakpoint instruction of the processor by utilizing the characteristic that the specified locations in a NorFlash space can be written from 1 to 0 according to specified length, namely all 0s can be written in; (3) judging whether an instruction at the current PC is matched with a breakpoint address in a soft breakpoint instruction list when the debugger receives a debugging request of a running program; (4) judging whether the soft breakpoint instruction address is matched with all soft breakpoint addresses in a soft breakpoint module by the debugger when the processor encounters the soft breakpoint instruction during running. The soft breakpoint simulation method disclosed by the invention is high in debugging efficiency and high in applicability.

Description

technical field [0001] The invention belongs to the field of debugging of a processor NorFlash program space, and in particular relates to a method for realizing a soft breakpoint in the debugging of a RISC embedded processor NorFlash program space. Background technique [0002] In the development of embedded systems based on RISC processors, the read-only space (NorFlash, E 2 The development of PROM, etc.) is essential. After almost all embedded devices are developed, they need to burn the code into the read-only space, so that the embedded device can be powered on and run directly on the Flash, and then it can work. Features. Among read-only devices, NorFlash is favored by embedded devices for its linear address addressing and directly executable instructions. [0003] For the RAM space, since the content of the space can be modified at will, developers only need to set soft breakpoints to control the running of the program. After the soft breakpoint is set, the first t...

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): G06F11/36
CPCG06F11/3664
Inventor 蒋龙李春强刘伯方
Owner C SKY MICROSYST CO LTD
Features
  • R&D
  • 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