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

Embedded software debugging method

A software debugging and embedded technology, applied in the communication field, can solve problems such as difficult to use and inconvenient debugging, and achieve the effects of quickly locating errors, saving development time, and speeding up bug repair time

Inactive Publication Date: 2020-06-30
成都金诺信高科技有限公司
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The invention provides an embedded software debugging method, which solves the problem that the commonly used embedded debugging is generally based on JTAG hardware debugging. This method is difficult to use in the field after the system is delivered, and it is inconvenient to debug when the system runs wrong.

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 software debugging method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] like figure 1 As shown, the present embodiment provides an embedded software debugging method, including the following steps,

[0031] S1, using the embedded system to capture the abnormal interrupt of the CPU, and obtain the abnormal type;

[0032] S2. Enter the exception handling module according to the exception type, activate the debugging mode, and output the exception information;

[0033] S3, read abnormal information: use the tool software on the PC to load the elf file generated during compilation, the elf file is a file in elf format, and the elf file is an elf file corresponding to the running code on the embedded system and containing debugging information, and then Parse the variable or code address in the elf file;

[0034] S4. Find the corresponding address, and obtain the location of the machine instruction corresponding to the exception information;

[0035] S5, displaying source code information through disassembly;

[0036] S6. Obtain a function c...

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 software debugging method based on an embedded type. PC tool software (K-Stack) which is independently compiled reads an embedded elf file which corresponds to a binary codeoperated by the equipment and contains debugging information, reads symbol table information and address information according to a standard elf file format, searches a function to which an error instruction position belongs, disassembles the function, displays the function, a line number and an assembly code, and identifies the error instruction position by using a special color; a debugging module is embedded in an independent embedded real-time operating system (RTOS); a command line is embedded in the debugging module, and a variable address can be obtained, checked and modified and even afunction can be called by matching with a PC tool according to a memory address; according to hot key detection based on a serial port, the embedded system generally uses the serial port as input andoutput, and the system can be suspended to enter an RTOS debugging mode; the problems that currently, common embedded debugging is generally based on JTAG hardware debugging, the method is difficultto use on site after system delivery, and debugging is inconvenient when system operation goes wrong are solved.

Description

technical field [0001] The invention belongs to the communication field, and in particular relates to an embedded software debugging method. Background technique [0002] The commonly used embedded debugging is generally based on JTAG hardware debugging. This method is difficult to use on-site after the system is delivered, and it is impossible to connect the JTAG debugging device when the system runs wrong. Ordinary printing-based debugging methods output a large amount of information during normal operation, occupying CPU resources and making it difficult to parse the output information. The debug output device may not be connected when the delivery environment fails and relevant information may be missed. However, after problems occur due to different operating environments and parameters, some fault points are also difficult to reproduce. As a result, a lot of manpower and time are consumed in the development phase and delivery maintenance. [0003] This technology co...

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
CPCG06F11/3624
Inventor 朱敏张煜杨江田伟
Owner 成都金诺信高科技有限公司
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