CN105740117A - Chip debugging method and apparatus - Google Patents

Chip debugging method and apparatus Download PDF

Info

Publication number
CN105740117A
CN105740117A CN201610065752.5A CN201610065752A CN105740117A CN 105740117 A CN105740117 A CN 105740117A CN 201610065752 A CN201610065752 A CN 201610065752A CN 105740117 A CN105740117 A CN 105740117A
Authority
CN
China
Prior art keywords
debug command
chip
command
signal
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.)
Granted
Application number
CN201610065752.5A
Other languages
Chinese (zh)
Other versions
CN105740117B (en
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.)
Analogix Semiconductor Beijing Inc
Analogix International LLC
Original Assignee
Analogix Semiconductor Beijing Inc
Analogix International LLC
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 Analogix Semiconductor Beijing Inc, Analogix International LLC filed Critical Analogix Semiconductor Beijing Inc
Priority to CN201610065752.5A priority Critical patent/CN105740117B/en
Publication of CN105740117A publication Critical patent/CN105740117A/en
Application granted granted Critical
Publication of CN105740117B publication Critical patent/CN105740117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/267Reconfiguring circuits for testing, e.g. LSSD, partitioning

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses a chip debugging method and apparatus. The method comprises: receiving a debugging command selection signal, wherein the debugging command selection signal is a signal used for selecting any one or multiple debugging commands from a debugging command set, and a debugging command is a command used for debugging the chip; sending one or multiple debugging commands selected from a debugging command set according to the debugging command selection signal, to a to-be-debugged chip; and using one or multiple debugging commands selected from a debugging command set to debug the to-be-debugged chip. The method and apparatus disclosed by the present invention solve the technical problem of low chip debugging efficiency caused by that the serial terminal based related technology adopts a debugging command of manual input to debug the chip.

Description

Chip adjustment method and device
Technical field
The present invention relates to electronic chip field, in particular to a kind of chip adjustment method and device.
Background technology
Along with the fast development of electronic technology, the application of electronic chip is more and more extensive.In order to improve the performance of chip, need when chip dispatches from the factory chip performance is debugged.Chip performance is carried out debugging and is mostly based on serial port terminal by prior art, and manually input debug command is to chip, and chip exports return value under the effect of debug command, and the performance of chip can be detected and debug according to return value by tester.This chip debud mode is inefficient, and the debugging time is longer, is not suitable for the debugging of high-volume chip, and adopts manual analysis return value detection chip performance, it is impossible to ensure the accuracy of chip debugging result.
It is manually entered debug command for correlation technique based on serial port terminal employing chip is debugged, causes the problem that chip debugging efficiency is low, not yet propose effective solution at present.
Summary of the invention
Embodiments provide a kind of chip adjustment method and device, adopt based on serial port terminal and be manually entered debug command chip is debugged at least solving correlation technique, cause the technical problem that chip debugging efficiency is low.
An aspect according to embodiments of the present invention, provide a kind of chip adjustment method, including: receive debug command and select signal, wherein, debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and debug command is the order for debugging chip;One or more debug command that signal selects from debug command set will be selected to send to chip to be debugged according to debug command;And utilize one or more debug command selected from debug command set to debug chip to be debugged.
Further, before receiving debug command selection signal, method also includes: pre-build at least one macros, and macros includes at least one custom command and/or at least one debug command;And distribute macros selection region at client end interface, wherein, macros selects to be provided with at least one macros Touch Zone in region, the corresponding macros in each macros Touch Zone, wherein, debug command selects signal to be the signal that touch-control macros selects that in region, any one macros Touch Zone is triggered, and when receiving debug command and selecting signal, sends macros corresponding for the macros Touch Zone by touch-control to chip to be debugged.
Further, after client end interface distributes macros selection region, method also includes: detecting whether there is the first touching signals, and wherein, the first touching signals is the signal triggered when macros selects to choose any one macros to reprocess in region;When detecting the presence of the first touching signals, receive the information that selected macros is reprocessed;And according to the selected macros of the information updating that selected macros is reprocessed received.
Further, before receiving debug command selection signal, method also includes: in client end interface distribution order one key sending zone, wherein, order one key sending zone is provided with at least one debug command Touch Zone, the corresponding debug command in each debug command Touch Zone, wherein, debug command selects signal to be the signal that in touch-control order one key sending zone, any one debug command Touch Zone is triggered, when receiving debug command and selecting signal, debug command corresponding for the debug command Touch Zone by touch-control is sent to chip to be debugged.
Further, before receiving debug command selection signal, method also includes: send command area in client end interface distribution timing, wherein, send command area in timing be provided with commard editor district, timing setting area and regularly send Touch Zone, wherein, debug command selects signal to be that touch-control timing sends the signal that Touch Zone is triggered, when receiving debug command and selecting signal, the timing that order user edited in commard editor district is arranged according to timing setting area sends to chip to be debugged.
Further, before receiving debug command selection signal, method also includes: distributing register address editing area at client end interface, wherein, register address editing area is provided with the address of at least one depositor can editing area;Detecting whether there is the second touching signals, wherein, the second touching signals is choose the address of any one depositor can the signal that triggers when editing of editing area in register address editing area;And when detecting the presence of the second touching signals, receiving can the information edited of editing area to the address of selected depositor.
Further, before receiving debug command selection signal, method also includes: distributes chip debud mode at client end interface and selects region, and wherein, chip debud mode selects the alternative debud mode in region to include: AccessPort mode and Aux channel debugging mode;Receive user and select regioselective debud mode at chip debud mode;And according to the debud mode of user's selection, debug command is carried out form switching.
Further, after one or more debug command transmission that signal will be selected to select from debug command set according to debug command to chip to be debugged, method also includes: one or more selected debug command stored as history command;The history command of detection client end interface calls region whether history of existence order;Detect history command call region be absent from history command time, history command is added into history command and calls region.
Further, utilizing one or more debug command selected from debug command set to debug after chip to be debugged, method also includes: export the return value after chip to be debugged is debugged according to one or more debug command selected from debug command set and implication that return value represents;And record the chip to be debugged debugging recording in preset time period, wherein, debugging recording includes the information of the serial port terminal being connected with chip to be debugged, is input to the debug command of chip to be debugged, the implication that the return value of chip to be debugged output and return value represent.
Another aspect according to embodiments of the present invention, additionally provide a kind of chip debugging apparatus, including: the first receiver module, signal is selected for receiving debug command, wherein, debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and debug command is the order for debugging chip;Select module, for one or more debug command that signal selects from debug command set being selected to send to chip to be debugged according to debug command;And debugging module, for utilizing one or more debug command selected from debug command set to debug chip to be debugged.
In embodiments of the present invention, adopting and receive debug command selection signal, wherein, debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and debug command is the order for debugging chip;One or more debug command that signal selects from debug command set will be selected to send to chip to be debugged according to debug command;And utilize one or more debug command selected from debug command set to debug the mode of chip to be debugged, by in advance at least one debug command being integrated, one or more debug command is therefrom selected to send to chip to be debugged when debug command selects signal receiving, reach without manual editing's debug command, automatically from debug command set integrated in advance, select the purpose that required debug command is transmitted, it is achieved thereby that improve the technique effect of chip debugging efficiency, and then solve correlation technique and adopt based on serial port terminal and be manually entered debug command chip is debugged, cause the technical problem that chip debugging efficiency is low.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, and the schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of chip adjustment method according to embodiments of the present invention;
Fig. 2 is the schematic diagram of the application interface of debugging application software according to embodiments of the present invention;
Fig. 3 is the schematic diagram of the macros window in debugging application software according to embodiments of the present invention;
Fig. 4 is the schematic diagram of the macros circular flow in debugging application software according to embodiments of the present invention;
Fig. 5 is the schematic diagram of the order one key sending zone in debugging application software according to embodiments of the present invention;
Fig. 6 is the schematic diagram that the timing in debugging application software according to embodiments of the present invention sends command area;
Fig. 7 is the schematic diagram of the register address editing area in debugging application software according to embodiments of the present invention;
Fig. 8 is the schematic diagram in the register manipulation region in debugging application software according to embodiments of the present invention;
Fig. 9 is the schematic diagram of the debud mode handoff functionality in debugging application software according to embodiments of the present invention;
Figure 10 is the schematic diagram that the history command in debugging application software according to embodiments of the present invention calls region;
Figure 11 is the schematic diagram of the viewing area of the return value in debugging application software according to embodiments of the present invention and implication thereof;And
Figure 12 is the schematic diagram of chip debugging apparatus according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, all should belong to the scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that the data of so use can be exchanged in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " includes " and " having " and their any deformation, it is intended to cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment be not necessarily limited to those steps or the unit clearly listed, but can include clearly not listing or for intrinsic other step of these processes, method, product or equipment or unit.
According to embodiments of the present invention, provide the embodiment of the method for a kind of chip adjustment method, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although illustrate logical order in flow charts, but in some cases, it is possible to perform shown or described step with the order being different from herein.
Fig. 1 is the flow chart of chip adjustment method according to embodiments of the present invention, as it is shown in figure 1, the method comprises the steps:
Step S102, receives debug command and selects signal, and wherein, debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and debug command is the order for debugging chip.
Step S104, will select one or more debug command that signal selects from debug command set to send to chip to be debugged according to debug command.
Step S106, utilizes one or more debug command selected from debug command set to debug chip to be debugged.
It should be noted that, the chip adjustment method of this embodiment can perform in the server, by in advance at least one debug command being integrated, one or more debug command is therefrom selected to send to chip to be debugged when debug command selects signal receiving, reach without manual editing's debug command, automatically required debug command transmission is selected to carry out the purpose debugged to chip to be debugged from debug command set integrated in advance, solve correlation technique to adopt based on serial port terminal and be manually entered debug command chip is debugged, cause the technical problem that chip debugging efficiency is low, reach to improve the technique effect of chip debugging efficiency.
In the step S102 scheme provided, debug command is the order for debugging chip, in order to debug the performance of chip, may require that one or more debug command, the performance that debugging chip is different, need the debug command used different, it may be desirable to certain performance of chip just can be debugged by a debug command, it is also possible to may require that multiple debug command just can complete the debugging to certain performance of chip together.One or more debug command is arranged by this embodiment in advance, is integrated in debug command set, namely can include one or more debug command in debug command set, and this debug command set can in presence server.One or more debug command is carried out arranging and storing by this embodiment in advance, is conducive to direct therefrom Selection and call in chip debugging process, orders without manual editing, highly shortened chip debugging duration, improves chip debugging efficiency.
Debug command set can include multiple debug command, in actual chips debugging process, this embodiment can select signal to select required debug command that chip is debugged from debug command set according to debug command, wherein, debug command selects signal can be the signal for selecting any one or multiple debug command from debug command set.This embodiment monitors whether that receiving debug command selects signal in real time, to reach to select debug command that chip is debugged in time rapidly from debug command set.Alternatively, debug command selects signal can be triggered generation by user's operation on client terminal, wherein, client terminal can be provided with the debugging application software utilizing the chip adjustment method of the embodiment of the present invention to design, user can pass through execution of command operations on the debugging application software display interface of client terminal and trigger generation debug command selection signal, such as, click the order one key send button that the debug command editted on debugging application software display interface is corresponding, or click the file etc. that the macros editted on debugging application software display interface is corresponding.The present invention selects the triggering mode of signal to generating debug command and is not construed as limiting, and the embodiment of the present invention can also trigger generation debug command by other means and select signal, no longer illustrates one by one herein.
In the step S104 scheme provided, server is after receiving debug command and selecting signal, it is possible to select in the debug command set of storage to select, with this debug command, one or more debug command that signal is corresponding from server.Alternatively, in server all there is a unique command id in each debug command in the debug command set of storage, an i.e. corresponding command id of debug command, this command id is mainly used in the debug command that mark is different, to reach to distinguish the purpose of different debug command.Wherein, the digital ID that command id can be made up of at least one bit digital, it is also possible to the character string etc. being made up of at least one character.Debug command set stores debug command according to command id.Alternatively, debug command selects can carry in signal the command id of selected debug command, after server receives this debug command selection signal, signal is selected to resolve this debug command, therefrom get the command id of selected debug command, wherein, the command id of described debug command can be one, it is also possible to is multiple.Server searches, according to the command id of this selected debug command being analyzed and acquired by, the debug command mated with this command id from debug command set, and one found or debug command is sent to chip to be debugged by serial port terminal.Wherein, chip to be debugged can be the electronic chip of any kind or model, and chip to be debugged can be connected with server by serial port terminal.
In the step S106 scheme provided, chip to be debugged is after receiving one or more debug command that server is sent by serial port terminal, perform this one or more debug command, and feeding back to server by performing the return value that this one or more debug command obtains, server can pass through to read and analyze the implication of return value and chip to be debugged is analyzed and debugs.It should be noted that, in server in the debug command set of storage except storing the command id having debug command corresponding with debug command, can also storing at least one return value of this debug command and the implication of each return value, the implication of return value herein can be understood as state or the Problems existing etc. that are reflected chip to be debugged after chip to be debugged performs debug command.Server, after the return value receiving chip to be debugged feedback, analyzes state and the Problems existing etc. of this chip to be debugged according to the implication of the return value of each debug command of storage in debug command set.
It should be noted that utilize the chip adjustment method of the embodiment of the present invention can design the debugging application software for debugging chip, this debugging application software may be mounted in terminal unit, such as computer, smart mobile phone etc..As shown in Figure 2, can showing the application interface of this debugging application software on the terminal device, user can be operated accordingly by the application interface of this debugging application software, it is possible to includes selecting debug command, editor's debug command, setting command timing transmission etc..The chip adjustment method of the embodiment of the present invention is described in detail by the function and the feature that possess below in conjunction with debugging application software:
As a kind of optional embodiment, before receiving debug command selection signal, this embodiment can also include: pre-builds at least one macros, can include at least one custom command and/or at least one debug command in macros;Distribute macros at client end interface and select region, wherein, macros selects to be provided with at least one macros Touch Zone in region, the corresponding macros in each macros Touch Zone, wherein, debug command selects signal to be the signal that touch-control macros selects that in region, any one macros Touch Zone is triggered, and when receiving debug command and selecting signal, sends macros corresponding for the macros Touch Zone by touch-control to chip to be debugged.
Alternatively, after client end interface distributes macros selection region, this embodiment can also include: detecting whether there is the first touching signals, and wherein, the first touching signals is the signal triggered when macros selects to choose any one macros to reprocess in region;When detecting the presence of the first touching signals, receive the information that selected macros is reprocessed;And according to the selected macros of the information updating that selected macros is reprocessed received.Include newly-built macros it should be noted that macros to be carried out reprocessing, delete macros, edit macros etc..
It should be noted that the function of the support macros of this alternative embodiment correspondence debugging application software, utilizing this function can pass through to edit the macros realization overwhelming majority needs the controllers such as single-chip microcomputer to program the function that could realize.Macros is the featured function in this debugging application software, the corresponding operation often carried out according to fixing flow process at ordinary times, it it is all the method realization of manually input order or single-chip microcomputer coding before, as long as utilizing the macros write text that this debugging application software will need, then double-clicking in macros window just can autoexec macros order, it is greatly convenient to have provided the user, and has reached to improve the effect of user's experience.Can realize can also self-defining debug command being sent directly to without manual editing the purpose of chip to be debugged by the macros function of this debugging application software, drastically increase chip debugging efficiency.
Fig. 3 is the schematic diagram of macros window in debugging application software according to embodiments of the present invention, as it is shown on figure 3, it is grand to realize newly-built blank in the right button menu of macros window, copies as new grand, deletes grand, edits and grand waits order.Additionally also having an important function is exactly circular flow n time, so can realize the circulation to certain operation and operate, coordinate the return value audit function in macros, it is possible to return the report of grand circular flow situation.Editing specification about macros file is as follows:
Macros file is a text containing a lot of order, if simplest macro document writing commands, such as:
\rdd0d
\wrd0a12
Wherein, each order set form starts with #, adds space and then add content again after order, such as:
#delay1000, represents time delay 1000ms;
#echo echo content, the content that back is write can be shown in serial ports window, and serial ports will not have any operation;
#note annotates, and uses for annotation in macros file;
#cmp, judges return value, and to print judged result be correct or mistake, and back can add 16 binary digits;
#and, carries out and operation return value, unwanted bit mask is fallen, and only for the previous sentence of #cmp order, back adds 16 binary digits;
#wait, compares return value until correct, and acquiescence 100ms re-reads once, thinks overtime after 100 times, and back adds 16 binary digits.
Macros file can also include some special commands, such as:
[] optional parameters, add a bracket in certain parameter back, this parameter will become optional parameters, pop-up dialogue box can require that one parameter of input just may proceed to run when running this order, can writing explanation in bracket, the value before bracket is exactly default value.Such as, wra0248 [please inputting SSC value, SSC ranges for (0xxx1000)-> 08-78, and default value is 48].
Macros file can also include some optional commands, such as:
#setting_retry_time, for revising the expired times of wait order, is defaulted as 100;
#setting_interval_time, for revising the interval time that time-out re-reads, is defaulted as 100ms;
#setting_err_msg, for revising the information after wait or cmp makes a mistake, is defaulted as " wrong wrong!”;
#setting_ok_msg, for revising the correct information of wait or cmp, is defaulted as and " reads result correct!";
#setting_wait_msg, it is possible to the information that amendment wait order retries, is defaulted as " waiting result, in retrying ... ";
#msg or #msgbox, dialog box statement can eject a dialog box, for information.
The sectional drawing of macros file circular flow function as shown in Figure 4, can be pointed out during macros file circular flow just in information such as the number of times of circular flow, return value mistake sums.
As a kind of optional embodiment, before receiving debug command selection signal, this embodiment can also include: in client end interface distribution order one key sending zone, wherein, order one key sending zone is provided with at least one debug command Touch Zone, the corresponding debug command in each debug command Touch Zone, wherein, debug command selects signal to be the signal that in touch-control order one key sending zone, any one debug command Touch Zone is triggered, when receiving debug command and selecting signal, debug command corresponding for debug command Touch Zone by touch-control is sent to chip to be debugged.
It should be noted that, the function that support order one key of this alternative embodiment correspondence debugging application software sends, Fig. 5 is the schematic diagram of the order one key sending zone in debugging application software according to embodiments of the present invention, as shown in Figure 5, can be included at least one in this region and order a key send button, each button includes one and describes and an order, can interrupt sending to chip to be debugged debug command corresponding for this button automatically by serial ports after pressing the button.Button in this region be can Edit button, user can according to the demand of oneself content of edit voluntarily, increase button quantity, button edit methods is as follows:
First, opening Button_config.ini, then define this button, the content of its definition is as follows:
#new chip status
#cmd\rdd0d
#bit[7:5]
0=SYSTEM_IDLE
1=CONFIG_LOAD
2=WAIT_POWER_UP
3=WAIT_CONFIG_RESET
4=TCON_ACTIVE
5=SYSTEM_FAIL
#bit[4:0]
0=TCON_IDLE
7=BIST0_MODE
B=NORMAL_MODE
12=BIST1_MODE
It should be noted that the name that #new space is below is the name of button, it is possible to write Chinese, this is the opening flag of a button definition, and #cmd represents and presses the order that this button can perform, and above two is necessary option.Herein below is that button return value implication judges whether to, option.#bit [7:5] show judge value be bit7 to bit5, below several for value, equal sign back is the implication of return value.It should be noted that can also continue to write the implication of other parts, no longer illustrate one by one herein.Ordering the length of the return value of the debug command of definition in a key sending zone not limit in this debugging application software, the quantity of the order one key send button of definition is also without restriction.
As a kind of optional embodiment, before receiving debug command selection signal, this embodiment can also include: sends command area in client end interface distribution timing, wherein, send command area in timing be provided with commard editor district, timing setting area and regularly send Touch Zone, wherein, debug command selects signal to be that touch-control timing sends the signal that Touch Zone is triggered, when receiving debug command and selecting signal, the timing that order user edited in commard editor district is arranged according to timing setting area sends to chip to be debugged.
It should be noted that, the support timing of this alternative embodiment correspondence debugging application software sends the function of order, Fig. 6 is the schematic diagram that the timing in debugging application software according to embodiments of the present invention sends command area, as shown in Figure 6, commard editor district can be included in this region, the debug command needing timing to send can be inputted in commard editor district;Timing setting area, is arranged with time shaft form, it is possible to drags and selects timing, it is also possible to arrange by adding and subtracting;And timing sends Touch Zone, click this timing transmission Touch Zone and can carry out the timing transmission of order.Alternatively, this debugging application software can also support that the timing of multiple debug command sends, it is only necessary to by multiple debug command writing commands editing areas.
As a kind of optional embodiment, before receiving debug command selection signal, this embodiment can also include: distributing register address editing area at client end interface, wherein, register address editing area is provided with the address of at least one depositor can editing area;Detecting whether there is the second touching signals, wherein, the second touching signals is choose the address of any one depositor can the signal that triggers when editing of editing area in register address editing area;And when detecting the presence of the second touching signals, receiving can the information edited of editing area to the address of selected depositor.
It should be noted that the support timing of this alternative embodiment correspondence debugging application software sends the function of order.What in system debug process, meeting was regular carries out continuous print adjustment work to some register address, if the mode inputted by hand wastes time and energy.This debugging application software supports that address, multiaddress hurdle is read and write automatically, the function of button plus-minus register value operation.Fig. 7 is the schematic diagram of the register address editing area in debugging application software according to embodiments of the present invention, as it is shown in fig. 7, this debugging application software provides 8 address fields, it is possible to the register address writing address hurdle will used in chip debugging process, then a key reads, a key write.It addition, this debugging application software is provided with adds one and subtract one operation button, conveniently adjust register value gradually.
Chip debugging process is likely to need some specified registers are carried out bit manipulation, or only revise wherein fixing several, this debugging application software can support two register-bit operations, bit can be automatically divided to show return value, amendment bit bit manipulation is clicked in support, and supports the interposition specified is carried out the function of the operation of plus-minus one.Fig. 8 is the schematic diagram in the register manipulation region in debugging application software according to embodiments of the present invention, as shown in Figure 8, this debugging application software provides two register-bit, automatically the register value read can be shown by bit, and support to click amendment bit bit manipulation, the corresponding situation only revising interposition, it is provided that high-order status input field, adding one and subtract one operation only for the situation between high status, this debugging application software can automatically calculate amended value and automatically write in depositor.
As a kind of optional embodiment, before receiving debug command selection signal, this embodiment can also include: distributes chip debud mode at client end interface and selects region, wherein, chip debud mode selects the alternative debud mode in region to include: AccessPort mode and Aux channel debugging mode;Receive user and select regioselective debud mode at chip debud mode;And according to the debud mode of user's selection, debug command is carried out form switching.
It should be noted that the function that the order of the support Aux channel mode of this alternative embodiment correspondence debugging application software and serial mode is replaced automatically.In actual use, having serial ports and two kinds of debud modes of AUX passage, two kinds of debud modes are distinctive in that debugging path is different, and the platform of debugging is different, but in order, only command component is had any different, and the parameter of command operation is identical.Function choosing-item frame is provided for this debugging application software of this situation, as shown in Figure 9, user utilizes this function choosing-item frame can select to adopt serial mode or Aux channel mode, the one key switching of serial mode and Aux channel mode supported by this function choosing-item frame, and the order in macros need not be revised, this debugging application software can be replaced automatically, to reach the unification of two debugging platform macros and debugging software.
As a kind of optional embodiment, after one or more debug command transmission that signal will be selected to select from debug command set according to debug command to chip to be debugged, this embodiment can also include: one or more selected debug command is stored as history command;The history command of detection client end interface calls region whether history of existence order;Detect history command call region be absent from history command time, history command is added into history command and calls region.
It should be noted that, the function of the support command history operation of this alternative embodiment correspondence debugging application software, history command can be called out by upper and lower key and support that amendment sends, in the process needing manual input commands, general serial port terminal cannot preserve history command as linux terminal, this debugging application software achieves this function, after input effective order, this debugging application software can automatic record, then press upper and lower key again and can automatically show previously entered upper or next command, then can revise and send, substantially increase the efficiency of order input.As shown in Figure 10, this debugging application software is with history command combobox, wherein have recorded previously entered all history commands, and identical order has been fallen in automatic fitration, corresponding previously entered order, can passing through this history command hurdle and select a history command, this order can be automatically sent to chip to be debugged and perform.
As a kind of optional embodiment, utilizing one or more debug command selected from debug command set to debug after chip to be debugged, this embodiment can also include: exports the return value after chip to be debugged is debugged according to one or more debug command selected from debug command set and implication that return value represents;And record the chip to be debugged debugging recording in preset time period, wherein, debugging recording includes the information of the serial port terminal being connected with chip to be debugged, is input to the debug command of chip to be debugged, the implication that the return value of chip to be debugged output and return value represent.
It should be noted that, the support automatic decision return value of this alternative embodiment correspondence debugging application software, and the function of return value implication is automatically searched according to list, after order sends, serial port terminal can show return value, software can catch this numerical value automatically, and is shown in left window, then basis and the content in definition command file, software can demonstrate the implication of return value automatically, as shown in figure 11.
This debugging application software can also support dynamic detection serial ports plug, and automatic Memory used serial ports and parameter thereof last time;Support serial port terminal log file record, it is possible to be recorded by the returned content of serial port terminal in a file, facilitate unattended operation;Support explanation and the operation of clipbook order, it is possible to replicate part order from clipbook, paste serial port terminal, automatically analyze the function such as Contents of clipboard execution.This debugging application software can also support other functions, no longer illustrates one by one herein.It should be noted that, the signal of the operation triggerings such as the various triggering signals in above-described embodiment all with debug command selection signal can perform similar on the application interface of this debugging application software by user and click, length is pressed, the trigger action of triggering signal with debug command selection signal is not limited by the present invention.Utilize the chip debugging software that the chip adjustment method of this embodiment of the present invention designs can reach without manual editing's debug command, automatically from debug command set integrated in advance, select the purpose that required debug command is transmitted, it is achieved thereby that improve the technique effect of chip debugging efficiency, and then solve correlation technique and adopt based on serial port terminal and be manually entered debug command chip is debugged, cause the technical problem that chip debugging efficiency is low.
According to embodiments of the present invention, additionally provide the device embodiment of a kind of chip debugging apparatus, it should be noted that this chip debugging apparatus may be used for performing the chip adjustment method in the embodiment of the present invention, the chip adjustment method in the embodiment of the present invention can perform in this chip debugging apparatus.
Figure 12 is the schematic diagram of chip debugging apparatus according to embodiments of the present invention, and as shown in figure 12, this device may include that
First receiver module 22, is used for receiving debug command and selects signal, and wherein, debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and debug command is the order for debugging chip;Select module 24, for one or more debug command that signal selects from debug command set being selected to send to chip to be debugged according to debug command;And debugging module 26, for utilizing one or more debug command selected from debug command set to debug chip to be debugged.
It should be noted that, the first receiver module 22 in this embodiment may be used for performing the step S102 in the embodiment of the present application, selection module 24 in this embodiment may be used for performing the step S104 in the embodiment of the present application, and the debugging module 26 in this embodiment may be used for performing the step S106 in the embodiment of the present application.Above-mentioned module is identical with the example that corresponding step realizes and application scenarios, but is not limited to above-described embodiment disclosure of that.
Alternatively, the chip debugging apparatus of this embodiment can also include: sets up module, and for, before receiving debug command selection signal, pre-building at least one macros, macros includes at least one custom command and/or at least one debug command;And first distribution module, region is selected for distributing macros at client end interface, wherein, macros selects to be provided with at least one macros Touch Zone in region, the corresponding macros in each macros Touch Zone, wherein, debug command selects signal to be the signal that touch-control macros selects that in region, any one macros Touch Zone is triggered, when receiving debug command and selecting signal, macros corresponding for the macros Touch Zone by touch-control is sent to chip to be debugged.
Alternatively, the chip debugging apparatus of this embodiment can also include: first detection module, after distributing macros selection region at client end interface, detect whether there is the first touching signals, wherein, the first touching signals is the signal triggered when macros selects to choose any one macros to reprocess in region;Second receiver module, for when detecting the presence of the first touching signals, receiving the information that selected macros is reprocessed;And more new module, for the macros selected according to the information updating that selected macros is reprocessed received.
Alternatively, the chip debugging apparatus of this embodiment can also include: the second distribution module, for before receiving debug command selection signal, in client end interface distribution order one key sending zone, wherein, order one key sending zone is provided with at least one debug command Touch Zone, the corresponding debug command in each debug command Touch Zone, wherein, debug command selects signal to be the signal that in touch-control order one key sending zone, any one debug command Touch Zone is triggered, when receiving debug command and selecting signal, debug command corresponding for debug command Touch Zone by touch-control is sent to chip to be debugged.
Alternatively, the chip debugging apparatus of this embodiment can also include: the 3rd distribution module, for before receiving debug command selection signal, command area is sent in client end interface distribution timing, wherein, send command area in timing and be provided with commard editor district, timing setting area and timing send Touch Zone, wherein, debug command selects signal to be that touch-control timing sends the signal that Touch Zone is triggered, when receiving debug command and selecting signal, the timing that order user edited in commard editor district is arranged according to timing setting area sends to chip to be debugged.
Alternatively, the chip debugging apparatus of this embodiment can also include: the 4th distribution module, for, before receiving debug command selection signal, distributing register address editing area at client end interface, wherein, register address editing area be provided with the address of at least one depositor can editing area;Second detection module, for detecting whether there is the second touching signals, wherein, the second touching signals is choose the address of any one depositor can the signal that triggers when editing of editing area in register address editing area;And the 3rd receiver module, for when detecting the presence of the second touching signals, receiving the address to selected depositor can the information edited of editing area.
Alternatively, the chip debugging apparatus of this embodiment can also include: the 5th distribution module, for before receiving debug command selection signal, distribute chip debud mode at client end interface and select region, wherein, chip debud mode selects the alternative debud mode in region to include: AccessPort mode and Aux channel debugging mode;4th receiver module, is used for receiving user and selects regioselective debud mode at chip debud mode;And handover module, for the debud mode selected according to user, debug command is carried out form switching.
Alternatively, the chip debugging apparatus of this embodiment can also comprise determining that module, for, after one or more debug command transmission that signal will be selected to select from debug command set according to debug command to chip to be debugged, one or more selected debug command being stored as history command;3rd detection module, the history command for detecting client end interface calls region whether history of existence order;Add module, for detect history command call region be absent from history command time, history command is added into history command and calls region.
Alternatively, the chip debugging apparatus of this embodiment can also include: output module, for utilizing one or more debug command selected from debug command set to debug after chip to be debugged, export the return value after chip to be debugged is debugged according to one or more debug command selected from debug command set and implication that return value represents;And logging modle, for recording the chip to be debugged debugging recording in preset time period, wherein, debugging recording includes the information of the serial port terminal being connected with chip to be debugged, it is input to the debug command of chip to be debugged, the implication that the return value of chip to be debugged output and return value represent.
By above-mentioned module, chip debugging apparatus first receiver module of this embodiment receives debug command and selects signal, wherein, debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and debug command is the order for debugging chip;By selecting module to send one or more debug command selecting signal to select from debug command set according to debug command to chip to be debugged;Utilized one or more debug command selected from debug command set to debug chip to be debugged by debugging module, reach without manual editing's debug command, automatically required debug command transmission is selected to carry out the purpose debugged to chip to be debugged from debug command set integrated in advance, solve correlation technique to adopt based on serial port terminal and be manually entered debug command chip is debugged, cause the technical problem that chip debugging efficiency is low, reach to improve the technique effect of chip debugging efficiency.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can realize by another way.Wherein, device embodiment described above is merely schematic, the such as division of described unit, can be that a kind of logic function divides, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, unit or module, it is possible to be electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, and the parts shown as unit can be or may not be physical location, namely may be located at a place, or can also be distributed on multiple unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can for personal computer, server or the network equipment etc.) performs all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CD.
The above is only the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. a chip adjustment method, it is characterised in that including:
Receiving debug command and select signal, wherein, described debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and described debug command is the order for debugging chip;
One or more debug command that signal selects from described debug command set will be selected to send to chip to be debugged according to described debug command;And
One or more debug command selected from described debug command set is utilized to debug described chip to be debugged.
2. method according to claim 1, it is characterised in that before receiving debug command selection signal, described method also includes:
Pre-build that at least one macros, described macros include at least one custom command and/or at least one described debug command;And
Distribute macros at client end interface and select region, wherein, described macros selects to be provided with at least one described macros Touch Zone in region, the corresponding macros in each macros Touch Zone, wherein, described debug command selects signal to be the signal that macros described in touch-control selects that in region, any one macros Touch Zone is triggered, and when receiving described debug command and selecting signal, sends macros corresponding for the macros Touch Zone by touch-control to described chip to be debugged.
3. method according to claim 2, it is characterised in that after client end interface distributes macros selection region, described method also includes:
Detecting whether there is the first touching signals, wherein, described first touching signals is the signal triggered when described macros selects to choose any one macros to reprocess in region;
When detecting the presence of described first touching signals, receive the information that selected macros is reprocessed;And
Macros selected according to the information updating that selected macros is reprocessed received.
4. method according to claim 1, it is characterised in that before receiving debug command selection signal, described method also includes:
In client end interface distribution order one key sending zone, wherein, described order one key sending zone is provided with at least one debug command Touch Zone, the corresponding debug command in each debug command Touch Zone, wherein, described debug command selects signal to be order the signal that in a key sending zone, any one debug command Touch Zone is triggered described in touch-control, when receiving described debug command and selecting signal, debug command corresponding for the debug command Touch Zone by touch-control is sent to described chip to be debugged.
5. method according to claim 1, it is characterised in that before receiving debug command selection signal, described method also includes:
Command area is sent in client end interface distribution timing, wherein, send command area in described timing be provided with commard editor district, timing setting area and regularly send Touch Zone, wherein, described debug command selects signal to be that described in touch-control, timing sends the signal that Touch Zone is triggered, when receiving described debug command and selecting signal, the timing that order user edited in described commard editor district is arranged according to described timing setting area sends to described chip to be debugged.
6. method according to claim 1, it is characterised in that before receiving debug command selection signal, described method also includes:
Distributing register address editing area at client end interface, wherein, described register address editing area is provided with the address of at least one depositor can editing area;
Detecting whether there is the second touching signals, wherein, described second touching signals is choose the address of any one depositor can the signal that triggers when editing of editing area in described register address editing area;And
When detecting the presence of described second touching signals, receiving can the information edited of editing area to the address of selected depositor.
7. method according to claim 1, it is characterised in that before receiving debug command selection signal, described method also includes:
Distributing chip debud mode at client end interface and select region, wherein, described chip debud mode selects the alternative debud mode in region to include: AccessPort mode and Aux channel debugging mode;
Receive user and select regioselective debud mode at described chip debud mode;And
Debug command is carried out form switching by the debud mode selected according to described user.
8. method according to claim 1, it is characterised in that after one or more debug command transmission that signal will be selected to select from described debug command set according to described debug command to chip to be debugged, described method also includes:
One or more selected debug command is stored as history command;
The history command of detection client end interface calls whether region exists described history command;
Detect described history command call region be absent from described history command time, described history command is added into described history command and calls region.
9. method according to claim 1, it is characterised in that after utilizing one or more debug command selected from described debug command set to debug described chip to be debugged, described method also includes:
Export the return value after described chip to be debugged is debugged and the implication that represents of described return value according to described one or more debug command selected from described debug command set;And
Record the described chip to be debugged debugging recording in preset time period, wherein, described debugging recording includes the information of the serial port terminal being connected with described chip to be debugged, it is input to the debug command of described chip to be debugged, the implication that the return value of described chip to be debugged output and described return value represent.
10. a chip debugging apparatus, it is characterised in that including:
First receiver module, is used for receiving debug command and selects signal, and wherein, described debug command selects signal to be the signal for selecting any one or multiple debug command from debug command set, and described debug command is the order for debugging chip;
Select module, for one or more debug command that signal selects from described debug command set being selected to send to chip to be debugged according to described debug command;And
Debugging module, for utilizing one or more debug command selected from described debug command set to debug described chip to be debugged.
CN201610065752.5A 2016-01-29 2016-01-29 Chip adjustment method and device Active CN105740117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610065752.5A CN105740117B (en) 2016-01-29 2016-01-29 Chip adjustment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610065752.5A CN105740117B (en) 2016-01-29 2016-01-29 Chip adjustment method and device

Publications (2)

Publication Number Publication Date
CN105740117A true CN105740117A (en) 2016-07-06
CN105740117B CN105740117B (en) 2018-05-25

Family

ID=56247113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610065752.5A Active CN105740117B (en) 2016-01-29 2016-01-29 Chip adjustment method and device

Country Status (1)

Country Link
CN (1) CN105740117B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239376A (en) * 2017-06-23 2017-10-10 郑州云海信息技术有限公司 The automation adjustment method and device of a kind of server interconnection chip
CN109408433A (en) * 2018-10-08 2019-03-01 北京理工大学 A kind of interface arrangement and working method suitable for specific integrated circuit debugging
CN113110987A (en) * 2020-01-13 2021-07-13 中车唐山机车车辆有限公司 Method and device for debugging single carriage brake of motor train unit
CN115640183A (en) * 2022-11-04 2023-01-24 武汉芯必达微电子有限公司 Chip verification device and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541709A (en) * 2010-12-27 2012-07-04 佛山市顺德区顺达电脑厂有限公司 Serial port debugging tool and method
CN104484268A (en) * 2014-11-21 2015-04-01 厦门美图移动科技有限公司 Debugging method and mobile terminal
CN104503898A (en) * 2014-11-24 2015-04-08 四川长虹电器股份有限公司 Method and system for checking embedded software debugging parameter in real time

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541709A (en) * 2010-12-27 2012-07-04 佛山市顺德区顺达电脑厂有限公司 Serial port debugging tool and method
CN104484268A (en) * 2014-11-21 2015-04-01 厦门美图移动科技有限公司 Debugging method and mobile terminal
CN104503898A (en) * 2014-11-24 2015-04-08 四川长虹电器股份有限公司 Method and system for checking embedded software debugging parameter in real time

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239376A (en) * 2017-06-23 2017-10-10 郑州云海信息技术有限公司 The automation adjustment method and device of a kind of server interconnection chip
CN109408433A (en) * 2018-10-08 2019-03-01 北京理工大学 A kind of interface arrangement and working method suitable for specific integrated circuit debugging
CN109408433B (en) * 2018-10-08 2021-05-11 北京理工大学 Interface device suitable for debugging of application specific integrated circuit and working method
CN113110987A (en) * 2020-01-13 2021-07-13 中车唐山机车车辆有限公司 Method and device for debugging single carriage brake of motor train unit
CN113110987B (en) * 2020-01-13 2024-04-09 中车唐山机车车辆有限公司 Method and equipment for debugging braking of single carriage of motor train unit
CN115640183A (en) * 2022-11-04 2023-01-24 武汉芯必达微电子有限公司 Chip verification device and method

Also Published As

Publication number Publication date
CN105740117B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN109739766B (en) System and method for rapidly building FPGA digital simulation model
CN108845930B (en) Interface operation test method and device, storage medium and electronic device
CN102841845B (en) Automatic testing method of Android device software
CN102184138B (en) Method and system for automatically reproducing and positioning software error
CN105740117A (en) Chip debugging method and apparatus
CN102541740B (en) A kind of mobile phone notes automated testing method based on Android
CN103995769A (en) Method for collecting error status information of an electronic device
CN101025686A (en) Automation test system and test script generating and operating method
CN103472974A (en) Method and device for sharing application
CN104809056A (en) Interface testing code generating method and device
CN104375934A (en) Method for testing reliability of Android mobile phone software
CN101262681A (en) Automatic testing mobile terminal and its implementation method
CN105183184A (en) Character processing method and terminal
CN102819500B (en) A kind of method and device creating peripheral equipment control interface
KR20180091838A (en) A page construction method, a terminal, a computer readable storage medium, and a page builder
CN106646315A (en) Automatic testing system and automatic testing method for digital measuring instruments
CN115658529A (en) Automatic testing method for user page and related equipment
CN100428153C (en) Method and device for generating test script
CN104320793A (en) Mobile phone short message automated test method and system
CN110659197B (en) Application test case generation method and device and software test system
CN103941957A (en) Method and device for deleting content of user equipment and user equipment
CN1975701B (en) Master machine driving external equipment method and system
CN102519514B (en) One-click automatic testing realization method of electronic test instrument
CN105718434A (en) Natural language formula editing method and system
CN104063306A (en) Automatic login method, device and system in intelligent terminal software testing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant