CN101192190A - Method and device for digital signal processor executing debugging and enquiry command - Google Patents
Method and device for digital signal processor executing debugging and enquiry command Download PDFInfo
- Publication number
- CN101192190A CN101192190A CNA2006101147954A CN200610114795A CN101192190A CN 101192190 A CN101192190 A CN 101192190A CN A2006101147954 A CNA2006101147954 A CN A2006101147954A CN 200610114795 A CN200610114795 A CN 200610114795A CN 101192190 A CN101192190 A CN 101192190A
- Authority
- CN
- China
- Prior art keywords
- debugging
- dsp
- main control
- control processor
- debug
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
A method for executing debug enquiry command of a digital signal processor (DSP) is used in a debug system comprising a debug machine and a DSP. The invention is characterized in that: the DSP side is provided with a main control processor; the debug machine transmits the debug enquiry command of the DSP to the main control processor through a network; the main control processor acquires the result of the debug enquiry command from the DSP and returns the result to the debug machine. Meanwhile, the invention also discloses a device for executing debug enquiry command of a DSP which is used in a debug system comprising a debug machine and a DSP, wherein, the device comprises a main control processor and a hardware channel; the main control processor, which is arranged at the DSP side, receives the debug enquiry command of the DSP send by the debug machine and acquires the result of the debug enquiry command from the DSP; moreover, the main control processor communicates with the debugged DSP through the hardware channel.
Description
Technical field
The present invention relates to the debugging of embedded system, be meant a kind of method and device of digital signal processor (DSP, Digital Signal Processor) being carried out debugging and enquiry command especially.
Background technology
In recent years, signal handling capacity and computing power have obtained application more and more widely to DSP in the exploitation of embedded system efficiently with it.In the prior art, the common employing of the software debugging that carries out on DSP articulates dedicated emulated device and debugging code is downloaded to the method for debugging among the DSP of target integrated circuit board, as shown in Figure 1, be prior art emulator debug mode synoptic diagram, PC debug machine 101 is connected with emulator 102, and emulator 102 all is that non-network connects with being connected of debugged processor 103, for example PC debug machine 101 adopts the parallel port to be connected with emulator 102, and emulator 102 adopts JATG to be connected with debugged processor 103.
The debud mode that more than is widely used has following shortcoming: owing to can't connect network, therefore can only carry out this locality debugging, can not carry out remote debugging by network; Emulator costs an arm and a leg, and an emulator can only be debugged a slice DSP usually, or with a series of DSP, can not debug multiple DSP simultaneously or on an integrated circuit board, pass through JATG chain of interfaces string several DSP together, can not support an emulator to debug the DSP on the polylith integrated circuit board simultaneously; Because can't on p-wire, articulate emulator debug to DSP, therefore only be applicable to the off-line debug phase, be not suitable for phase of integration testing; Because existing debugging technique does not have the function of debugging proxy, therefore can not issue debugging and enquiry command dynamically and carry out function performance; Can only query interface or the value of internal memory, can't realize automatic analysis to system running state; Can only interrupt and a little stop the value that dsp operation comes observation variable, the normal operation of this debugging method meeting interference program.
As shown in Figure 2, it is traditional network debud mode synoptic diagram, PC debug machine 101 communicates by the debugged processor 203 on network 202 and the target integrated circuit board, agency by operation on processor 203 realizes various debug functioies, and above-mentioned network 202 can be to finish connection by HUB or router.Its shortcoming is:
1. because a lot of DSP does not have network network interface peripheral hardware, can't carry out the network debugging;
2. can not debug simultaneously a plurality of DSP;
3. because the memory source of DSP is limited, can't support huge network communication protocol stack, therefore a lot of debug functioies can't be used, and also can't debug automatically system running state.
Summary of the invention
In view of this, the invention provides a kind of technology to digital signal processor execution debugging and enquiry command, the enforcement Network Based of this technology makes the debugging of DSP can long-rangely be carried out; Avoid using expensive emulator; Make and to carry out dynamic debugging,, realize many DSP are debugged simultaneously by analyzing the automatic analysis of debug results realization to system running state to DSP.
A kind ofly Network Based digital signal processor is carried out the method for debugging and enquiry command, be applied to comprise the debug system of debug machine and DSP, a main control processor is set in the DSP side;
Debug machine is issuing main control processor to the debugging and enquiry command of DSP by network, and main control processor returns to debug machine by the result that the DSP place obtains debugging and enquiry command.
The described main control processor of this method is comprised by the result that the DSP place obtains debugging and enquiry command: a debugging proxy is set on DSP; Main control processor is received debugging and enquiry command, is transmitted to the debugging proxy that is positioned on the DSP, carries out corresponding debugging and enquiry command on debugging proxy, and by debugging proxy the result of debugging and enquiry command is sent it back main control processor.
In this method,, be pre-existing in mapped file, described debugging query method is dynamically carried out debugging and enquiry command on DSP;
When described debugging and enquiry command is function, further comprise, the function name that input will be carried out on the debug machine interface, resolve mapped file by debug machine, find the address of respective function in the DSP internal memory according to function name, and function address is sent to main control processor, main control processor is transmitted to the debugging proxy on the DSP, debugging proxy directly jumps to this function address and carries out function, and the execution result of function is returned to main control processor, returns to debug machine by main control processor.
In this method, be pre-existing in mapped file, described main control processor is comprised by the result that the DSP place obtains debugging and enquiry command: analyze and the corresponding mapped file of executable file on the DSP address of acquisition named variable in the internal memory of DSP; Main control processor is directly visited the DSP internal memory by hardware corridor according to the address of knowing, obtains the debugging response message.
The described debugging query method of this method further comprises, as described debugged DSP when being a plurality of, to combine the debugging and enquiry command of a plurality of DSP, be written as debug script, simultaneously a plurality of DSP are debugged, described a plurality of DSP is a plurality of DSP on the same hardware integrated circuit board, or a plurality of DSP on the different hardware integrated circuit board, or even dissimilar DSP.
The described debugging query method of this method dynamically issues debugging and enquiry command on DSP, debug machine sends to main control processor to this debugging and enquiry command, main control processor is transmitted to debugging proxy on the DSP to debugging and enquiry command, debugging proxy is carried out debugging and enquiry command, and execution result returned to main control processor, return debug machine by main control processor.
This method is further analyzed the debug results information that obtains needs for the result of described debugging and enquiry command at main control processor or above the debug machine.
A kind ofly Network Based digital signal processor is carried out the device of debugging and enquiry command, is applied to comprise the debug system of debug machine and digital signal processor DSP, comprising:
Main control processor is arranged at the DSP side, receives the debugging and enquiry command of debug machine to DSP by network, and obtains the result of debugging and enquiry command from DSP;
Hardware corridor, main control processor communicates by hardware corridor and debugged DSP.
This installs on the described debugged DSP and further comprises the debugging proxy module, main control processor is received debugging and enquiry command, be transmitted to the debugging proxy module that is positioned on the DSP, on debugging proxy, carry out corresponding debugging and enquiry command, and the result of debugging and enquiry command is sent it back main control processor by the debugging proxy module.
This installs described main control processor and further analyzes and the corresponding mapped file of executable file on the DSP, the address of acquisition named variable in the internal memory of DSP; Main control processor is directly visited the DSP internal memory by hardware corridor according to the address of knowing, obtains the debugging response message.
This installs described main control processor is PowerPC series processors, ARM series processors or the like, network enabled interface external unit, internal memory network enabled protocol stack, the internal memory that can directly visit DSP by hardware corridor.
This installs described hardware corridor is HPI bus or DSI bus.
From the above as can be seen, method and the device that digital signal processor is debugged Network Based provided by the invention assisted debugging to DSP by adopting with main control processor; Debugging proxy is set on DSP; On the PC debug machine, carry out debug script simultaneously to a plurality of DSP debugging; The debugging proxy cooperation division of labor on main control processor and the DSP realizes technological means and related devices such as network debug function, solved traditional shortcoming that articulates the method that emulator debugs, can overcome simultaneously the shortcoming of network debugging in the prior art, make for adjustment method and the means of DSP more various and effective practical, the efficient that raising is debugged and to the accurate location of dsp operation problem.
Description of drawings
Fig. 1 is a prior art emulator debug mode synoptic diagram;
Fig. 2 is traditional network debud mode synoptic diagram;
Fig. 3 is a DSP network debud mode synoptic diagram of the present invention;
Fig. 4 is embodiment 1 schematic flow sheet;
Fig. 5 is embodiment 2 schematic flow sheets.
Embodiment
The invention describes a kind of based on network DSP debugging query method and device,, assist the PC debug machine by the debugging query of network to DSP by main control processor is set.
In the debugging query process, assist debugging to DSP with main control processor.
Debugging query process of the present invention mainly comprises:
The mode that issues of debugging and enquiry command and Debugging message report mode: the PC debug machine by network be connected with integrated circuit board on main control processor communicate, the PC end is handed down to main control processor to the debugging and enquiry command of DSP by network, issue DSP by main control processor again, the Debugging message of DSP reports the PC debug machine by main control processor by network;
2. main control processor can adopt dual mode to obtain the debugging query response message of DSP.
For the concrete implementing procedure of method of the present invention is described, preferred embodiment of the present invention is described in detail below in conjunction with Fig. 4.
Embodiment 1:
The system architecture of whole network debud mode as shown in Figure 3, can be divided into PC debug machine 101, the networked devices 202 that is connected with network, for example HUB or other router, and hardware integrated circuit board 304, wherein, hardware integrated circuit board 304 further comprises the main control processor 301 of assist in debugging, hardware corridor 302 and debugged DSP303.Hardware corridor 302 can be bus or other possible hardware corridor of data serial interface (DSI, Data SerialInterface), host parallel interface types such as (HPI, Host Parallel Interface); Wherein, DSI is used for transmitting at a distance signal, and HPI is used to finish the exchanges data between main frame and DSP or DSP and the DSP.
A debugging proxy is set on DSP, and described debugging proxy can be software or hardware module, is specifically responsible for the operation debugging and enquiry command, avoids having disturbed owing to debugging query the operation of DSP itself; The debugging proxy cooperation division of labor on main control processor and the DSP realizes the network debug function on the basis of the program real-time that guarantees moving on the DSP.
Simultaneously, debugging query method of the present invention can dynamically issue debugging and enquiry command, dynamically carries out function on DSP, change the execution sequence of code, this mode has improved the efficient of debugging, no longer when articulating emulator and debug, and can only be by the order execution command of code compiling.
In addition, when carrying out dynamic debugging, preferably after the function name that the input of PC debug machine interface will be carried out, the PC debug machine is resolved the MAP file, finds the function address of function name correspondence, and function address is sent to main control processor.
When carrying out dynamic debugging, what preferably main control processor was transmitted to debugging proxy is function address.
When carrying out dynamic debugging, preferably debugging proxy directly jumps to this function address and carries out function, and obtains the execution result of function or carry out other debugging and enquiry command; Needn't interrupt the operation of DSP when carrying out inquiry.
This mode is applicable to some simple information inquiries, the work that each inquiry needs debugging proxy to finish can not cause unacceptable influence to the real-time of DSP side working procedure, simultaneously can on PC debug machine or main control processor, corresponding computer programs be installed, by each symbol of process analysis DSP or the value of variable, thereby obtain the current running status that DSP goes up the whole software system.Above-mentioned debug machine generally is meant the PC computing machine, also can be the machine that can finish other type of debug machine function of the present invention.
Below in conjunction with Fig. 5 preferred embodiment of the present invention is described in detail.
Embodiment 2:
In this mode, the hardware setting of whole debug system is identical with embodiment 1, but main control processor is the internal memory of directly visiting DSP, thereby knows the operation information of DSP.
This mode is applicable to the long information inquiry consuming time of some complexity, can not influence the execution of DSP side software, simultaneously can on PC debug machine or main control processor, corresponding computer programs be installed, by each symbol of process analysis DSP or the value of variable, thereby obtain the current running status that DSP goes up the whole software system.
On debug machine, carry out debug script, simultaneously a plurality of DSP are debugged.
In the actual application, a system can occur in the process of executing the task, need the situation of a plurality of DSP co-ordinations; Because traditional debud mode can only be debugged at a DSP at every turn, when needs are debugged a plurality of DSP simultaneously, if want to detect the operation information of each DSP of total system, need a lot of extra works, even can't carry out effective debugging query by this adjustment method.The present invention proposes a kind of new adjustment method,, in debug script, will combine, carry out the debugging of complication system function a plurality of DSP debugging and enquiry commands by writing debug script.
At PC debug machine operation debug script, the debugging and enquiry command of script the inside is issued main control processor above the corresponding integrated circuit board successively, for the flow performing of each debugging and enquiry command according to embodiment 1 or 2.A plurality of DSP that this method can be debugged can be a plurality of DSP on the same integrated circuit board, also can be a plurality of DSP on the different integrated circuit boards, or even dissimilar DSP.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention; Solved the problem that prior art exists by technology of the present invention as can be seen; Technology of the present invention has wide practical use in the communications field, and is therefore within the spirit and principles in the present invention all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (12)
1. Network Based digital signal processor is carried out the method for debugging and enquiry command for one kind, be applied to comprise the debug system of debug machine and DSP, it is characterized in that, a main control processor is set in the DSP side;
Debug machine is issuing main control processor to the debugging and enquiry command of DSP by network, and main control processor returns to debug machine by the result that the DSP place obtains debugging and enquiry command.
2. method according to claim 1 is characterized in that, described main control processor is comprised by the result that the DSP place obtains debugging and enquiry command: a debugging proxy is set on DSP; Main control processor is received debugging and enquiry command, is transmitted to the debugging proxy that is positioned on the DSP, carries out corresponding debugging and enquiry command on debugging proxy, and by debugging proxy the result of debugging and enquiry command is sent it back main control processor.
3. method according to claim 2 is characterized in that, is pre-existing in mapped file, and described debugging query method is dynamically carried out debugging and enquiry command on DSP;
When described debugging and enquiry command is function, further comprise, the function name that input will be carried out on the debug machine interface, resolve mapped file by debug machine, find the address of respective function in the DSP internal memory according to function name, and function address is sent to main control processor, main control processor is transmitted to the debugging proxy on the DSP, debugging proxy directly jumps to this function address and carries out function, and the execution result of function is returned to main control processor, returns to debug machine by main control processor.
4. method according to claim 1, it is characterized in that, be pre-existing in mapped file, described main control processor is comprised by the result that the DSP place obtains debugging and enquiry command: analyze and the corresponding mapped file of executable file on the DSP address of acquisition named variable in the internal memory of DSP; Main control processor is directly visited the DSP internal memory by hardware corridor according to the address of knowing, obtains the debugging response message.
5. method according to claim 1, it is characterized in that, described debugging query method further comprises, as described debugged DSP when being a plurality of, will combine the debugging and enquiry command of a plurality of DSP, be written as debug script, simultaneously a plurality of DSP are debugged, described a plurality of DSP is a plurality of DSP on the same hardware integrated circuit board, or a plurality of DSP on the different hardware integrated circuit board, or even dissimilar DSP.
6. method according to claim 1, it is characterized in that, described debugging query method dynamically issues debugging and enquiry command on DSP, debug machine sends to main control processor to this debugging and enquiry command, main control processor is transmitted to debugging proxy on the DSP to debugging and enquiry command, debugging proxy is carried out debugging and enquiry command, and execution result is returned to main control processor, returns debug machine by main control processor.
7. method according to claim 1 is characterized in that, for the result of described debugging and enquiry command, further analyzes the debug results information that obtains needs at main control processor or above the debug machine.
8. Network Based digital signal processor is carried out the device of debugging and enquiry command for one kind, is applied to comprise the debug system of debug machine and digital signal processor DSP, it is characterized in that, comprising:
Main control processor is arranged at the DSP side, receives the debugging and enquiry command of debug machine to DSP by network, and obtains the result of debugging and enquiry command from DSP;
Hardware corridor, main control processor communicates by hardware corridor and debugged DSP.
9. debugging query device according to claim 8, it is characterized in that, further comprise the debugging proxy module on the described debugged DSP, main control processor is received debugging and enquiry command, be transmitted to the debugging proxy module that is positioned on the DSP, on debugging proxy, carry out corresponding debugging and enquiry command, and the result of debugging and enquiry command is sent it back main control processor by the debugging proxy module.
10. debugging query device according to claim 8 is characterized in that, described main control processor is further analyzed and the corresponding mapped file of executable file on the DSP, the address of acquisition named variable in the internal memory of DSP; Main control processor is directly visited the DSP internal memory by hardware corridor according to the address of knowing, obtains the debugging response message.
11. debugging query device according to claim 8, it is characterized in that described main control processor is PowerPC series processors, ARM series processors or the like, network enabled interface external unit, internal memory network enabled protocol stack, the internal memory that can directly visit DSP by hardware corridor.
12. debugging query device according to claim 8 is characterized in that, described hardware corridor is HPI bus or DSI bus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006101147954A CN101192190A (en) | 2006-11-23 | 2006-11-23 | Method and device for digital signal processor executing debugging and enquiry command |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006101147954A CN101192190A (en) | 2006-11-23 | 2006-11-23 | Method and device for digital signal processor executing debugging and enquiry command |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101192190A true CN101192190A (en) | 2008-06-04 |
Family
ID=39487191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2006101147954A Pending CN101192190A (en) | 2006-11-23 | 2006-11-23 | Method and device for digital signal processor executing debugging and enquiry command |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101192190A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426548A (en) * | 2011-11-03 | 2012-04-25 | 华为技术有限公司 | Debugging method, debugger and debugging system of embedded system |
CN105389235A (en) * | 2015-10-28 | 2016-03-09 | 致象尔微电子科技(上海)有限公司 | Heterogeneous multi-core debug system and method |
CN109144853A (en) * | 2018-07-26 | 2019-01-04 | 中国电子科技集团公司第五十四研究所 | A kind of software-defined radio SoC chip debugging system |
CN109815143A (en) * | 2019-01-11 | 2019-05-28 | 尤羿飞 | The remote debugging system and method for the dsp software of embedded controller |
-
2006
- 2006-11-23 CN CNA2006101147954A patent/CN101192190A/en active Pending
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426548A (en) * | 2011-11-03 | 2012-04-25 | 华为技术有限公司 | Debugging method, debugger and debugging system of embedded system |
CN102426548B (en) * | 2011-11-03 | 2014-04-09 | 华为技术有限公司 | Debugging method, debugger and debugging system for embedded system |
CN105389235A (en) * | 2015-10-28 | 2016-03-09 | 致象尔微电子科技(上海)有限公司 | Heterogeneous multi-core debug system and method |
CN109144853A (en) * | 2018-07-26 | 2019-01-04 | 中国电子科技集团公司第五十四研究所 | A kind of software-defined radio SoC chip debugging system |
CN109144853B (en) * | 2018-07-26 | 2021-09-24 | 中国电子科技集团公司第五十四研究所 | Software defined radio SoC chip debugging system |
CN109815143A (en) * | 2019-01-11 | 2019-05-28 | 尤羿飞 | The remote debugging system and method for the dsp software of embedded controller |
CN109815143B (en) * | 2019-01-11 | 2022-02-08 | 尤羿飞 | Remote debugging system and method for DSP software of embedded controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101408862B (en) | Embedded system test method | |
CN101170438B (en) | A remote serial port debugging method and its system | |
CN106371847B (en) | CPCI bus RS422 communication driving method and system under Windows xp system | |
CN105550118B (en) | debugging system and debugging method | |
CN101084485A (en) | Apparatus and method for improving emulation speed of high-level languages in on-chip emulation systems | |
CN103793326A (en) | Assembly test method and device | |
CN106774038B (en) | Environment monitoring or monitoring data acquisition and transmission instrument | |
CN1286431A (en) | Embedded software aided debugging method | |
CN103927256A (en) | Method for controlling multiple Android devices | |
CN113110859A (en) | Embedded terminal remote online development system | |
CN112276943A (en) | Robot teaching control method, teaching control system, computer device, and medium | |
CN101192190A (en) | Method and device for digital signal processor executing debugging and enquiry command | |
CN102426548B (en) | Debugging method, debugger and debugging system for embedded system | |
CN101145970B (en) | System and method for online location of communication system device failures | |
CN102609353A (en) | Method, device and system for managing program debugging | |
KR100403195B1 (en) | In circuit emulator based on the web, development system and method based on the web of target embedded system using it | |
CN101795204A (en) | Remote hardware detection system and method | |
CN116662157B (en) | Virtual debugging system design method for TMS320C28X instruction set simulator | |
CN108491221A (en) | Update, fault detection system and the method for embedded system | |
CN112463083B (en) | Remote collection method and system for information of substrate control manager | |
CN101727388A (en) | Remote debugging method and device for system behavior of network computer | |
US6957179B2 (en) | On-chip emulator communication | |
CN113238898A (en) | Cooperative monitoring and debugging method for multitask running state and communication interface | |
CN116303200A (en) | PCIE equipment positioning management method, system, terminal and storage medium | |
CN111124448A (en) | Internet of things embedded system capable of maintaining firmware quickly and upgrading method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20080604 |