CN105224431A - The adjustment method of the multiplexing SD interface of a kind of embedded chip - Google Patents

The adjustment method of the multiplexing SD interface of a kind of embedded chip Download PDF

Info

Publication number
CN105224431A
CN105224431A CN201510565741.9A CN201510565741A CN105224431A CN 105224431 A CN105224431 A CN 105224431A CN 201510565741 A CN201510565741 A CN 201510565741A CN 105224431 A CN105224431 A CN 105224431A
Authority
CN
China
Prior art keywords
card
embedded chip
cpu
debugging
interface
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
CN201510565741.9A
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.)
Fuzhou Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201510565741.9A priority Critical patent/CN105224431A/en
Publication of CN105224431A publication Critical patent/CN105224431A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides the adjustment method of the multiplexing SD interface of a kind of embedded chip, inner 6 IO using the clock cable of SD card interface, order wire and four data lines as three kinds of debugging interfaces are multiplexing for embedded chip; There is a wireless module comprising microprocessor embedded chip inside; When SD card inserts, SD drives and 6 IO is all switched to SD card function pin, when CPU needs debugging extremely, then need to extract SD card, connect debugging interface, then connect the wireless module of the embedded chip inside of this CPU exception with an other mobile device, send special debug command by wireless connections to described wireless module at this other mobile device end after having connected, described 6 IO are all switched to three kinds of debugging interfaces; When SD card is extracted, SD drives the IO function 6 IO all being switched to three kinds of debugging interfaces; The present invention had both saved plate level resource, can effectively debug again.

Description

The adjustment method of the multiplexing SD interface of a kind of embedded chip
Technical field
The present invention relates to the debugging wireless switching method of the multiplexing SD interface of a kind of embedded chip.
Background technology
Existing embedded device debugging relies on serial ports and some conventional hardware toolses, such as JTAG (JointTestActionGroup, joint test behavior tissue) or other TRACE (trace debug device) instrument.First this needs embedded chip to these interfaces reserved IO specially on pin, the difficulty of increase chip package.Secondly if machine product needs these debugging interfaces, will make fabric swatch increase load, and structural member is put and the thickness requirement of finished product higher, therefore complete machine is not generally reserved.But run in bursting problem needs to debug on a lot of production line, often because the fabric swatch of complete machine these interfaces reserved, cause can not adding temporarily, and cannot debug.Consider so the present invention is based on this, design a kind of adjustment method and system of multiplexing SD interface, solve these problems.
Summary of the invention
The technical problem to be solved in the present invention, is the adjustment method providing the multiplexing SD interface of a kind of embedded chip, effectively saves plate level resource, can effectively debug again.
The present invention is achieved in that the adjustment method of the multiplexing SD interface of a kind of embedded chip, and the SD card interface of embedded chip is provided with clock cable, order wire, four data lines and a card and detects pin signal wire; Inner 6 IO using described clock cable, order wire and four data lines as three kinds of debugging interfaces are multiplexing for embedded chip; And there is a wireless module embedded chip inside, wireless module comprises a microprocessor to run radio protocol stack and some radio-frequency devices;
(1), in SD card insertion situation, SD drives and reads card that SD controller recognizes to detect pin be low, judges the insertion of SD card, described 6 IO are all switched to SD card function pin; Afterwards when CPU needs debugging extremely, then need to extract SD card, connect debugging interface, then the wireless module of the embedded chip inside of this CPU exception is connected with an other mobile device, after having connected this other mobile device end by wireless module from wireless connections to the embedded chip inside of this CPU exception send debug command, after the wireless module of the embedded chip inside of this CPU exception receives these debug commands, described 6 IO are all switched to three kinds of debugging interfaces and uses;
(2), under situation extracted by SD card, SD drives and reads card that SD controller recognizes detection pin for high, judges that SD card is extracted, described 6 IO is all switched to the IO function of three kinds of debugging interfaces; Afterwards when CPU is abnormal, because 6 IO all switch to three kinds of debugging interface functions, just can directly debug.
Further, in described (1), after SD card inserts draw-in groove, the detection pin of SD draw-in groove can produce the potential change of a negative edge, now SD controller can by this plug-in card event notice to CPU, and run SD card driver by CPU and complete initialization to SD card, initialization procedure includes the function corresponding IO in I/O cell being switched to SD card, make the clock of SD controller, order and data can stick into Serial Communication by these 6 IO and SD.
Further, in described (2), after draw-in groove extracted by SD card, the detection pin of SD draw-in groove can produce the potential change of a rising edge, and now this can be pulled out card event notice to CPU by SD controller, runs SD card driver complete anti-initialization to SD card by CPU, anti-initialization procedure includes and is divided into groups between two by the corresponding IO in I/O cell, switch to three kinds of debugging interface functions, then draw these interfaces from SD draw-in groove fly line, just can debug from outside.
Tool of the present invention has the following advantages: the present invention is by the debugging wireless switching method of a kind of multiplexing SD interface of design, realize the debugging of embedded device, on pin, give interface reserved IO specially without the need to embedded chip, effectively save plate level resource, can effectively debug again.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the structured flowchart of the conventional card inserting-in mode of the inventive method.
Fig. 2 is the structured flowchart of the inventive method plug SD mode card.
Fig. 3 is the handoff procedure schematic diagram under the inventive method CPU exception.
Embodiment
As shown in Figure 1 to Figure 3, embedded chip of the present invention multiplexing SD interface debugging wireless switching method, the SD card interface of embedded chip is provided with clock cable, order wire, four data lines and a card and detects pin signal wire; Inner 6 IO using described clock cable, order wire and four data lines as three kinds of debugging interfaces are multiplexing for embedded chip, the clock IO in these 6 IO and figure, order IO, data line IO 0~ IO 3; And there is a wireless module embedded chip inside, for the network connecting function that this embedded device is daily, wireless module comprises a microprocessor (MCU) and runs radio protocol stack and some radio-frequency devices;
(1), in SD card insertion situation, SD drives and reads card that SD controller recognizes to detect pin be low, judges the insertion of SD card, described 6 IO are all switched to SD card function pin, afterwards when CPU needs debugging extremely, then need to extract SD card, connect debugging interface, now cause SD to drive because CPU is abnormal and cannot run (driving code to be that CPU performs), although now SD card has been extracted, but 6 IO cannot be switched to debugging interface function, therefore, the present invention is the wireless module connecting the embedded chip inside of this CPU exception with an other mobile device, this connection can be that bluetooth connects, or the P2P of wifi connects, but the invention is not restricted to these two kinds, post debugging personnel are connected at this other mobile device end by the wireless module transmission debug command of wireless connections to the embedded chip inside of this CPU exception, this debug command can be the self-defining debug command of producer, after the wireless module of the embedded chip inside of this CPU exception receives these debug commands, described 6 IO are all switched to three kinds of debugging interfaces use,
After SD card inserts draw-in groove, the detection pin of SD draw-in groove can produce the potential change of a negative edge, now SD controller can by this plug-in card event notice to CPU, run SD card driver by CPU and complete initialization to SD card, initialization procedure includes the function corresponding IO in I/O cell being switched to SD card, make the clock of SD controller, order and data can stick into Serial Communication by these 6 IO and SD.
(2), under situation extracted by SD card, SD drives and reads card that SD controller recognizes detection pin for high, judges that SD card is extracted, described 6 IO is all switched to the IO function of three kinds of debugging interfaces; Afterwards when CPU is abnormal, because 6 IO all switch to three kinds of debugging interface functions, just can directly debug.
After draw-in groove extracted by SD card, the detection pin of SD draw-in groove can produce the potential change of a rising edge, now this can be pulled out card event notice to CPU by SD controller, run SD card driver by CPU and complete anti-initialization to SD card, anti-initialization procedure includes and is divided into groups between two by the corresponding IO in I/O cell, switch to three kinds of debugging interface functions, then draw these interfaces from SD draw-in groove fly line, just can debug from outside.
That is, when CPU is abnormal, as shown in Figure 3:
(1) if now SD card is not in draw-in groove, according to design before this, corresponding IO has been switched to three kinds of debugging interface functions, can directly debug.
(2) if now SD card is still inner at draw-in groove, although the interruption of a rising edge can be triggered after extracting SD card, SD controller still can notify CPU, but CPU is abnormal, cannot responds and call SD card driver and complete debugging interface function is switched to the unloading of SD card and IO.
The present invention is a wireless module (an inner integrated microprocessor is for running protocol stack and communication interaction) in embedded chip inner band, its purposes at ordinary times provides radio communication function (such as wifi, bluetooth etc.) to embedded device. when chip CPU is abnormal, commissioning staff utilizes the wireless module of an other mobile device, is connected with the wireless module of the embedded chip inside of CPU exception.After having connected, commissioning staff utilizes the wireless module of mobile device, wireless module to the embedded chip inside of this CPU exception sends special debug command, after the wireless module of the embedded chip inside of this CPU exception receives this debug command, its microprocessor performs the operation corresponding for SD card interface IO being switched to three kinds of debugging interfaces.
In addition, in Fig. 2, SD controller is the physical logic units of SD data card communication, sends SD protocol formatted data to SD card for host computer.Serial ports controller be host computer for generation of and send the instruction of specific protocol form, this instruction for meeting UART form, so also can universal asynchronous receiving-transmitting transmitter be referred to as.Pin selection unit is used for the I/O pin of managing I/O unit, and outputs to different I/O pin for switching difference in functionality.
To sum up, the present invention, by the adjustment method of a kind of multiplexing SD interface of design, realizes the debugging of embedded device, gives interface reserved IO specially, effectively save plate level resource, can effectively debug again without the need to embedded chip on pin.
Although the foregoing describe the specific embodiment of the present invention; but be familiar with those skilled in the art to be to be understood that; specific embodiment described by us is illustrative; instead of for the restriction to scope of the present invention; those of ordinary skill in the art, in the modification of the equivalence done according to spirit of the present invention and change, should be encompassed in scope that claim of the present invention protects.

Claims (3)

1. an adjustment method for the multiplexing SD interface of embedded chip, is characterized in that:
The SD card interface of embedded chip is provided with clock cable, order wire, four data lines and a card and detects pin signal wire; Inner 6 IO using described clock cable, order wire and four data lines as three kinds of debugging interfaces are multiplexing for embedded chip; And there is a wireless module embedded chip inside, wireless module comprises a microprocessor to run radio protocol stack and some radio-frequency devices;
(1), in SD card insertion situation, SD drives and reads card that SD controller recognizes to detect pin be low, judges the insertion of SD card, described 6 IO are all switched to SD card function pin; Afterwards when CPU needs debugging extremely, then need to extract SD card, connect debugging interface, then the wireless module of the embedded chip inside of this CPU exception is connected with an other mobile device, after having connected this other mobile device end by wireless module from wireless connections to the embedded chip inside of this CPU exception send debug command, after the wireless module of the embedded chip inside of this CPU exception receives these debug commands, described 6 IO are all switched to three kinds of debugging interfaces and uses;
(2), under situation extracted by SD card, SD drives and reads card that SD controller recognizes detection pin for high, judges that SD card is extracted, described 6 IO is all switched to the IO function of three kinds of debugging interfaces; Afterwards when CPU is abnormal, because 6 IO all switch to three kinds of debugging interface functions, just can directly debug.
2. the adjustment method of the multiplexing SD interface of a kind of embedded chip according to claim 1, it is characterized in that: in described (1), after SD card inserts draw-in groove, the detection pin of SD draw-in groove can produce the potential change of a negative edge, now SD controller can by this plug-in card event notice to CPU, run SD card driver by CPU and complete initialization to SD card, initialization procedure includes the function corresponding IO in I/O cell being switched to SD card, make the clock of SD controller, order and data can stick into Serial Communication by these 6 IO and SD.
3. the adjustment method of the multiplexing SD interface of a kind of embedded chip according to claim 1, it is characterized in that: in described (2), after draw-in groove extracted by SD card, the detection pin of SD draw-in groove can produce the potential change of a rising edge, now this can be pulled out card event notice to CPU by SD controller, run SD card driver by CPU and complete anti-initialization to SD card, anti-initialization procedure includes and is divided into groups between two by the corresponding IO in I/O cell, switch to three kinds of debugging interface functions, draw these interfaces from SD draw-in groove fly line again, just can debug from outside.
CN201510565741.9A 2015-09-08 2015-09-08 The adjustment method of the multiplexing SD interface of a kind of embedded chip Pending CN105224431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510565741.9A CN105224431A (en) 2015-09-08 2015-09-08 The adjustment method of the multiplexing SD interface of a kind of embedded chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510565741.9A CN105224431A (en) 2015-09-08 2015-09-08 The adjustment method of the multiplexing SD interface of a kind of embedded chip

Publications (1)

Publication Number Publication Date
CN105224431A true CN105224431A (en) 2016-01-06

Family

ID=54993418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510565741.9A Pending CN105224431A (en) 2015-09-08 2015-09-08 The adjustment method of the multiplexing SD interface of a kind of embedded chip

Country Status (1)

Country Link
CN (1) CN105224431A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579460A (en) * 2020-12-24 2021-03-30 中国航空工业集团公司西安航空计算技术研究所 Multi-level debugging method based on multi-core embedded system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1326172B1 (en) * 2001-12-28 2009-09-30 Texas Instruments Incorporated Communication Method and Apparatus for Assigning Device Identifier
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
CN103269291A (en) * 2013-04-19 2013-08-28 福州瑞芯微电子有限公司 ADB debugging method by utilizing point-to-point radio frequency equipment on android platform
CN103293466A (en) * 2013-06-25 2013-09-11 福州瑞芯微电子有限公司 Method and system for testing communication module on embedded printed circuit board assembly (PCBA)
CN103810068A (en) * 2014-03-11 2014-05-21 福州瑞芯微电子有限公司 SD card slot based debugging equipment, system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1326172B1 (en) * 2001-12-28 2009-09-30 Texas Instruments Incorporated Communication Method and Apparatus for Assigning Device Identifier
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
CN103269291A (en) * 2013-04-19 2013-08-28 福州瑞芯微电子有限公司 ADB debugging method by utilizing point-to-point radio frequency equipment on android platform
CN103293466A (en) * 2013-06-25 2013-09-11 福州瑞芯微电子有限公司 Method and system for testing communication module on embedded printed circuit board assembly (PCBA)
CN103810068A (en) * 2014-03-11 2014-05-21 福州瑞芯微电子有限公司 SD card slot based debugging equipment, system and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579460A (en) * 2020-12-24 2021-03-30 中国航空工业集团公司西安航空计算技术研究所 Multi-level debugging method based on multi-core embedded system
CN112579460B (en) * 2020-12-24 2023-04-14 中国航空工业集团公司西安航空计算技术研究所 Multi-level debugging method based on multi-core embedded system

Similar Documents

Publication Publication Date Title
TWI628545B (en) A computing device, a universal serial bus port, and a method of operating a universal serial bus
KR101725536B1 (en) Device, method and system for operation of a low power phy with a pcie protocol stack
US9934187B2 (en) Hot-pluggable computing system
CN104008008B (en) A kind of method of multiplexing debugging serial ports in linux system
EP2587385B1 (en) Usb key device and method for realizing intelligent card communication using usb interface
CN103136138A (en) Chip, chip debugging method and communication method for chip and external devices
CN108111382B (en) Communication device based on I3C bus and communication method thereof
CN108475227A (en) Test functional component and data debugging method
CN105095041A (en) Chip debugging method
CN104133533A (en) Expansion board card system for supporting full-length PCIE
WO2014004916A1 (en) Device connect detection
CN105891764A (en) Watt-hour meter data intelligent reading-writing device and watt-hour meter data intelligent reading-writing method based on Bluetooth communication
CN103294626A (en) Design of USB dual-mode interface equipment for UART acquisition terminal
CN104750226A (en) USB (universal serial bus) OTG (on-the-go) pattern recognition system and USB OTG pattern recognition method
CN103778092A (en) USB and SD interface multiplex circuit and multiplex method
CN203444464U (en) Intelligent terminal device
CN208141371U (en) A kind of multi-functional UART debugging board
CN101339542A (en) Data transmission device, control circuit chip and operation mode control method
CN105224431A (en) The adjustment method of the multiplexing SD interface of a kind of embedded chip
CN203658990U (en) Debugging device for central processing unit
CN109308124A (en) The adaptive KVM switcher of mouse-keyboard
CN102385563A (en) USB (universal serial bus) port reading and writing device and method of 1-wire bus
CN103810068A (en) SD card slot based debugging equipment, system and method
US9547615B2 (en) Peripheral protocol negotiation
CN103218278B (en) Automatic detection and control device and automatic detection control method thereof

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160106