CN109977042A - A kind of USB on-line debugging system and method - Google Patents

A kind of USB on-line debugging system and method Download PDF

Info

Publication number
CN109977042A
CN109977042A CN201910151400.5A CN201910151400A CN109977042A CN 109977042 A CN109977042 A CN 109977042A CN 201910151400 A CN201910151400 A CN 201910151400A CN 109977042 A CN109977042 A CN 109977042A
Authority
CN
China
Prior art keywords
debugging
usb
function
artificial
request
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
Application number
CN201910151400.5A
Other languages
Chinese (zh)
Inventor
严宏波
王祥
丁锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Haiqi Semiconductor Co Ltd
Original Assignee
Zhuhai Haiqi Semiconductor Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhuhai Haiqi Semiconductor Co Ltd filed Critical Zhuhai Haiqi Semiconductor Co Ltd
Priority to CN201910151400.5A priority Critical patent/CN109977042A/en
Publication of CN109977042A publication Critical patent/CN109977042A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of USB on-line debugging system and adjustment methods, comprising the following steps: S1, user send the request of artificial debugging function according to demand on debugging tool;S2, artificial debugging function request are successively transmitted to debugging control center module by the first USB driving, the 2nd USB driving;S3, the debugging control center module receive the artificial debugging function request;S4, debugging control center module analyze the artificial debugging function and request and execute.Electronic product existing capability interface USB can be used directly in USB on-line debugging system of the invention, does not need additional debugging hardware, at low cost;Also, it does not need that function debugging program will be wanted to write in system in advance, is imported, can be changed by outside;Still has the function of read-write all system datas or information;System can on-line operation debugging, after debugging system operate normally, can execute external specific function (such as analysis system, develop new function, system testing etc.).

Description

A kind of USB on-line debugging system and method
Technical field
The present invention relates to consumer electronics products to debug field, especially a kind of USB on-line debugging system and method.
Background technique
With the continuous development of contemporary electronic technology and universal, the consumer electronics product with USB interface is in each neck The application in domain is quite extensive, such as mobile phone, camera, household electrical appliance, various monitoring devices etc..
Product is made of hardware and software, wherein software has various function due to design and exploitation Problem, and the producing cause of each problem is diversified.Therefore, it needs to debug software before product publication, To guarantee product quality.
Existing electronic product software carries out debugging technique and is broadly divided into two classes: serially printing, debugging emulation device.But institute The debugging interface (such as serial ports, emulator interface) used product development listing after, be essentially all in idle state, and Occupy PI N pin.
Meanwhile both adjustment methods also have other drawbacks, it is as follows:
Serially printing: (1) it needs to modify source program and compiles downloading or programming;(2) need will function debugging program it is pre- It first writes in system, and can not change;(3) predetermined system data or information can only be read and write;(4) system data can not be write Or information;(5) external specific function can not be executed (such as analysis system develops new function, system testing etc.)
Debugging emulation device: (1) system is out of service at breakpoint, cannot sometimes operate normally again after debugging;(2) it needs Additional debugging hardware (emulator), it is at high cost;(2) can not execute external specific function (such as analysis system, develop new function, System testing etc.).
Summary of the invention
In order to solve the above technical problems, the object of the present invention is to provide a kind of low cost, debugging function external can be changed USB on-line debugging system and method.
The technical solution adopted by the present invention is that:
A kind of USB on-line debugging system, including
Terminal is debugged, which is provided with the first USB driving and the tune with the first USB driving communication connection Trial work tool, the debugging tool for sending the request of artificial debugging function for user according to demand;
Embedded platform is assemblied in electronic product to be debugged, which is provided with the behaviour of successively communication connection Make system, debugging control center module, the 2nd USB driving, the 2nd USB driving can pass through USB data line and described first USB drives communication connection to be used for transmission the request of artificial debugging function, and the debugging control center module is described imitative for receiving True debugging function requests and executes processing.
Further, the debugging control center module includes reading the first processing module of specified addressed memory data, writing finger Determine the Second processing module of addressed memory data, the third processing module for reading specified number CPU register, write specified number CPU The fourth processing module of register and specified memory address execute artificial debugging function the 5th processing module.
Further, artificial debugging function performed by the 5th processing module includes reading specified addressed memory data, writing Specified addressed memory data read specified number CPU register, write specified number CPU register, all in calling system can be performed Function.
Wherein, the debugging terminal (1) includes desktop computer, notebook computer, tablet computer or smart phone.
A kind of adjustment method using the USB on-line debugging system, includes the following steps
S1, user send the request of artificial debugging function according to demand on debugging tool;
S2, artificial debugging function request are successively transmitted to debugging control by the first USB driving, the 2nd USB driving Center module;
S3, the debugging control center module receive the artificial debugging function request;
S4, debugging control center module analyze the artificial debugging function and request and execute.
Further, debugging control center module also may be selected to request to send by the artificial debugging function in the step S4 It is executed to operating system.
Beneficial effects of the present invention:
Electronic product existing capability interface USB can be used directly in USB on-line debugging system of the invention, does not need additional Hardware is debugged, it is at low cost;Also, it does not need that function debugging program will be wanted to write in system in advance, is imported, can be changed by outside; Still has the function of read-write all system datas or information;System can on-line operation debugging, after debugging system operate normally, External specific function can be executed (such as analysis system develops new function, system testing etc.).
Detailed description of the invention
A specific embodiment of the invention is described further with reference to the accompanying drawing.
Fig. 1 is a kind of structural schematic diagram of USB on-line debugging system of the present invention;
Fig. 2 is a kind of flow chart of USB on-line debugging method of the present invention.
Specific embodiment
As shown in Figure 1, be a kind of USB on-line debugging system of the invention, including
Terminal 1 is debugged, which is provided with the first USB driving 2 and drives 2 communication connections with the first USB Debugging tool 3, the debugging tool 3 for sent according to demand for user artificial debugging function request;
Embedded platform 4 is assemblied in electronic product to be debugged, which is provided with successively communication connection Operating system 5, debugging control center module 6, the 2nd USB driving 7, the 2nd USB driving 7 can pass through USB data line and institute It states the first USB and drives 2 communication connections to be used for transmission the request of artificial debugging function, the debugging control center module 6 is for connecing The artificial debugging function is received to request and execute processing.
Specific configuration as above-mentioned technical proposal, the debugging control center module 6 of the invention include reading specified ground The first processing module of location internal storage data, the Second processing module for writing specified addressed memory data read specified number CPU register Third processing module, write the fourth processing module of specified number CPU register and execute emulation tune in specified memory address 5th processing module of trial function enumerates all debugging function operations substantially.
Individually below it is the embodiment of above-mentioned five kinds of processing modules:
Embodiment 1: specified addressed memory data are read
Read 0x80000000 0x100 (read address 0x80000000, length 0x100)
Embodiment 2: specified addressed memory data are write
Write 0x80200000 0x200 (write address 0x80200000, length 0x200)
Embodiment 3: specified number CPU register is read
Read$2
Embodiment 4: specified number CPU register is write
Write$2 0x10010000
Embodiment 5: XXX function in calling system
Call AFunc000 Param1 Param2 Param3 Param4
Call SFunc000 Param1 Param2 Param3 Param4
Call 0x80200000 Param1 Param2 Param3 Param4
AFunc000:Application Func ID(000)
SFunc000:System Func ID(000)
0x80200000:Function Address
Optimization as above-mentioned technical proposal, artificial debugging function performed by the 5th processing module include read it is specified Addressed memory data write specified addressed memory data, read specified number CPU register, write specified number CPU register, call Above-mentioned all debugging function operations also may be implemented by the 5th processing module in all executable functions in system.
Wherein, the debugging terminal 1 include desktop computer, notebook computer, tablet computer or smart phone or other Conventionally known debugging terminal, does not do unique restriction herein.
The invention also includes the scheme with the same inventive concept of above-mentioned technical proposal, i.e., a kind of application USB is adjusted online The adjustment method of test system, comprising the following steps:
S1, user send the request of artificial debugging function according to demand on debugging tool;
S2, artificial debugging function request are successively transmitted to debugging control by the first USB driving, the 2nd USB driving Center module;
S3, the debugging control center module receive the artificial debugging function request;
S4, debugging control center module analyze the artificial debugging function and request and execute.
In order to improve debugging efficiency, debugging control center module also be may be selected the artificial debugging function in the step S4 It can request that and be sent to operating system execution.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to above embodiment, as long as with Essentially identical means realize that the technical solution of the object of the invention belongs within protection scope of the present invention.

Claims (6)

1. a kind of USB on-line debugging system, it is characterised in that: including
It debugs terminal (1), which is provided with the first USB driving (2) and communicates with the first USB driving (2) The debugging tool (3) of connection, the debugging tool (3) for sending the request of artificial debugging function for user according to demand;
Embedded platform (4), is assemblied in electronic product to be debugged, which is provided with successively communication connection Operating system (5), debugging control center module (6), the 2nd USB driving (7), the 2nd USB driving (7) can pass through USB number According to line and the first USB driving (2) communication connection to be used for transmission the request of artificial debugging function, the debugging control center die Block (6) requests for receiving the artificial debugging function and executes processing.
2. a kind of USB on-line debugging system according to claim 1, it is characterised in that: the debugging control center module (6) include the first processing module for reading specified addressed memory data, the Second processing module for writing specified addressed memory data, read to refer to The third processing module of the number of delimiting the organizational structure CPU register writes the fourth processing module for specifying number CPU register and specified interior Deposit the 5th processing module that address executes artificial debugging function.
3. a kind of USB on-line debugging system according to claim 2, it is characterised in that: the 5th processing module is held Capable artificial debugging function includes reading specified addressed memory data, writing specified addressed memory data, read specified number CPU deposit Device writes specified number CPU register, all executable functions in calling system.
4. a kind of USB on-line debugging system according to claim 1, it is characterised in that: the debugging terminal (1) includes platform Formula computer, notebook computer, tablet computer or smart phone.
5. a kind of adjustment method using any USB on-line debugging system of claim 1-4, it is characterised in that: including with Lower step
S1, user send the request of artificial debugging function according to demand on debugging tool;
S2, artificial debugging function request are successively transmitted to debugging control center by the first USB driving, the 2nd USB driving Module;
S3, the debugging control center module receive the artificial debugging function request;
S4, debugging control center module analyze the artificial debugging function and request and execute.
6. adjustment method according to claim 5, it is characterised in that: debugging control center module may be used also in the step S4 Artificial debugging function request is sent to operating system and executed by selection.
CN201910151400.5A 2019-02-28 2019-02-28 A kind of USB on-line debugging system and method Pending CN109977042A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910151400.5A CN109977042A (en) 2019-02-28 2019-02-28 A kind of USB on-line debugging system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910151400.5A CN109977042A (en) 2019-02-28 2019-02-28 A kind of USB on-line debugging system and method

Publications (1)

Publication Number Publication Date
CN109977042A true CN109977042A (en) 2019-07-05

Family

ID=67077516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910151400.5A Pending CN109977042A (en) 2019-02-28 2019-02-28 A kind of USB on-line debugging system and method

Country Status (1)

Country Link
CN (1) CN109977042A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860520A (en) * 2022-04-22 2022-08-05 珠海海奇半导体有限公司 USB slave equipment extraction detection circuit

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154429A1 (en) * 2002-02-13 2003-08-14 Chen Song Bor Method of debugging using a USB connecting system
CN101154183A (en) * 2006-09-29 2008-04-02 上海海尔集成电路有限公司 Microcontroller built-in type on-line simulation debugging system
CN101458652A (en) * 2007-12-14 2009-06-17 上海海尔集成电路有限公司 Embedded on-line emulation debugging system for microcontroller
CN102609288A (en) * 2012-02-14 2012-07-25 上海三一精机有限公司 FPGA/CPLD (Field Programmable Gate Array/Complex Programmable Logic Device)-based program downloader
CN103226506A (en) * 2013-04-28 2013-07-31 杭州士兰微电子股份有限公司 Chip-embedded USB to JTAG debugging device and debugging method
CN203250308U (en) * 2013-04-28 2013-10-23 杭州士兰微电子股份有限公司 USB JTAG conversion debugging device internally embedded in chip
CN103544086A (en) * 2013-10-14 2014-01-29 中国科学院西安光学精密机械研究所 Two-dimensional tracking rotary table electronic control system data online debugging system and method
TW201516426A (en) * 2013-09-06 2015-05-01 Hon Hai Prec Ind Co Ltd Debugging apparatus and method
CN105302761A (en) * 2015-11-30 2016-02-03 浪潮(北京)电子信息产业有限公司 Serial port debugging system based on USB connector and cable thereof
CN106026298A (en) * 2016-07-25 2016-10-12 Tcl移动通信科技(宁波)有限公司 USB (Universal Serial Bus) based charging debugging method and system for mobile terminal
CN106066809A (en) * 2016-06-20 2016-11-02 深圳市普中科技有限公司 A kind of emulation debugging method based on ARM kernel 51 emulator and system
CN206193452U (en) * 2016-11-22 2017-05-24 深圳铂睿智恒科技有限公司 Conversion equipment based on OTG function is debugged flight control system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154429A1 (en) * 2002-02-13 2003-08-14 Chen Song Bor Method of debugging using a USB connecting system
CN101154183A (en) * 2006-09-29 2008-04-02 上海海尔集成电路有限公司 Microcontroller built-in type on-line simulation debugging system
CN101458652A (en) * 2007-12-14 2009-06-17 上海海尔集成电路有限公司 Embedded on-line emulation debugging system for microcontroller
CN102609288A (en) * 2012-02-14 2012-07-25 上海三一精机有限公司 FPGA/CPLD (Field Programmable Gate Array/Complex Programmable Logic Device)-based program downloader
CN103226506A (en) * 2013-04-28 2013-07-31 杭州士兰微电子股份有限公司 Chip-embedded USB to JTAG debugging device and debugging method
CN203250308U (en) * 2013-04-28 2013-10-23 杭州士兰微电子股份有限公司 USB JTAG conversion debugging device internally embedded in chip
TW201516426A (en) * 2013-09-06 2015-05-01 Hon Hai Prec Ind Co Ltd Debugging apparatus and method
CN103544086A (en) * 2013-10-14 2014-01-29 中国科学院西安光学精密机械研究所 Two-dimensional tracking rotary table electronic control system data online debugging system and method
CN105302761A (en) * 2015-11-30 2016-02-03 浪潮(北京)电子信息产业有限公司 Serial port debugging system based on USB connector and cable thereof
CN106066809A (en) * 2016-06-20 2016-11-02 深圳市普中科技有限公司 A kind of emulation debugging method based on ARM kernel 51 emulator and system
CN106026298A (en) * 2016-07-25 2016-10-12 Tcl移动通信科技(宁波)有限公司 USB (Universal Serial Bus) based charging debugging method and system for mobile terminal
CN206193452U (en) * 2016-11-22 2017-05-24 深圳铂睿智恒科技有限公司 Conversion equipment based on OTG function is debugged flight control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114860520A (en) * 2022-04-22 2022-08-05 珠海海奇半导体有限公司 USB slave equipment extraction detection circuit
CN114860520B (en) * 2022-04-22 2023-03-21 珠海海奇半导体有限公司 USB slave equipment extraction detection circuit

Similar Documents

Publication Publication Date Title
US8645918B2 (en) Influencing device for control apparatus
CN102662835B (en) A kind of program debugging method for embedded system and embedded system
US7225357B2 (en) SDIO card development system
CN107992390B (en) Chip debugging method based on-chip bus
CN101251819A (en) Debug method suitable for multi-processor core system chip
CN103226506B (en) Chip-embedded USB to JTAG debugging device and debugging method
CN101840368B (en) JTAG (Joint Test Action Group) real-time on-chip debug method and system of multicore processor
US20100011250A1 (en) Microcontroller information extraction system and method
CN100444127C (en) System and method for testing software
CN114019938A (en) Microcontroller chip communication interface test system and method thereof
CN106547636A (en) Debugging system and method
CN104407956A (en) IIC bus experimental facility debugged by serial port
CN103714190B (en) Simple efficient on-line simulation method and simple efficient on-line simulation interface circuit
CN109977042A (en) A kind of USB on-line debugging system and method
CN109416667A (en) With dynamic and configurable response, serial device emulator using two storage levels
CN102193860B (en) Microcontroller online debugging circuit and method as well as microcontroller
CN113326670A (en) Prototype verification system, method, processing unit and equipment
CN116996429A (en) Automatic test method, system, device, equipment and medium for communication instrument
CN117112469A (en) Instruction transmission module and integrated circuit
CN100511172C (en) Inter-board transparent transmission bus test device and method thereof
CN115587026A (en) Chip testing method and device, storage medium and chip
CN111443994B (en) Device, system and method for simulating smart card driver
CN104572515A (en) Tracking module, method, system and SOC (System-On-Chip)
CN100394359C (en) Interface for intelligent card simulative debugging system
CN113609052A (en) Chip simulation system based on FPGA and microprocessor and implementation method

Legal Events

Date Code Title Description
PB01 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: 20190705