CN105701011A - Debugging method, electronic product applying debugging method and debugging card - Google Patents

Debugging method, electronic product applying debugging method and debugging card Download PDF

Info

Publication number
CN105701011A
CN105701011A CN201511030473.7A CN201511030473A CN105701011A CN 105701011 A CN105701011 A CN 105701011A CN 201511030473 A CN201511030473 A CN 201511030473A CN 105701011 A CN105701011 A CN 105701011A
Authority
CN
China
Prior art keywords
electronic product
interface
debugging
multiplexing selector
connect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201511030473.7A
Other languages
Chinese (zh)
Inventor
江晶亮
林锦麟
王大岁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI INFOTM MICROELECTRONICS CO Ltd
Original Assignee
SHANGHAI INFOTM MICROELECTRONICS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI INFOTM MICROELECTRONICS CO Ltd filed Critical SHANGHAI INFOTM MICROELECTRONICS CO Ltd
Priority to CN201511030473.7A priority Critical patent/CN105701011A/en
Publication of CN105701011A publication Critical patent/CN105701011A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3656Software debugging using additional hardware using a specific debug interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • G06F11/3652Software debugging using additional hardware in-circuit-emulation [ICE] arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a debugging method of an electronic product. The debugging method comprises the steps: S10, judging whether the electronic product is in a normal service state; if the electronic product is in the normal service state, by a multiplexing selector, selecting to communicate an I/O interface with a storage controller; S20, if the electronic product is not in the normal service state, judging whether the electronic product is in a debugging state; if the electronic product is in the debugging state, by the multiplexing selector, selecting to communicate the I/O interface with a debugging controller; S30, debugging the electronic product through the I/O interface which is selected to be communicated with the debugging controller. According to the debugging method of the electronic product, pin consumption of an integrated circuit and chip area of the electronic product can be reduced, the electronic product can be debugged by a debugging tool without detachment and test signal line arrangement, and the electronic product in a few low-probability abnormal conditions can be debugged with better effects.

Description

A kind of adjustment method, the electronic product applying the method and test chart
Technical field
The present invention relates to debugging field, particularly relate to a kind of adjustment method, the electronic product applying the method and test chart。
Background technology
In conventional electronic product development process, product is debugged by developer by reserved jtag interface on circuit boards and UART interface, after product complete design, these functions are disabled by board design personnel by not installing the modes such as corresponding plug connector or the direct extraction directly cancelling JTAG and UART interface in the board design stage, and install corresponding device housings。Hereafter equipment can use interface to be generally external memory interface, user data interactive interface (USB etc.), power source charges interface etc.。If now research and development or maintainer want product is carried out deep debugging and maintenance, need to dismantle device housings even specially from extraction JTAG or UART interface line corresponding IC, under the high situation with miniaturization of electronic product integrated level, this work can operational feasibility more and more lower, developer and maintainer are difficult to more convenient use JTAG and UART interface efficiently and equipment are debugged and safeguards, increase exploitation and the maintenance difficulties of product。
Summary of the invention
It is an object of the invention to provide a kind of adjustment method, the electronic product applying the method and test chart, debugging interface and storage functional interface are carried out multiplexing, it is easy to related personnel and conveniently uses JTAG debugging interface at the whole life cycle of equipment, the research and development of raising equipment and maintenance efficiency, reduce equipment cost。。
Technical scheme provided by the invention is as follows:
A kind of adjustment method of electronic product, including: S10 judges whether electronic product is in normal operating condition;When electronic product is in normal operating condition, I/O interface is selected to connect by multiplexing selector with storage control;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, I/O interface is selected to connect by multiplexing selector with debugging control device;S30, by selecting the I/O interface connected with debugging control device, debugs described electronic product。
Invention additionally discloses the adjustment method of another kind of electronic product, also include S10 and judge whether electronic product is in normal operating condition;When electronic product is in normal operating condition, I/O interface is selected to connect by multiplexing selector with storage control;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, I/O interface is selected to connect by multiplexing selector with debugging control device;S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector automatically selects and connects with storage control;S23 is when the detection signal inserting storage card is insert without storage card, and multiplexing selector automatically selects and connects with debugging control device。S30, by selecting the I/O interface connected with debugging control device, debugs described electronic product。
It is further preferred that the detection signal wherein inserting storage card refers to: the detection signal of the SD_CD that I/O interface connects;When having the low level that detection signal is SD_CD that storage card inserts, without storage card insert when detecting the high level that signal is SD_CD。
Invention additionally discloses the adjustment method of another kind of electronic product, also include S10 and judge whether electronic product is in normal operating condition;When electronic product is in normal operating condition, multiplexing selector will select to connect with SD_CD, SDI/O_CMD, SDI/O_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control from the SD_CD of I/O interface, SDI/O_CMD/RXD, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, multiplexing selector will select to connect with RXD, TXD, TCK, TMS, TDI and TDO of debugging control device from the SDI/O_CMD/RXD of I/O interface, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO;S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector will select connect with SD_CD, SDI/O_CMD, SDI/O_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control from the SD_CD of I/O interface, SDI/O_CMD/RXD, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO automatically;S23 is when the detection signal inserting storage card is insert without storage card, and multiplexing selector will select to connect with RXD, TXD, TCK, TMS, TDI and TDO of debugging control device from the SDI/O_CMD/RXD of I/O interface, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO automatically;S30, by selecting the I/O interface connected with debugging control device, debugs described electronic product。
Invention additionally discloses the adjustment method of another kind of electronic product, also include S10 and judge whether electronic product is in normal operating condition;When electronic product is in normal operating condition, multiplexing selector will select to connect with SD_CD, SDI/O_CMD, SDI/O_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control from the SD_CD of I/O interface, SDI/O_CMD/RXD, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, when electronic product is in UART debugging mode, RXD and TXD is selected to connect by multiplexing selector with UART controller;When electronic product is in JTAG debugging mode, TCK, TMS, TDI and TDO are selected to connect by multiplexing selector with jtag controller;S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector will select connect with SD_CD, SDI/O_CMD, SDI/O_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control from the SD_CD of I/O interface, SDI/O_CMD/RXD, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO automatically;S23 is when the detection signal inserting storage card is insert without storage card, and when electronic product is in UART debugging mode, RXD and TXD is selected to connect by multiplexing selector with UART controller;When electronic product is in JTAG debugging mode, TCK, TMS, TDI and TDO are selected to connect by multiplexing selector with jtag controller;S30, by selecting the I/O interface connected with debugging control device, debugs described electronic product。
Invention additionally discloses a kind of electronic product applying above-mentioned adjustment method, including: the multiplexing selector that I/O interface electrically connects with I/O interface, the storage control electrically connected with multiplexing selector respectively and debugging control device。
Invention additionally discloses another kind of electronic product, including: the multiplexing selector that I/O interface electrically connects with I/O interface, the storage control electrically connected with multiplexing selector respectively and debugging control device;Described debugging control device includes the UART controller and the jtag controller that electrically connect respectively with multiplexing selector;Wherein, described multiplexing selector is for when electronic product is in UART debugging mode, selecting to connect with UART controller by I/O interface;Described multiplexing selector is additionally operable to when electronic product is in JTAG debugging mode, selects to connect with jtag controller by I/O interface。
Invention additionally discloses another kind of electronic product, including: the multiplexing selector that I/O interface electrically connects with I/O interface, the storage control electrically connected with multiplexing selector respectively and debugging control device;Described debugging control device includes the UART controller and the jtag controller that electrically connect respectively with multiplexing selector;Wherein, described multiplexing selector is for when electronic product is in UART debugging mode, selecting to connect with UART controller by I/O interface;Described multiplexing selector is additionally operable to when electronic product is in JTAG debugging mode, selects to connect with jtag controller by I/O interface;CPU core;Described CPU core electrically connects with described storage control, described UART controller and jtag controller respectively, to transmit storage data, UART data and JTAG data;Described CPU core also electrically connects with described multiplexing selector, is used for controlling described multiplexing selector, arranges electronic product and is in normal operating condition, is in debugging mode or is in self reusing state。
Invention additionally discloses a kind of and above-mentioned matching used test chart of electronic product, described test chart is imitative storage card profile, including: imitative storage card connecting terminal, the UART electrically connected with described connecting terminal is connected interface and/or JTAG connects interface;Wherein said test chart detects, with inserting of storage card, the position that position is corresponding, is straight or recessed shape。
Compared with prior art, the present invention is when actually used, circuit designer need not separately design out exploitation version and product version circuit for product, research and development and attendant can also at the whole life cycle of electronic equipment, equipment is not torn open and under machine form, uses JTAG/UART interface that equipment is debugged and maintenance work, and without influence on the existing external extended menory function of equipment。This invention can significantly improve efficiency of research and development and lower R&D costs。
Accompanying drawing explanation
Below by the way of clearly understandable, accompanying drawings preferred implementation, the adjustment method of a kind of electronic product and electronic product and the above-mentioned characteristic of test chart, technical characteristic, advantage and implementation thereof are further described。
Fig. 1 is the step schematic diagram of the adjustment method of a kind of electronic product of the present invention;
Fig. 2 is the interface duplex schematic diagram of the adjustment method of a kind of electronic product of the present invention;
Fig. 3 is the schematic flow sheet of the adjustment method of a kind of electronic product of the present invention;
Fig. 4 is the structured flowchart of a kind of electronic product applying adjustment method of the present invention;
Fig. 5 is the structured flowchart of another electronic product applying adjustment method of the present invention;
Fig. 6 is the structural representation of the test chart of a kind of electronic product of the present invention。
Drawing reference numeral illustrates:
1.I/O interface, 2. multiplexing selector, 3. debugging control device, 31.JTAG controller, 32.UART controller, 4. storage control, 5.CPU kernel;
A.UART tri-needle interface, the in line contact pin of b.JTAG biserial, c. imitates TF hard contact。
Detailed description of the invention
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below comparison accompanying drawing is illustrated the specific embodiment of the present invention。It should be evident that the accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings, and obtain other embodiment。
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent its practical structures as product。It addition, so that simplified form readily appreciates, some figure has the parts of identical structure or function, only symbolically depict one of them, or only mark one of them。In this article, " one " not only represents " only this ", it is also possible to represent the situation of " more than one "。
Fig. 1 is the step schematic diagram of the adjustment method of a kind of electronic product of the present invention, as a specific embodiment of the present invention, as it is shown in figure 1, the adjustment method of a kind of electronic product includes: S10 judges whether electronic product is in normal operating condition;When electronic product is in normal operating condition, I/O interface 1 is selected to connect by multiplexing selector 2 with storage control 4;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, I/O interface 1 is selected to connect by multiplexing selector 2 with debugging control device 3;S30, by selecting the I/O interface 1 connected with debugging control device 3, debugs described electronic product。
The present invention in chip design stage by the data wire of JTAG, UART interface and external data storage interface is carried out multiplexing, by the state that electronic product is current is judged, select between JTAG, UART function and data storage function, facilitate existing JTAG debugging acid and UART instrument directly to use outside memory interface (External memory equipment draw-in groove) to connect chip to be tested and set up JTAG connection and UART connection。
Above-described embodiment is improved, obtains preferred embodiment, the adjustment method of a kind of electronic product, also include S10 and judge whether electronic product is in normal operating condition;When electronic product is in normal operating condition, I/O interface 1 is selected to connect by multiplexing selector 2 with storage control 4;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, I/O interface 1 is selected to connect by multiplexing selector 2 with debugging control device 3;S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector 2 automatically selects and connects with storage control 4;S23 is when the detection signal inserting storage card is insert without storage card, and multiplexing selector 2 automatically selects and connects with debugging control device 3。S30, by selecting the I/O interface 1 connected with debugging control device 3, debugs described electronic product。
In external memory card slot mechanical mechanism, draw-in groove CD card detection pin is elastic spring detection structure, draw-in groove CD card detection pin can along with card into and out, present different level signals, this characteristic is for the detection signal in the present invention, and the detection signal inserting storage card in the present invention is the detection signal of the SD_CD that I/O interface 1 connects;When having the low level that detection signal is SD_CD that storage card inserts, without storage card insert when detecting the high level that signal is SD_CD。Multiplexing selector 2 automatically selects according to detection signal and is connected with debugging control device 3 or storage control 4 by I/O interface 1。
Fig. 2 is the interface duplex schematic diagram of the adjustment method of a kind of electronic product of the present invention, as in figure 2 it is shown, above-described embodiment is improved, obtain preferred embodiment, the adjustment method of a kind of electronic product, also includes S10 and judges whether electronic product is in normal operating condition;When electronic product is in normal operating condition, multiplexing selector 2 will select to connect with SD_CD, SDIO_CMD, SDIO_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control 4 from the SD_CD of I/O interface 1, SDIO_CMD/RXD, SDIO_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, multiplexing selector 2 will select to connect with RXD, TXD, TCK, TMS, TDI and TDO of debugging control device 3 from the SDIO_CMD/RXD of I/O interface 1, SDIO_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO;S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector 2 will select connect with SD_CD, SDIO_CMD, SDIO_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control 4 from the SD_CD of I/O interface 1, SDIO_CMD/RXD, SDIO_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO automatically;S23 is when the detection signal inserting storage card is insert without storage card, and multiplexing selector 2 will select to connect with RXD, TXD, TCK, TMS, TDI and TDO of debugging control device 3 from the SDIO_CMD/RXD of I/O interface 1, SDIO_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO automatically;S30, by selecting the I/O interface 1 connected with debugging control device 3, debugs described electronic product。
By reasonably arranging the use logic of I/O interface 1, it is achieved storage control 4 and the debugging control device 3 multiplexing to I/O interface 1, it is achieved show the interface features of correspondence under different conditions。
Above-described embodiment is improved, obtains preferred embodiment, the adjustment method of a kind of electronic product, also include S10 and judge whether electronic product is in normal operating condition;When electronic product is in normal operating condition, multiplexing selector 2 will select to connect with SD_CD, SDIO_CMD, SDIO_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control 4 from the SD_CD of I/O interface 1, SDIO_CMD/RXD, SDIO_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO;S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, when electronic product is in UART debugging mode, RXD and TXD is selected to connect by multiplexing selector 2 with UART controller 32;When electronic product is in JTAG debugging mode, TCK, TMS, TDI and TDO are selected to connect by multiplexing selector 2 with jtag controller 31;S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector 2 will select connect with SD_CD, SDIO_CMD, SDIO_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control 4 from the SD_CD of I/O interface 1, SDIO_CMD/RXD, SDIO_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO automatically;S23 is when the detection signal inserting storage card is insert without storage card, and when electronic product is in UART debugging mode, RXD and TXD is selected to connect by multiplexing selector 2 with UART controller 32;When electronic product is in JTAG debugging mode, TCK, TMS, TDI and TDO are selected to connect by multiplexing selector 2 with jtag controller 31;S30, by selecting the I/O interface 1 connected with debugging control device 3, debugs described electronic product。
Fig. 3 is the schematic flow sheet of the adjustment method of a kind of electronic product of the present invention, introduces the workflow of the present invention below in conjunction with Fig. 3。
100 start;
101 judge whether electronic product is in normal operating condition;
When electronic product is in normal operating condition, perform step 102;When electronic product is not at normal operating condition, perform step 103;
I/O interface 1 is selected to connect by 102 multiplexing selectores 2 with storage control 4;
103 judge whether electronic product is in debugging mode;When electronic product is in debugging mode, perform step 104;When electronic product is not at debugging mode, perform step 105;
I/O interface 1 is selected to connect by 104 multiplexing selectores 2 with debugging control device 3;
105 electronic products are in self reusing state, obtain the detection signal inserting storage card;
106 judge the detection signal inserting storage card;When the detection signal of insertion storage card is for there being storage card to insert, perform step 107;When the detection signal inserting storage card is insert without storage card, perform step 108;
107 multiplexing selectores 2 automatically select and connect with storage control 4;
108 multiplexing selectores 2 automatically select and connect with debugging control device 3。
Fig. 4 is the structured flowchart of a kind of electronic product applying adjustment method of the present invention;As shown in Figure 4, a kind of electronic product applying above-mentioned adjustment method, including: the multiplexing selector 2 that I/O interface 1 electrically connects with I/O interface 1, the storage control 4 electrically connected with multiplexing selector 2 respectively and debugging control device 3。
Fig. 5 is the structured flowchart of another electronic product applying adjustment method of the present invention, as shown in Figure 5, a kind of debugging apparatus of electronic product, including: the multiplexing selector 2 that I/O interface 1 electrically connects with I/O interface 1, the storage control 4 electrically connected with multiplexing selector 2 respectively and debugging control device 3;Described debugging control device 3 includes the UART controller 32 and the jtag controller 31 that electrically connect respectively with multiplexing selector 2;Wherein, described multiplexing selector 2 is for when electronic product is in UART debugging mode, selecting to connect with UART controller 32 by I/O interface 1;Described multiplexing selector 2 is additionally operable to, when electronic product is in JTAG debugging mode, select to connect with jtag controller 31 by I/O interface 1。
Above-described embodiment is improved, obtains preferred embodiment, the debugging apparatus of a kind of electronic product, including: the multiplexing selector 2 that I/O interface 1 electrically connects with I/O interface 1, the storage control 4 electrically connected with multiplexing selector 2 respectively and debugging control device 3;Described debugging control device 3 includes the UART controller 32 and the jtag controller 31 that electrically connect respectively with multiplexing selector 2;Wherein, described multiplexing selector 2 is for when electronic product is in UART debugging mode, selecting to connect with UART controller 32 by I/O interface 1;Described multiplexing selector 2 is additionally operable to, when electronic product is in JTAG debugging mode, select to connect with jtag controller 31 by I/O interface 1;CPU core 5;Described CPU core 5 electrically connects with described storage control 4, described UART controller 32 and jtag controller 31 respectively, to transmit storage data, UART data and JTAG data;Described CPU core 5 also electrically connects with described multiplexing selector 2, is used for controlling described multiplexing selector 2, arranges electronic product and is in normal operating condition, is in debugging mode or is in self reusing state。
Concrete, the debugging control device 3 of the present invention includes jtag controller 31 and UART controller 32。
JTAG (JointTestActionGroup, joint test working group) it is a kind of international standard test protocol (IEEE1149.1 is compatible), it is mainly used in the Debugging work of all too many levels such as chip internal test, software on-line debugging, software download online。Now most high-grade device all supports JTAG protocol, such as DSP, FPGA device etc.。The JTAG model of standard be divided into two parts, a part be chip internal definition jtag controller 31 model and I/O (InputOutput, input/output) module。The jtag interface of standard is 4 lines: TMS, TCK, TDI, TDO, respectively model selection, clock, data input and DOL Data Output Line。
Parallel input and output are converted to the chip of Serial output input by universal asynchronous receiving-transmitting transmitter (UniversalAsynchronousReceiver/Transmitter, UART), in embedded development field, are debug the interface equipment that terminal is conventional。UART comprises 9 pins, it is once that data carrier detects DCD, reception data RXD, transmission data TXD, data terminal preparation DTR, signal ground GND, DSR DSR, asks transmission RTS, clear to send CTS, ring to indicate RI, as long as because Serial Port Transmission data have reception data pins and transmission stitch can be achieved with, so in actual use methods of attachment (receive data RXD, send data TXD and signal ground GND) using three-wire system, not only save I/O port but also decrease the cabling complexity in debugging process more。
Storage control 4 (being also MMC controller, SDIO controller, different platform call is not quite identical), it is responsible for response data read-write data storage request, produce the digital signal logics such as corresponding SD, SDIO, SPI, and the Digital Logic that storage control 4 produces is exported to chip exterior and is connected with corresponding external memory draw-in groove by the I/O interface 1 passing through chip, such as TF draw-in groove, CF draw-in groove, SD draw-in groove, mmc card grooves etc., for connecting the external memory card of correspondence。
By analyzing jtag controller 31, UART controller 32 and storage control 4, three is in the quantity of I/O and functionally possesses the potentiality of multiplexing, by reasonably arranging the use logic of I/O interface 1, realize jtag controller 31, UART controller 32 and the storage control 4 multiplexing to I/O interface 1, it is achieved under different conditions, show the interface features of correspondence。
Above-described embodiment is improved, obtain preferred embodiment, as it is shown in figure 5, the debugging apparatus of a kind of electronic product, including: the multiplexing selector 2 that I/O interface 1 electrically connects with I/O interface 1, the storage control 4 electrically connected with multiplexing selector 2 respectively and debugging control device 3;Described debugging control device 3 includes the UART controller 32 and the jtag controller 31 that electrically connect respectively with multiplexing selector 2;Wherein, described multiplexing selector 2 is for when electronic product is in UART debugging mode, selecting to connect with UART controller 32 by I/O interface 1;Described multiplexing selector 2 is additionally operable to, when electronic product is in JTAG debugging mode, select to connect with jtag controller 31 by I/O interface 1;CPU core 5;Described CPU core 5 electrically connects with described storage control 4, described UART controller 32 and jtag controller 31 respectively, to transmit storage data, UART data and JTAG data;Described CPU core 5 also electrically connects with described multiplexing selector 2, is used for controlling described multiplexing selector 2, arranges electronic product and is in normal operating condition, is in debugging mode or is in self reusing state。
Concrete, in the present invention, the multiplexing function of multiplexing selector 2 can be locked by CPU core 5 by software arrangements, the safety of increase system, namely when the software arrangements of multiplexing selector 2 is arranged to external memory pattern by CPU core 5, namely, when electronic product is normal operating condition, now I/O interface 1 only is selected to connect by multiplexing selector 2 with storage control 4;When the software arrangements of multiplexing selector 2 is arranged to debugging mode by CPU core 5, and namely electronic product is debugging mode, now I/O interface 1 only is selected to connect by multiplexing selector 2 with debugging control device 3。CPU core 5 can also be without enabling the software arrangements of multiplexing selector 2, and now electronic product is in self reusing state。
Fig. 6 is the structural representation of the test chart of a kind of electronic product of the present invention, as shown in Figure 6, in figure, a is that UART connects interface, b is that JTAG connects interface, c is imitative storage card connecting terminal, a kind of and above-mentioned matching used test chart of electronic product, and described test chart is imitative storage card profile, including: imitative storage card connecting terminal c, the UART electrically connected with described connecting terminal are connected interface a and/or JTAG and connect interface b;Wherein said test chart detects, with inserting of storage card, the position that position is corresponding, is straight or recessed shape。
In external memory card slot mechanical mechanism, draw-in groove CD card detection pin is elastic spring detection structure, draw-in groove CD card detection pin can along with card into and out, present different level signals (if idle condition level is 1, insert state level is 0), this characteristic can as the identification signal of current operation mode, (test chart inserting after draw-in groove by chip internal, draw-in groove CD card detection pin still remains 0), after chip reads this I/O pin status, the peripheral hardware type of connection can be distinguished, and I/O interface 1 is connected to respective stored controller 4 or jtag controller 31 and UART controller 32 by the multiplexing functions selector 2 using chip internal。
The present invention has customized the test chart for inputting detection signal according to this device, test chart is made up of external memory card interface two parts of JTAG physical interface and customization, JTAG physical interface can use the JTAG socket of special JTAG socket or customization, for connecting the JTAG level logic that JTAG emulator produces, it is connected to the external memory card interface of customization by the change-over circuit on test chart。The physical arrangement triggering external memory card slot, by the model with reference to existing external storage card, is modified by the external memory card interface of customization, accomplishes to connect the signal of telecommunication of necessity, will not trigger again the CD card detection signal of external memory card slot。
When CPU core 5 does not enable the software arrangements of multiplexing selector 2 in the present invention, now electronic product is in self reusing state。Electronic product is when being not inserted into above-mentioned test chart, and I/O interface 1 is used as normal external storage and is used by electronic product acquiescence, it is possible to all kinds of external memory cards of normal identification。When electronic product inserts above-mentioned test chart, the detection signal got is for inserting without storage card, then I/O interface 1 is used as JTAG and UART interface use by electronic product, by the JTAG emulator and the UART instrument that connect specialty, equipment just can be debugged and safeguard by research and development and attendant easily。
In the present invention, jtag controller 31 is for connecting into daisy chain by each assembly internal for electronic product, it is provided that electronic product close beta, the Debugging work of all too many levels such as software download online debugging。UART controller 32 carries out bi-directional conversion for UART equipment read-write requests and the Digital Logic initiated by processor。Storage control 4 carries out bi-directional conversion for storage device read-write requests and the Digital Logic initiated by processor。Multiplexing selector 2 is for according to configuration information, producing equipment multiplexing logical, selectively allow the Digital Logic of multiple equipment to pass through, such as jtag controller 31, UART controller 32, storage control 4。Digital Logic after multiplex controller 2 gating and chip exterior pin are attached by I/O interface 1, change between digital signal logic and I/O level。
It should be noted that, above-described embodiment all can independent assortment as required。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. the adjustment method of an electronic product, it is characterised in that including:
S10 judges whether electronic product is in normal operating condition;When electronic product is in normal operating condition, I/O interface is selected to connect by multiplexing selector with storage control;
S20 is when electronic product is not at normal operating condition, it is judged that whether electronic product is in debugging mode;When electronic product is in debugging mode, I/O interface is selected to connect by multiplexing selector with debugging control device;
S30, by selecting the I/O interface connected with debugging control device, debugs described electronic product。
2. the adjustment method of a kind of electronic product as claimed in claim 1, it is characterised in that also include:
S21 is when electronic product is not at debugging mode, then electronic product is in self reusing state, obtains the detection signal inserting storage card;
S22 is when the detection signal of insertion storage card is for there being storage card to insert, and multiplexing selector automatically selects and connects with storage control;
S23 is when the detection signal inserting storage card is insert without storage card, and multiplexing selector automatically selects and connects with debugging control device。
3. the adjustment method of a kind of electronic product as claimed in claim 2, it is characterised in that wherein: the detection signal inserting storage card refers to: the detection signal of the SD_CD that I/O interface connects;When having the low level that detection signal is SD_CD that storage card inserts, without storage card insert when detecting the high level that signal is SD_CD。
4. the adjustment method of a kind of electronic product as described in claim 1-3 any claim, it is characterised in that wherein I/O interface is selected to connect to refer to by multiplexing selector with storage control:
Multiplexing selector will select to connect with SD_CD, SDI/O_CMD, SDI/O_CLK, SD_D3, SD_D2, SD_D1 and SD_D0 of storage control from the SD_CD of I/O interface, SDI/O_CMD/RXD, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO。
5. the adjustment method of a kind of electronic product as described in claim 1-3 any claim, it is characterised in that wherein I/O interface is selected to connect to refer to by multiplexing selector with debugging control device:
Multiplexing selector will select to connect with RXD, TXD, TCK, TMS, TDI and TDO of debugging control device from the SDI/O_CMD/RXD of I/O interface, SDI/O_CLK/TXD, SD_D3/TCK, SD_D2/TMS, SD_D1/TDI and SD_D0/TDO。
6. the adjustment method of a kind of electronic product as claimed in claim 5, it is characterised in that
When electronic product is in UART debugging mode, RXD and TXD is selected to connect by multiplexing selector with UART controller;When electronic product is in JTAG debugging mode, TCK, TMS, TDI and TDO are selected to connect by multiplexing selector with jtag controller。
7. apply the electronic product of adjustment method described in claim 1-5 any claim for one kind, it is characterised in that including: the multiplexing selector that I/O interface electrically connects, the storage control electrically connected with multiplexing selector respectively and debugging control device with I/O interface。
8. electronic product as claimed in claim 7, it is characterised in that:
Described debugging control device includes the UART controller and the jtag controller that electrically connect respectively with multiplexing selector;Wherein,
Described multiplexing selector is for when electronic product is in UART debugging mode, selecting to connect with UART controller by I/O interface;
Described multiplexing selector is additionally operable to when electronic product is in JTAG debugging mode, selects to connect with jtag controller by I/O interface。
9. electronic product as claimed in claim 8, it is characterised in that also include CPU core;Described CPU core electrically connects with described storage control, described UART controller and jtag controller respectively, to transmit storage data, UART data and JTAG data;Described CPU core also electrically connects with described multiplexing selector, is used for controlling described multiplexing selector, arranges electronic product and is in normal operating condition, is in debugging mode or is in self reusing state。
10. one kind with claim 7-9 any claim described in the matching used test chart of electronic product, it is characterized in that, described test chart is imitative storage card profile, including: imitative storage card connecting terminal, the UART electrically connected with described connecting terminal is connected interface and/or JTAG connects interface;Wherein said test chart detects, with inserting of storage card, the position that position is corresponding, is straight or recessed shape。
CN201511030473.7A 2015-12-31 2015-12-31 Debugging method, electronic product applying debugging method and debugging card Pending CN105701011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511030473.7A CN105701011A (en) 2015-12-31 2015-12-31 Debugging method, electronic product applying debugging method and debugging card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511030473.7A CN105701011A (en) 2015-12-31 2015-12-31 Debugging method, electronic product applying debugging method and debugging card

Publications (1)

Publication Number Publication Date
CN105701011A true CN105701011A (en) 2016-06-22

Family

ID=56226775

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511030473.7A Pending CN105701011A (en) 2015-12-31 2015-12-31 Debugging method, electronic product applying debugging method and debugging card

Country Status (1)

Country Link
CN (1) CN105701011A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885685A (en) * 2017-11-29 2018-04-06 英业达科技有限公司 Server system
CN110888046A (en) * 2019-11-25 2020-03-17 展讯通信(上海)有限公司 System-on-chip and test method, storage medium and terminal thereof
CN111124962A (en) * 2019-11-13 2020-05-08 苏州浪潮智能科技有限公司 TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller)
CN113806152A (en) * 2021-09-14 2021-12-17 合肥联宝信息技术有限公司 Fault diagnosis card and equipment
WO2021253805A1 (en) * 2020-06-17 2021-12-23 上海创功通讯技术有限公司 Detection assistance circuit, apparatus, motherboard, and terminal device
CN113868070A (en) * 2021-09-23 2021-12-31 山东云海国创云计算装备产业创新中心有限公司 Debugging method, system, storage medium and equipment for SD card controller

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201780572U (en) * 2010-07-29 2011-03-30 比亚迪股份有限公司 Debugging circuit board
CN102289419A (en) * 2010-06-17 2011-12-21 珠海全志科技有限公司 Multiplex SOC(system on a chip) integrated circuit for functional interface and debugging interface
CN102750243A (en) * 2012-07-05 2012-10-24 中颖电子股份有限公司 Easily-debugged embedded system of complex SD (secure digital) interface
CN103136138A (en) * 2011-11-24 2013-06-05 炬力集成电路设计有限公司 Chip, chip debugging method and communication method for chip and external devices
JP2015174410A (en) * 2014-03-18 2015-10-05 株式会社リコー Electronic device and image forming device
CN105095041A (en) * 2015-09-08 2015-11-25 福州瑞芯微电子股份有限公司 Chip debugging method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102289419A (en) * 2010-06-17 2011-12-21 珠海全志科技有限公司 Multiplex SOC(system on a chip) integrated circuit for functional interface and debugging interface
CN201780572U (en) * 2010-07-29 2011-03-30 比亚迪股份有限公司 Debugging circuit board
CN103136138A (en) * 2011-11-24 2013-06-05 炬力集成电路设计有限公司 Chip, chip debugging method and communication method for chip and external devices
CN102750243A (en) * 2012-07-05 2012-10-24 中颖电子股份有限公司 Easily-debugged embedded system of complex SD (secure digital) interface
JP2015174410A (en) * 2014-03-18 2015-10-05 株式会社リコー Electronic device and image forming device
CN105095041A (en) * 2015-09-08 2015-11-25 福州瑞芯微电子股份有限公司 Chip debugging method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107885685A (en) * 2017-11-29 2018-04-06 英业达科技有限公司 Server system
CN111124962A (en) * 2019-11-13 2020-05-08 苏州浪潮智能科技有限公司 TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller)
CN111124962B (en) * 2019-11-13 2021-06-29 苏州浪潮智能科技有限公司 TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller)
CN110888046A (en) * 2019-11-25 2020-03-17 展讯通信(上海)有限公司 System-on-chip and test method, storage medium and terminal thereof
WO2021253805A1 (en) * 2020-06-17 2021-12-23 上海创功通讯技术有限公司 Detection assistance circuit, apparatus, motherboard, and terminal device
CN113806152A (en) * 2021-09-14 2021-12-17 合肥联宝信息技术有限公司 Fault diagnosis card and equipment
CN113806152B (en) * 2021-09-14 2024-04-19 合肥联宝信息技术有限公司 Fault diagnosis card and equipment
CN113868070A (en) * 2021-09-23 2021-12-31 山东云海国创云计算装备产业创新中心有限公司 Debugging method, system, storage medium and equipment for SD card controller
CN113868070B (en) * 2021-09-23 2023-08-25 山东云海国创云计算装备产业创新中心有限公司 SD card controller debugging method, system, storage medium and device

Similar Documents

Publication Publication Date Title
CN105701011A (en) Debugging method, electronic product applying debugging method and debugging card
CN103136138B (en) Chip, chip debugging method and communication method for chip and external devices
US8140900B2 (en) Establishing a connection between a testing and/or debugging interface and a connector
CN102542110B (en) Emulation verification method applied to mobile storage SOC (system on chip) chip
CN102147781A (en) Motherboard compatible with multiple versions of universal serial bus (usb) and related method
CN103226506B (en) Chip-embedded USB to JTAG debugging device and debugging method
CN102401879B (en) The method of testing of the USB function of chip, Test Host and test macro
CN102750243B (en) Easily-debugged embedded system of complex SD (secure digital) interface
CN102289419A (en) Multiplex SOC(system on a chip) integrated circuit for functional interface and debugging interface
CN108475227A (en) Test functional component and data debugging method
CN104407882B (en) A kind of board card device
CN101276304A (en) PCIE test card
CN106776183B (en) Debugging circuit, debugging device, modulation system and electronic equipment
CN109490760A (en) A kind of apparatus for testing chip, system and method
CN106649021A (en) Testing device for PCIe slave device
CN103376340A (en) Adapter plate, a multi-platform serial test system and method
CN101950265B (en) Method for CPU board card program downloading and hardware online detection and plug-in connector
CN203250308U (en) USB JTAG conversion debugging device internally embedded in chip
CN112799985A (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN109995425B (en) Method for testing communication port of equipment and tool device
CN101329648B (en) Contact smart card emulator capable of debugging ATR
CN112486877B (en) Outfield guarantee and test platform of generalized FC conversion interface module
CN106406154B (en) debugging system and control method thereof
CN100401084C (en) Inserted card tester
CN210895420U (en) CPU low-speed interface function automatic checkout device based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160622

WD01 Invention patent application deemed withdrawn after publication