CN106227651A - Firmware based on GPIO module debugging system - Google Patents
Firmware based on GPIO module debugging system Download PDFInfo
- Publication number
- CN106227651A CN106227651A CN201610546532.4A CN201610546532A CN106227651A CN 106227651 A CN106227651 A CN 106227651A CN 201610546532 A CN201610546532 A CN 201610546532A CN 106227651 A CN106227651 A CN 106227651A
- Authority
- CN
- China
- Prior art keywords
- debugging
- gpio
- module
- debugged
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3648—Software debugging using additional hardware
- G06F11/3656—Software debugging using additional hardware using a specific debug interface
Abstract
The invention discloses a kind of firmware based on GPIO module debugging system, this system includes target machine to be debugged, GPIO transducer and debugging main frame, wherein, target machine to be debugged is built-in with firmware to be debugged, for producing Debugging message, and Debugging message is processed as GPIO data stream, then sent to GPIO transducer by GPIO;GPIO transducer connects target machine to be debugged and debugging main frame, for receiving the Debugging message that target machine to be debugged is sent by GPIO, the formatted data being converted to debugging the interface that main frame is connected;Debugging main frame is for receiving and parsing through the Debugging message that GPIO transducer sends, and is analyzed debugging according to the Debugging message resolved, and sends control information by GPIO transducer to target machine to be debugged.The present invention is with low cost, debugging efficiency is high.
Description
Technical field
The present invention relates to computer realm, particularly relate to a kind of firmware based on GPIO module debugging system.
Background technology
Computer system firmware debugging technique is mainly: commissioning device is connected to debug target by different interfaces,
During debugging target start, Debugging message is exported on commissioning device, or entered with debugging main frame by commissioning device
Row is mutual.
In existing debugging system, the commissioning device that some uses are special, with high costs;Some interfaces are in computer systems
Universal not, reduce the scope of application;The Debugging message passed on having is the abundantest, and debugging efficiency is low.
Summary of the invention
Goal of the invention: the present invention is directed to the problem that prior art exists, it is provided that a kind of firmware based on GPIO module is debugged
System.
Technical scheme: firmware based on GPIO module of the present invention debugging system includes:
Target machine to be debugged, is built-in with firmware to be debugged, is used for producing Debugging message, and Debugging message is processed as GPIO
Data stream, then sent to GPIO transducer by GPIO;
GPIO transducer, is connected target machine to be debugged and debugging main frame, is used for receiving target machine to be debugged and is sent out by GPIO
The Debugging message sent, the formatted data being converted to debugging the interface that main frame is connected;
Debugging main frame, for receiving and parsing through the Debugging message that GPIO transducer sends, and according to the Debugging message resolved
It is analyzed debugging, and sends control information by GPIO transducer to target machine to be debugged.
Further, described firmware to be debugged is provided with debugging module and transport module;
Described debugging module is used for producing Debugging message, and Debugging message is processed as GPIO data stream;
Described transport module is for sending GPIO data stream to the GPIO being positioned at hardware layer, and receives hardware layer transmission
Information, send to debugging module.
Further, described GPIO transducer connects debugging main frame by USB interface or serial ports, waits to adjust specifically for receiving
The Debugging message that examination target machine is sent by GPIO, and be converted to USB interface form or serial ports form.
Further, described debugging main frame is built-in with debugging utility, and described debugging utility includes debugging module
And transport module;
Described transport module is for receiving the Debugging message that debugging host hardware layer sends, and sends to debugging module, with
And by the information transmission of debugging module transmission to debugging host hardware layer;
Described debugging module is used for receiving and parsing through the Debugging message that transport module sends, and according to the Debugging message resolved
It is analyzed debugging, and sends control information to debugging host hardware layer.
Further, the character that Debugging message is ASCII character form that the debugging module of described target machine to be debugged produces
String.
Further, the Debugging message received is resolved to ASCII character form by the debugging module of described debugging main frame
Character string.
Beneficial effect: compared with prior art, its remarkable advantage is the present invention: 1, required for the design target to be debugged
Debugging interface design is relatively simple, and minimum requirements has only to take two GPIO pin resource of debugged target machine, including one
Data transfer signal line and a debugging control holding wire, low cost.2, flexible design, the platform that GPIO pin resource is abundant,
Efficiency of transmission can be improved by increasing data transfer signal line number.3, the present invention utilizes the GPIO in debugging target general
Interface, on the Debugging message that output is enriched to debugging main frame, improves debugging efficiency, also achieves the debugging breakpoints of simplicity, enter
And improve the motility of firmware debugging.
Accompanying drawing explanation
Fig. 1 is the system block diagram of one embodiment of the present of invention.
Detailed description of the invention
As it is shown in figure 1, firmware based on the GPIO module debugging system of the present embodiment includes that target machine to be debugged, GPIO turn
Parallel operation and debugging main frame.
Wherein, target machine to be debugged is built-in with firmware to be debugged, is used for producing Debugging message (specially ASCII character form
Character string), and Debugging message is processed as GPIO data stream, then is sent to GPIO transducer by GPIO.Firmware to be debugged
Being provided with debugging module and transport module, debugging module is used for producing Debugging message, and Debugging message is processed as GPIO data
Stream;Transport module is for sending GPIO data stream to the GPIO being positioned at hardware layer, and receives the information that hardware layer sends, and sends out
Deliver to debugging module.
Wherein, GPIO transducer connects target machine to be debugged by GPIO, connects debugging by USB interface or serial ports main
Machine.GPIO transducer for receiving the Debugging message that target machine to be debugged is sent by GPIO, and be converted to USB interface form or
Serial ports form.
Wherein, debugging main frame is built-in with debugging utility, and debugging utility includes debugging module and transport module;Pass
Defeated module is for receiving the Debugging message that debugging host hardware layer sends, and sends to debugging module, and is sent out by debugging module
The information transmission sent is to debugging host hardware layer;The Debugging message that debugging module sends for receiving and parsing through transport module (solves
Analysis is the character string of ASCII character form), and it is analyzed debugging according to the Debugging message resolved, and to debugging host hardware
Layer sends control information.
Above disclosed only one preferred embodiment of the present invention, it is impossible to limit the right model of the present invention with this
Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.
Claims (6)
1. firmware based on a GPIO module debugging system, it is characterised in that: including:
Target machine to be debugged, is built-in with firmware to be debugged, is used for producing Debugging message, and Debugging message is processed as GPIO data
Stream, then sent to GPIO transducer by GPIO;
GPIO transducer, connects target machine to be debugged and debugging main frame, for receiving what target machine to be debugged was sent by GPIO
Debugging message, the formatted data being converted to debugging the interface that main frame is connected;
Debugging main frame, for receiving and parsing through the Debugging message that GPIO transducer sends, and is carried out according to the Debugging message resolved
Analyze debugging, and send control information by GPIO transducer to target machine to be debugged.
Firmware based on GPIO module the most according to claim 1 debugging system, it is characterised in that: described firmware to be debugged
It is provided with debugging module and transport module;
Described debugging module is used for producing Debugging message, and Debugging message is processed as GPIO data stream;
Described transport module is used for GPIO data stream and sends to the GPIO being positioned at hardware layer, and receives what hardware layer sent
Information, sends to debugging module.
Firmware based on GPIO module the most according to claim 1 debugging system, it is characterised in that: described GPIO transducer
Debugging main frame is connected by USB interface or serial ports, specifically for receiving the Debugging message that target machine to be debugged is sent by GPIO,
And be converted to USB interface form or serial ports form.
Firmware based on GPIO module the most according to claim 1 debugging system, it is characterised in that: in described debugging main frame
Being equipped with debugging utility, described debugging utility includes debugging module and transport module;
Described transport module is for receiving the Debugging message that debugging host hardware layer sends, and sends to debugging module, and will
The information transmission that debugging module sends is to debugging host hardware layer;
Described debugging module is for receiving and parsing through the Debugging message that transport module sends, and carries out according to the Debugging message resolved
Analyze debugging, and send control information to debugging host hardware layer.
Firmware based on GPIO module the most according to claim 2 debugging system, it is characterised in that: described target to be debugged
The character string that Debugging message is ASCII character form that the debugging module of machine produces.
Firmware based on GPIO module the most according to claim 4 debugging system, it is characterised in that: described debugging main frame
The Debugging message received is resolved to the character string of ASCII character form by debugging module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610546532.4A CN106227651A (en) | 2016-07-12 | 2016-07-12 | Firmware based on GPIO module debugging system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610546532.4A CN106227651A (en) | 2016-07-12 | 2016-07-12 | Firmware based on GPIO module debugging system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106227651A true CN106227651A (en) | 2016-12-14 |
Family
ID=57519044
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610546532.4A Pending CN106227651A (en) | 2016-07-12 | 2016-07-12 | Firmware based on GPIO module debugging system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106227651A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858116A (en) * | 2020-06-19 | 2020-10-30 | 浪潮电子信息产业股份有限公司 | Information recording method, device, equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090031289A1 (en) * | 2007-07-28 | 2009-01-29 | Sam Michael | Memory management for remote software debuggers and methods |
US20100315403A1 (en) * | 2008-02-19 | 2010-12-16 | Shotaro Kaneyoshi | Display device, method for driving the display device, and scan signal line driving circuit |
US20120036501A1 (en) * | 2010-08-03 | 2012-02-09 | Tomas Evensen | Method and System for Capturing System and User Events Using Hardware Trace Devices |
CN102902624A (en) * | 2012-11-09 | 2013-01-30 | 上海斐讯数据通信技术有限公司 | Software debugging system and method |
-
2016
- 2016-07-12 CN CN201610546532.4A patent/CN106227651A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090031289A1 (en) * | 2007-07-28 | 2009-01-29 | Sam Michael | Memory management for remote software debuggers and methods |
US20100315403A1 (en) * | 2008-02-19 | 2010-12-16 | Shotaro Kaneyoshi | Display device, method for driving the display device, and scan signal line driving circuit |
US20120036501A1 (en) * | 2010-08-03 | 2012-02-09 | Tomas Evensen | Method and System for Capturing System and User Events Using Hardware Trace Devices |
CN102902624A (en) * | 2012-11-09 | 2013-01-30 | 上海斐讯数据通信技术有限公司 | Software debugging system and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858116A (en) * | 2020-06-19 | 2020-10-30 | 浪潮电子信息产业股份有限公司 | Information recording method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104008465B (en) | Grid switching operation bill safety implemented systems | |
CN102622136B (en) | A kind of multi-point touch system data processing method and device | |
CN105653461B (en) | A kind of single USB interfaces turn the converting system of more UART debugging interfaces | |
CN102591757A (en) | Verification method and verification environment platform based on intelligent card universal serial bus (IC-USB) interface module of verification methodology (VMM) | |
CN102411681B (en) | A kind of Unidirectional data transmission device and communication means | |
CN106227651A (en) | Firmware based on GPIO module debugging system | |
WO2016127953A1 (en) | Debugging method specifically for fpga of high-end fault-tolerant computer based on software-hardware architecture, and device thereof | |
CN104793759A (en) | Simulating and monitoring equipment based on PS2 interface mouse signal | |
CN104483960A (en) | Automobile diagnosis communication module data transceiving parallel processing method | |
CN104022933B (en) | A kind of vehicle bus debugging system changed based on multimode signal | |
CN104008077B (en) | Device and method based on chip microcontroller serial ports packet capturing | |
CN202424939U (en) | Complementary metal oxide semiconductor (CMOS) image sensor debugger | |
CN203433507U (en) | A fault detection device for a computer mainboard | |
CN103517307B (en) | A kind of remote debugging system based on TD-SCDMA | |
CN104484305A (en) | Server debugging analysis interface device | |
CN109062837A (en) | A kind of usb signal light teletransmission control module and method based on FPGA | |
CN203982364U (en) | Device based on the packet capturing of chip microcontroller serial ports | |
CN104102568B (en) | A kind of multiple serial communication test system | |
CN203433313U (en) | A power electronic control system high-speed communication apparatus achieved by a FPGA | |
CN205051133U (en) | 100G cable module based on CFP4 interface | |
CN105279053B (en) | Track acquisition equipment and method | |
CN102955561A (en) | Embedded processor-based analog PS/2 interface implementation system and method | |
CN202372977U (en) | Universal serial bus (USB) main equipment interface structure based on field programmable gate array (FPGA) | |
CN203930818U (en) | Direct interconnection device between a kind of Mezzanine Card and Switch | |
CN105281972B (en) | The comparison acquisition structure and comparison acquisition method of 1553B buses |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161214 |