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

Method for high efficiently debugging by using software breakpoint in Flash memory

A memory and breakpoint technology, applied in the field of efficient use of software breakpoint debugging, can solve problems such as pause, increase complexity, and difficulty in software breakpoints, and achieve the effect of reducing erasing and writing operations, reducing debugging time, and improving service life.

Inactive Publication Date: 2011-07-06
HANGZHOU SYNOCHIP DATA SECURITY TECH CO LTD
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008]1. In order to solve the problem that setting a software breakpoint in a non-volatile memory is difficult to implement, a software breakpoint for use with a memory device is proposed This method is actually a hardware implementation of software breakpoints. It needs to modify the structure of the existing processor and judge whether it is a breakpoint address by decoding the processor system address. If it is a breakpoint address, the processor will not start from Fetch instructions from non-volatile memory, and read breakpoint instructions from the software breakpoint manager, and generate an interrupt after execution
Although this method can solve the problem of setting software breakpoints in non-volatile memory, it has modified the processor structure and increased complexity, and each software breakpoint needs hardware circuits to realize, which can only be realized according to hardware resources. Set a limited number of software breakpoints
[0009]2. At present, most of the simulation development platforms debugged in Flash, including integrated development environment and ICE, use hardware breakpoints to realize debugging, such as RealView MDK+ULINK; Some simulation development platforms start to support setting software breakpoints in Flash, such as IAR J-Link for ARM and TKScope embedded simulation development platform of Guangzhou Zhiyuan Electronics Co., Ltd., they all adopt the read-modify-write method based on the sector. Operation to realize the software breakpoint, when the software breakpoint is triggered and re-runs, it is necessary to repeatedly replace the instruction at the breakpoint, so when the software breakpoint in Flash is executed, there will be an obvious pause time

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
  • Method for high efficiently debugging by using software breakpoint in Flash memory
  • Method for high efficiently debugging by using software breakpoint in Flash memory
  • Method for high efficiently debugging by using software breakpoint in Flash memory

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0119] At the breakpoint:

[0120] AddressHEX

Command code HEX

assembly instructions

80006b22

2740740d

ADD %r13,%pcl,16

[0121] Replacement instruction group:

[0122]

[0123] Example 2: The case where b or c is not PCL

example 2

[0124] At the breakpoint:

[0125] AddressHEX

Command code HEX

assembly instructions

80006c3a

28000280

ASL %r0, %r0, %r10

[0126] Replacement instruction group:

[0127] address

instruction code

assembly instructions

90000000

28000280

ASL %r0, %r0, %r10

90000004

20200f8080006c3e

JAL 0x80006c3e

9000000c

264a7000

NOP

90000010

264a7000

NOP

90000014

264a7000

NOP

90000018

264a7000

NOP

9000001c

264a7000

NOP

[0128] 7.3.2 Single-Operand Instructions

[0129] Instruction format: OP

[0130] Its meaning is: a←OP b

[0131] OP instructions are: MOV; MOV_S; SEX; SEX_S; EXT; EXT_S; NOT; NOT_S; NEG; NEG_S; ABS; ABS_S; FLAG; ASL; ASL_S; RLC; RRC; ASR; ASR_S; LSR; LSR_S;

[0132] Replacement principle: if b is PCL, then replace b with the software breakpoint address; otherwise, the original instruction rem...

example 3

[0148] At the breakpoint:

[0149] AddressHEX

[0150] Replacement instruction group:

[0151] address

[0152] Example 4: BLcc instruction

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 a method for high efficiently debugging by using software breakpoint in a Flash memory. A Flash software breakpoint management controller, a Flash procedure downloader and an instruction resolver are arranged in a debugger; the debugger is connected to a target processing system through an ICE (internet communications engine); the debugger is used for controlling the target processing through the ICE, acquiring and modifying the state of a processor, and reading the data of the Flash memory; and the Flash software breakpoint management controller is used for storing and managing the Flash software breakpoint information, controlling the Flash software breakpoint state transition, controlling the operations of creating, deleting, recovering, shielding, enabling and updating the Flash software breakpoint, and controlling the implement of exchanging instruction sets. By using the method for high efficiently debugging by using software breakpoint in a Flash memory, the debugging time is shortened by reducing the Flash erasing operation; especially, the proceeding running from the Flash software breakpoint is as quick as the operation of arranging the software breakpoint in a RAM (random-access memory); the service life is influenced by the Flash erasing operation, thereby being capable of efficiently increasing the service life of Flash by reducing the Flash erasing operation.

Description

technical field [0001] The invention relates to an improvement of debugging functions and tools of an integrated development environment for processor program development, in particular a method for efficiently using software breakpoint debugging in a Flash memory. Background technique [0002] Debugging a program means that program developers find and correct errors or failures in the program by controlling the program's running, stopping, single-stepping, interrupting, and viewing the status during the program development process. Online debugging is a means of downloading programs to the target system through ICE for debugging. [0003] Breakpoints are an important means to control the interruption of program execution. According to their principles, they can be divided into hardware breakpoints and software breakpoints. Hardware breakpoints require the support of the processor's internal circuits. Usually, the comparison circuit is used to trigger the interrupt of the p...

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
Inventor 钱志恒贺晓明魏院辉
Owner HANGZHOU SYNOCHIP DATA SECURITY TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products