CN109344022A - The multi-functional downloading debugging apparatus of one kind and adjustment method - Google Patents

The multi-functional downloading debugging apparatus of one kind and adjustment method Download PDF

Info

Publication number
CN109344022A
CN109344022A CN201810808111.3A CN201810808111A CN109344022A CN 109344022 A CN109344022 A CN 109344022A CN 201810808111 A CN201810808111 A CN 201810808111A CN 109344022 A CN109344022 A CN 109344022A
Authority
CN
China
Prior art keywords
interface
downloading
microcontroller
debugging
usb
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
CN201810808111.3A
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.)
Guangzhou Xingyi Electronic Technology Co Ltd
Original Assignee
Guangzhou Xingyi Electronic Technology 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 Guangzhou Xingyi Electronic Technology Co Ltd filed Critical Guangzhou Xingyi Electronic Technology Co Ltd
Priority to CN201810808111.3A priority Critical patent/CN109344022A/en
Publication of CN109344022A publication Critical patent/CN109344022A/en
Pending legal-status Critical Current

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/261Functional testing by simulating additional hardware, e.g. fault simulation
    • 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/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Abstract

The invention belongs to electronic technology fields, disclose the multi-functional downloading debugging apparatus of one kind and adjustment method.The downloading debugging apparatus includes USB interface and microcontroller, and the USB interface is connected with microcontroller implementation usb communication;The microcontroller connects LED interface, and is connected respectively with SWD interface, jtag interface and serial communication interface by ESD chip;The USB interface is connected by fuse with power interface, and power interface connects LED interface, microcontroller, ESD chip, SWD interface, jtag interface and serial communication interface.The downloading and debugging of the device of the invention support all Cortex kernel MCU of ARM;Support serial communication, and baud rate self-adapting adjusts;Debugging downloading is stablized, and firmware is not lost;It supports XP/WIN7/WIN8/WIN10 free drive to use, greatly facilitates developer, improve the development efficiency of developer.

Description

The multi-functional downloading debugging apparatus of one kind and adjustment method
Technical field
The invention belongs to electronic technology fields, and in particular to the multi-functional downloading debugging apparatus of one kind and adjustment method.
Background technique
Embedded Industry, developer develop MCU, and an essential tool is exactly to download debugger, debugging Device type is also very much, such as J-LINK emulator, ST-LINK emulator, GD-LINK emulator etc., and different emulators has Respective feature.J-LINK emulator, supports all ARM chips and Cortex core chip, but legal copy J-LINK emulator Be it is quite expensive, it is commonly also not cheap, be also easy to occur losing firmware and pirate problem;ST-LINK is ST company for oneself core One downloading debugger of piece design, such as its support Cortex M0 (STM32F0 series), Cortex M3 (STM32F1/ STM32F2 series) and the kernels such as Cortex M4 (STM32F4 series) chip, but need to install ST-LINK before use and drive Dynamic, some computers are bad to this driving compatibility, and emulator is caused not to be available;GD-LINK and ST-LINK are similar, are The debugger that GD company designs for oneself chip is equally also required to first pacify for supporting the chip of the various Cortex kernels of GD32 Fill driver.
Therefore the existing generally existing following problem of downloading debugger: driving must be installed before the downloading debugger use of part Program, some driver compatibility are bad, are difficult to install successfully;Part downloader is unstable, is easy to lose firmware;Tune also Examination device has a single function, and is only used for oneself chip of downloading debugging, and when downloading debugging, cannot execute other functions.
Summary of the invention
In place of the above shortcoming and defect of the existing technology, the primary purpose of the present invention is that providing a kind of more function Debugging apparatus can be downloaded.Multi-functional downloading debugging apparatus of the invention supports downloading and the tune of all Cortex kernel MCU of ARM Examination;Support serial communication, and baud rate self-adapting adjusts;Debugging downloading is stablized, and firmware is not lost;Support XP/WIN7/WIN8/ WIN10 free drive uses, and greatly facilitates developer, improves the development efficiency of developer.
Another object of the present invention is to provide a kind of methods debugged using above-mentioned multi-functional downloading debugging apparatus.
The object of the invention is achieved through the following technical solutions:
A kind of multi-functional downloading debugging apparatus, including USB interface and microcontroller, the USB interface and microcontroller are real Existing usb communication connection;The microcontroller connects LED interface, and by ESD chip respectively with SWD interface, jtag interface and Serial communication interface is connected;The USB interface is connected by fuse with power interface, power interface connection LED interface, Microcontroller, ESD chip, SWD interface, jtag interface and serial communication interface.
Further, the microcontroller uses STM32F103C8T6.
Further, the ESD chip uses SRV05-4 chip.
A method of it is debugged, is included the following steps: using above-mentioned multi-functional downloading debugging apparatus
It is powered by fuse to device by USB interface, microcontroller connects SWD interface, jtag interface by ESD chip And serial communication interface, after SWD interface or jtag interface connect external MCU, microcontroller exempts to be drivingly connected by USB interface Computer, realizes downloading and debugging function to external MCU, and when downloading, LED interface indicates red light, indicates blue lamp after downloading, And when debugging, red indigo plant indicator light alternately flashes, and in addition serial communication interface connects external MCU, and microcontroller is also by USB interface Computer is connected, realizes the serial communication function of computer serial port debugging assistant and outside MCU, and communication baud rate adaptively adjusts.
The device of the invention and method have the following advantages that and the utility model has the advantages that
(1) the device of the invention and method support the downloading and debugging of all Cortex kernel MCU of ARM;
(2) the device of the invention and method support serial communication, and baud rate self-adapting adjusts;
(3) the device of the invention and method debugging downloading are stablized, and do not lose firmware;
(4) the device of the invention and method support XP/WIN7/WIN8/WIN10 free drive to use.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 2 is the usb circuit and power circuit diagram of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 3 is the filter circuit figure of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 4 is the LED light circuit diagram of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 5 is the esd protection circuit figure of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 6 is the governor circuit figure of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 7 is the JTAG debugging interface circuit diagram of multi-functional downloading debugging apparatus in the embodiment of the present invention.
Fig. 8 is the SWD interface circuit and virtual serial port interface circuit of multi-functional downloading debugging apparatus in the embodiment of the present invention Figure.
Specific embodiment
Present invention will now be described in further detail with reference to the embodiments and the accompanying drawings, but embodiments of the present invention are unlimited In this.
Embodiment
A kind of multi-functional downloading debugging apparatus of the present embodiment, structural schematic diagram are as shown in Figure 1.Including USB interface and Microcontroller, the USB interface are connected with microcontroller implementation usb communication;The microcontroller connects LED interface, and passes through ESD chip is connected with SWD interface, jtag interface and serial communication interface respectively;The USB interface passes through fuse and electricity Source interface is connected, and it is logical that power interface connects LED interface, microcontroller, ESD chip, SWD interface, jtag interface and serial ports Believe interface.
The method debugged using above-mentioned multi-functional downloading debugging apparatus is as follows:
It is powered by fuse to device by USB interface, microcontroller connects SWD interface, jtag interface by ESD chip And serial communication interface, after SWD interface or jtag interface connect external MCU, microcontroller exempts to be drivingly connected by USB interface Computer, realizes downloading and debugging function to external MCU, and when downloading, LED interface indicates red light, indicates blue lamp after downloading, And when debugging, red indigo plant indicator light alternately flashes, and in addition serial communication interface connects external MCU, and microcontroller is also by USB interface Computer is connected, realizes the serial communication function of computer serial port debugging assistant and outside MCU, and communication baud rate adaptively adjusts.
The fuse: it is automatic to disconnect when short circuit phenomenon occurs in device, protection is played to the power supply of whole device and is made With.
The power interface: output 3.3V DC power supply, respectively to LED interface, microcontroller, ESD chip, SWD interface, Jtag interface and serial communication interface provide power supply.
The microcontroller: using STM32F103C8T6, be the brain of whole device, is carried out by USB interface and computer Usb communication connects external interface by ESD chip by LED interface instruction device state.The ESD chip uses SRV05- 4 chips protect SWD interface, jtag interface and serial communication interface from electrostatic interference.
The SWD interface: 4 line interfaces, after connecting external MCU, microcontroller can be by USB interface by computer end journey Sequence downloads in MCU, and in downloading process, LED interface indicates red light, and blue lamp is indicated after the completion of downloading, and in debugging, according to tune The red blue lamp of examination state alternately flashes.
The jtag interface: 20 line interfaces, after connecting external MCU, microcontroller can be by USB interface by computer end Program downloads in MCU, and in downloading process, LED interface indicates red light, and blue lamp is indicated after the completion of downloading, and in debugging, according to Alternately flashing and SWD interface realize same function to the red blue lamp of debugging mode, only use more lines.
The serial communication interface: 4 line interfaces, after connecting external MCU, microcontroller can pass through USB interface and electricity The COM Debug Assistant at brain end carries out serial communication, and communication baud rate adaptively adjusts.
Fig. 2 is the usb circuit and power circuit of the multi-functional downloading debugging apparatus of the present embodiment, USB interface connection master It controls chip U1 and carries out usb communication, while USB inputs 5V power supply to power supply chip IC1 by fuse F1, IC1 chip is by steady Pressure exports 3.3V voltage and powers to whole device, and wherein F1 plays the role of overcurrent protection.
Fig. 3 is the filter circuit of the multi-functional downloading debugging apparatus of the present embodiment, and filter circuit is mainly made of filter capacitor, The effect of these filter capacitors is to remove the High-frequency Interference of power supply, improves the stability of device.
Fig. 4 is the LED light circuit of the multi-functional downloading debugging apparatus of the present embodiment, and LED1 is red blue dual-colored LED, it and Main control chip U1 connection is simultaneously controlled by U1, and when use device downloads code, LED1 indicates red light, in use device debugging, The red blue alternately flashing of LED1, when device is without downloading debugging, LED1 indicates blue lamp.
Fig. 5 is the esd protection circuit of the multi-functional downloading debugging apparatus of the present embodiment, is protected on chip U2 and U3 and interface Signal wire is connected, so that protection interface signal wire is interfered from ESD, improves the safety of whole device.
Fig. 6 is the governor circuit of the multi-functional downloading debugging apparatus of the present embodiment, it is the core of whole device, governor circuit On main control chip U1 be STM32F103C8T6, it carries out usb communication by USB interface and computer, by jtag interface or SWD interface is downloaded and debugs to external Cortex kernel MCU, carries out serial communication by serial interface and outside MCU, leads to Cross the different conditions of control LED interface circuit instruction device.
Fig. 7 is the JTAG debugging interface circuit of the multi-functional downloading debugging apparatus of the present embodiment, and main control chip U1 passes through this The realization of 20pinJTAG interface is downloaded and debugs to external Cortex kernel MCU.
Fig. 8 is the SWD interface circuit and serial interface circuit of the multi-functional downloading debugging apparatus of the present embodiment, SWD_I interface For downloading control routine to main control chip U1, SWD_O then may be implemented master control U1 and be downloaded to external Cortex kernel MCU With the function of debugging, serial interface circuit U ART then realizes the serial communication between U1 and outside MCU.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention, It should be equivalent substitute mode, be included within the scope of the present invention.

Claims (4)

1. a kind of multi-functional downloading debugging apparatus, it is characterised in that: the downloading debugging apparatus includes USB interface and microcontroller Device, the USB interface are connected with microcontroller implementation usb communication;The microcontroller connects LED interface, and passes through ESD chip It is connected respectively with SWD interface, jtag interface and serial communication interface;The USB interface passes through fuse and power interface It is connected, power interface connects LED interface, microcontroller, ESD chip, SWD interface, jtag interface and serial communication interface.
2. a kind of multi-functional downloading debugging apparatus according to claim 1, it is characterised in that: the microcontroller uses STM32F103C8T6。
3. a kind of multi-functional downloading debugging apparatus according to claim 1, it is characterised in that: the ESD chip uses SRV05-4 chip.
4. a kind of method debugged using the described in any item multi-functional downloading debugging apparatus of claims 1 to 33, feature It is to include the following steps:
By USB interface by fuse give device power supply, microcontroller by ESD chip connection SWD interface, jtag interface and After serial communication interface, SWD interface or jtag interface connect external MCU, microcontroller exempts to be drivingly connected electricity by USB interface Brain, realizes downloading and debugging function to external MCU, and when downloading, LED interface indicates red light, and blue lamp is indicated after downloading, and When debugging, red indigo plant indicator light alternately flashes, and in addition serial communication interface connects external MCU, and microcontroller connects also by USB interface Computer is connect, realizes the serial communication function of computer serial port debugging assistant and outside MCU, and communication baud rate adaptively adjusts.
CN201810808111.3A 2018-07-22 2018-07-22 The multi-functional downloading debugging apparatus of one kind and adjustment method Pending CN109344022A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810808111.3A CN109344022A (en) 2018-07-22 2018-07-22 The multi-functional downloading debugging apparatus of one kind and adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810808111.3A CN109344022A (en) 2018-07-22 2018-07-22 The multi-functional downloading debugging apparatus of one kind and adjustment method

Publications (1)

Publication Number Publication Date
CN109344022A true CN109344022A (en) 2019-02-15

Family

ID=65291295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810808111.3A Pending CN109344022A (en) 2018-07-22 2018-07-22 The multi-functional downloading debugging apparatus of one kind and adjustment method

Country Status (1)

Country Link
CN (1) CN109344022A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111400229A (en) * 2020-03-10 2020-07-10 南京沁恒微电子股份有限公司 Baud rate self-adaptive serial communication system and serial communication method
CN111625485A (en) * 2019-02-28 2020-09-04 上汽通用汽车有限公司 Method for designing program downloader and program downloader system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3955876B2 (en) * 2003-08-28 2007-08-08 株式会社ルネサステクノロジ Microcomputer and system program development method
CN102129797A (en) * 2010-12-31 2011-07-20 北京宣爱智能模拟技术有限公司 Electronic control system and method for online interactive automobile driving simulator
CN104317691A (en) * 2014-10-24 2015-01-28 中国重汽集团济南动力有限公司 Simulation debugging and code downloading tool
CN107247283A (en) * 2017-03-17 2017-10-13 娄底市金鑫电子科技有限公司 Big Dipper 3G/4G video lightning protection terminals based on high score satellite reception technology
CN107341111A (en) * 2017-09-08 2017-11-10 北京奥博泰科技有限公司 A kind of multi-functional embedded system development tools of USB interface
WO2018118729A1 (en) * 2016-12-23 2018-06-28 Microsoft Technology Licensing, Llc Embedded firmware content tracing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3955876B2 (en) * 2003-08-28 2007-08-08 株式会社ルネサステクノロジ Microcomputer and system program development method
CN102129797A (en) * 2010-12-31 2011-07-20 北京宣爱智能模拟技术有限公司 Electronic control system and method for online interactive automobile driving simulator
CN104317691A (en) * 2014-10-24 2015-01-28 中国重汽集团济南动力有限公司 Simulation debugging and code downloading tool
WO2018118729A1 (en) * 2016-12-23 2018-06-28 Microsoft Technology Licensing, Llc Embedded firmware content tracing
CN107247283A (en) * 2017-03-17 2017-10-13 娄底市金鑫电子科技有限公司 Big Dipper 3G/4G video lightning protection terminals based on high score satellite reception technology
CN107341111A (en) * 2017-09-08 2017-11-10 北京奥博泰科技有限公司 A kind of multi-functional embedded system development tools of USB interface

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ALEN.WANG: "图解Stm32使用jlink下载程序时jtag接口(SW和JTAG模式)的简化方法", 《CSDN网址:HTTPS://BLOG.CSDN.NET/QQ_26093511/ARTICLE/DETAILS/59484249》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111625485A (en) * 2019-02-28 2020-09-04 上汽通用汽车有限公司 Method for designing program downloader and program downloader system
CN111400229A (en) * 2020-03-10 2020-07-10 南京沁恒微电子股份有限公司 Baud rate self-adaptive serial communication system and serial communication method

Similar Documents

Publication Publication Date Title
CN112580295B (en) Automatic verification method, system and device for multi-core SoC chip
US20130212425A1 (en) Enhanced debugging for embedded devices
TW201341811A (en) Adapter module and motherboard testing device using the same
CN105740139B (en) A kind of debugging embedded software method based on virtual environment
CN109344022A (en) The multi-functional downloading debugging apparatus of one kind and adjustment method
CN105372619B (en) A kind of safety chip power failure test equipment
CN104679559A (en) Single chip microcomputer on-line programming method
CN104035794A (en) Method and system for achieving logic-device firmware upgrade
CN102520961B (en) Off-chip online programmable SOC (system on a chip) and control method for same
WO2012155300A1 (en) Method for debugging loongson cpu and south/north bridge chips and device thereof
CN104077204A (en) Reconfigurable 8-bit RSIC (reduced instruction set computer) SCM (Single Chip Microcomputer) simulator
CN104102160A (en) Controller area network (CAN) bus signal transceiving analysis tool
CN106354598A (en) One-time programmable microcontroller debugging method based on flash memory
CN110058542A (en) A kind of development platform device based on ARM9260
CN110457217A (en) A kind of cross-platform MCU debugging apparatus
CN102880483B (en) Serial port programming and watchdog compatible circuit of electric driving controller of electric vehicle
CN104166579A (en) Hardware designing method for achieving BIOS refreshing through BMC under shutdown state
US8707267B1 (en) Debugging a computer program by interrupting program execution in response to access of unused I/O port
CN206039399U (en) Embedded hardware systems with debugging facility
JP2005070950A (en) Program processing apparatus
CN109144849B (en) Embedded software debugging method
CN205375453U (en) Debug system
CN110413550B (en) Chip serial port program downloading control circuit
CN204028612U (en) A kind of CAN signal transmitting and receiving instrument
CN208922081U (en) A kind of programmable 8051 one-chip computer modules based on Bluetooth technology

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination