CN1920806A - Testing method for programmable equipment and programming method - Google Patents

Testing method for programmable equipment and programming method Download PDF

Info

Publication number
CN1920806A
CN1920806A CN 200510021509 CN200510021509A CN1920806A CN 1920806 A CN1920806 A CN 1920806A CN 200510021509 CN200510021509 CN 200510021509 CN 200510021509 A CN200510021509 A CN 200510021509A CN 1920806 A CN1920806 A CN 1920806A
Authority
CN
China
Prior art keywords
program
communication
application
microprocessor
programmable device
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
CN 200510021509
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.)
CHENGDU LINK SILICON INNOVATION Ltd
Original Assignee
CHENGDU LINK SILICON INNOVATION 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 CHENGDU LINK SILICON INNOVATION Ltd filed Critical CHENGDU LINK SILICON INNOVATION Ltd
Priority to CN 200510021509 priority Critical patent/CN1920806A/en
Publication of CN1920806A publication Critical patent/CN1920806A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to a method for realizing the multifunction as simulation, test, debug, programmable communication and application communication at single communication interface, wherein said programmable device comprises: program memory, microprocessor, and communication controller, while it has two states that in default state, the microprocessor operates default program to control and manage the communication controller to connect other devices and receive their instruction or data to simulate, test, debug, or program said device; in application state, the microprocessor operates application program or operates application program and default program, to control and manage the communication controller to connect other devices and receive their instruction or data to realize application communication.

Description

A kind of test and programmed method in communication of programmable device
Technical field
This invention relates to technical fields such as computer communication technology (comprising mechanicss of communication such as USB, LAN, CAN, 1394, BLUETOOTH, WLAN, UWB, WUSB), microprocessor/single-chip microcomputer, programming device.
Background technology
Early stage microprocessor/single-chip microcomputer adopts the method for Add-In and data-carrier store to satisfy different application requirements more, the raising that microprocessor/scm application system integrated level is required along with development of semiconductor and user, increasing microprocessor/single-chip microcomputer develops to the direction of plug-in and data-carrier store gradually, in the production run of these microprocessor/Single Chip Microcomputer (SCM) system, the user need just can install manufacturing procedures such as soldering group with special-purpose programming tool earlier then to device programming, at the final products state, the user can't carry out operations such as program change and upgrading to product.In recent years, some microprocessor/single-chip microcomputers begin to develop to ISP (in-system programming), IAP (at application programming), JTAG (boundary scan testing and programming) function direction, make with the microprocessor/single-chip microcomputer of this function or programmable logic device (PLD) product and can realize final products, finishing operation programming or final user's remote testing or firmware programs, upgrading.
But possessing the microprocessor/single-chip microcomputer of ISP, IAP, jtag test or programing function or the DLL (dynamic link library) of programmable logic device (PLD) at present all is to adopt the electric interfaces of special-purpose simple communication modes.More for example the single-chip microcomputer of 8051 kernels is connected realization ISP/IAP function by UART serial ports and RS232 change-over circuit with PC (personal computer); The microprocessor of most ARM kernels or programmable logic device (PLD) are connected functions such as realization chip boundary sweep test and programming by JTAG (boundary scan testing) interface with jtag controller based on the PC parallel port.These interfaces are exclusively used in programming, debugging and test, the programming cable comprises special circuit and components and parts, cost is higher, complicated and need specialized designs, generally do not use this interface in user's application firmware program operational process, final products also are difficult to keep this interface and carry out firmware programs or upgrading.Development along with computer communication technology, these simple communication modes interfaces are eliminated (most of notebook computers have been cancelled standard serial and parallel electric interfaces) from PC end gradually, efficient by USB/LAN/CAN/1394/BLUETOOTH/WLAN/UWB/WUSB etc. gradually, at a high speed and the interface that easily connects replace.And increasing microprocessor/single-chip microcomputer or programmable logic device (PLD) are also integrated, and these are efficient, at a high speed and the communication modes interface that easily connects to adapt to different application demands.Even some communication modes standard has defined the communications protocol (for example the USB tissue has defined USB peripheral hardware firmware upgrade standard " USB Device Firmware Upgrade Specification; Revision 1.1 ") of program upgrade, but the user need develop programming tool software, firmware program even driver etc., and agreement is complicated and realize difficult.Also be confined to firmware upgrade at present, do not integrate communication function and user's application communication functions such as emulation, debugging, test, firmware programs, upgrading, also do not have concrete simple system implementation method.This instructions will be example with the microprocessor/single-chip microcomputer of communication interfaces such as internal USB/LAN/CAN/1394/BLUETOOTH/WLAN/UWB/WUSB, and these communication interfaces that how to describe in detail by microprocessor/single-chip microcomputer or programmable logic device (PLD) are implemented in (ICP) emulation in the communication, debugging, test, programming communication function and user's application communication function on existing microprocessor/single-chip microcomputer or programmable logic device (PLD) emulation, debugging, test, firmware programs method basis.
Summary of the invention
The present invention can utilize existing PC ending tool software and peripheral hardware driver to realize emulation, debugging, test, programming communication and application communication multi-functional of single communication interface, this instructions focuses on that microprocessor/single-chip microcomputer is implemented in the method for (ICP) emulation, debugging, test, programming in the communication by USB interface, and this method also is applicable to the microprocessor/single-chip microcomputer or the programmable logic device (PLD) of band LAN, CAN, 1394, BLUETOOTH, WLAN, communication modes interfaces such as UWB, WUSB.
Implementation method of the present invention is:
When microprocessor/the single-chip microcomputer of band USB interface or programmable logic device (PLD) are connected with PC by USB cable, its default conditions are a USB virtual serial port/parallel port peripheral hardware (Device) or other class peripheral hardware able to programme (for example USB-JTAG adapter), the user is by the emulation of existing P C end, debugging, test, programming waits the emulation to microprocessor/single-chip microcomputer or programmable logic device (PLD) of tool software and USB virtual serial port/parallel port or class peripheral hardware driver able to programme realization, debugging, test, the firmware programs operation, finish emulation, debugging, test, programming back user can be set to application state by the programming tool software microprocessor/single-chip microcomputer or the programmable logic device (PLD) of PC end, microprocessor/single-chip microcomputer or programmable logic device (PLD) promptly work in application state and the self-designed application firmware program of run user then, this moment microprocessor/single-chip microcomputer or programmable logic device (PLD) as the application USB peripheral hardware of user's design according to user's designing requirement by USB interface and the realization of application corresponding driver the communication that is connected with PC or miscellaneous equipment.
When microprocessor/single-chip microcomputer or programmable logic device (PLD) during at application state, if the user need carry out emulation to microprocessor/single-chip microcomputer or programmable logic device (PLD), debugging, test, programming or firmware upgrade, the user (for example: by the switch of peripheral hardware can pass through hardware setting, button or firmware command setting), or the Software tool by PC end with special command (for example: send special command to this peripheral hardware with the USB debug tool software, the user also can Software tool of oneself exploitation realizes this function) microprocessor/single-chip microcomputer or programmable logic device (PLD) setting are returned default conditions, and then be implemented in the default conditions that return and by USB interface microprocessor/single-chip microcomputer or programmable logic device (PLD) carried out emulation, debugging, test, the operation of programming or firmware upgrade.So just realized emulation, debugging, test, programming or firmware upgrade communication and application communication multi-functional of single face, and emulation, debugging, test, programming tool software and the USB virtual serial port/parallel port of PC end or class peripheral hardware driver able to programme all can adopt ripe existing software and driver.Greatly reduce total system ground and realized technical difficulty and financial cost.
If the present invention is applied in microprocessor/single-chip microcomputer or the programmable logic device (PLD) product, the user of research and development of products or production does not just need the emulation for the product design special use, debugging, test and DLL (dynamic link library) and instrument, do not need to develop special-purpose emulation yet, debugging, programming software and driver, only need utilize the application communication interface (for example USB interface) and the mature emulation of product itself, debugging, test, programming tool software and driving, can before dispatching from the factory, final products just programme to product, also can be in time require to load different application firmware program, even the final user also can carry out updating firmware program on this basis or carries out secondary development and move the self-designed firmware program of final user according to final user's difference.The part that relates to USB interface among the present invention also is applicable to other communication modes interfaces such as LAN/CAN/1394/BLUETOOTH/WLAN/UWB/WUSB.In order to express clearly content of the present invention, this instructions is that example describes content of the present invention in detail with the USB communication modes.
Description of drawings
Fig. 1 first embodiment system architecture diagram of the present invention.
The boot operation process flow diagram of Fig. 2 first embodiment of the present invention.
Fig. 3 first embodiment of the present invention is at the procedure operation process flow diagram of default conditions.
Fig. 4 first embodiment of the present invention is at the procedure operation process flow diagram of application state.
Fig. 5 second embodiment system architecture diagram of the present invention.
Fig. 6 Fig. 6 second embodiment of the present invention is at the system architecture and the operational flowchart of application state.
Fig. 7 other communication modes embodiment system architecture diagram of the present invention.
Embodiment
First embodiment
In Fig. 1, the microprocessor/single-chip microcomputer of this USB interface comprises six major parts such as USB controller, program storage, data-carrier store, micro-processor kernel, peripheral interface circuit and power supply clock.
As Fig. 2, program pointer at first pointed to the boot memory block after this microprocessor/single-chip microcomputer resetted, and the boot in the operation boot memory block, hardware in the whole microprocessor/Single Chip Microcomputer (SCM) system of this program management, the operation of firmware program, if satisfying, the conditioned disjunction software setting condition that is provided with the peripheral hardware of microprocessor/single-chip microcomputer enters default conditions, then program pointer points to the default program memory block, and the default program in the operation default storage district, otherwise the application program in then program pointer directed towards user application storage district, and the run user application memory district.As Fig. 3, if microprocessor/single-chip microcomputer is set to default conditions, when being connected with PC by USB cable, microprocessor/single-chip microcomputer operation default program is also finished and the enumerating of PC main frame as a virtual serial port/parallel port or peripheral hardware able to programme, at this moment, if the user moves the emulation of PC end, debugging, test or programming tool software, just can carry out emulation, debugging, test, programming or state setting operation to microprocessor/single-chip microcomputer by tool software.In case microprocessor/single-chip microcomputer state is set to application state, microprocessor/Single Chip Microcomputer (SCM) program pointed user application memory block access customer application state of going forward side by side then.
As Fig. 4, if microprocessor/single-chip microcomputer is set to user's application state, when being connected with PC by USB cable, microprocessor/single-chip microcomputer runs user applications is also finished and the enumerating of PC main frame as the USB peripheral hardware that a user designs definition, at this moment, this equipment can carry out data transmission according to user's the designing requirement and the application software of PC end.When the user need or upgrade to this equipment firmware reprogramming, still can return default conditions to microprocessor/single-chip microcomputer setting with special command (can also can oneself develop a Software tool to this peripheral hardware, user with USB debug tool software transmission special command and realize this function) with hardware setting (for example :) or by the Software tool that PC holds by switch, button or the firmware command setting of peripheral hardware.In case microprocessor/single-chip microcomputer state is set to default conditions, microprocessor/Single Chip Microcomputer (SCM) program pointed default program memory block and enter default conditions then.The user just can carry out programming operation at default conditions to microprocessor/single-chip microcomputer again like this.The single-chip microcomputer of many 51 kernels all has the function by serial ports ISP/IAP at present, and the single-chip microcomputer with band ISP/IAP function is that example describes how to implement this invention in detail here.But do not show that the present invention only is applicable to the single-chip microcomputer or the USB communication modes of 51 kernels, this invention also is applicable to other communication modes such as the microprocessor/single-chip microcomputer (for example microprocessor of kernel such as ARM7, ARM9) of other type and LAN/CAN/1394/BLUETOOTH/WLAN/UWB.
51 kernel single-chip microcomputers connect the USB controller to be realized being connected with the logic of PC system as a USB virtual serial port equipment at default conditions operation default program.The programming tool software (can adopt existing programming tool software) of PC end is realized programming operation to this single-chip microcomputer by virtual serial port, finish programming after, the user can be provided with the Status Flag of single-chip microcomputer is changed into application state.Single-chip microcomputer can withdraw from default conditions and enter application state then, disconnects USB virtual serial port peripheral hardware and is connected with the logic of PC main frame, realizes being connected with the logic of PC main frame as the application peripheral hardware of user's design again.At application state, if the hardware setting condition satisfies (for example: be provided with by switch, button or application firmware program order) or the Status Flag of software setting condition satisfied (can also can oneself develop a Software tool to this peripheral hardware, user with USB debug tool software transmission special command and realize this function) single-chip microcomputer can be changed, single-chip microcomputer can disconnect to be used peripheral hardware and is connected with the logic of PC main frame, enters default conditions again and is connected with the PC host logic as virtual serial port and is implemented in firmware programs under this state.
Second embodiment
As Fig. 5, this embodiment system architecture diagram and scheme one are similar, and when default conditions, the system operation flow process is identical with scheme one; Unique microprocessor/single-chip microcomputer that is not both when application state had both moved the default firmware program and had also moved application firmware program, the PC end is connected two logic peripheral hardwares under the logic USBHUB simultaneously, one is acquiescence virtual serial port/parallel port or peripheral hardware able to programme, and another is to use peripheral hardware.As shown in Figure 6.When the user application software operational applications logic peripheral hardware of PC end, emulation, debugging, test and the programming tool software of PC end also can be operated the virtual serial port/parallel port or the peripheral hardware able to programme of acquiescence.This sample plan just can realize that system is directly at emulation, debugging, test and the programming operation of application state.
The 3rd embodiment
As Fig. 7, this embodiment system architecture diagram and scheme one are similar, just USB controller in the scheme 1 and USB connection are replaced with communication controller and corresponding connections such as LAN, CAN, 1394, BLUETOOTH, WLAN, UWB, WUSB.This scheme system operation flow process also similar to scheme one (as Fig. 2,3,4) only needs USB is replaced into other corresponding communication modes; Implement all functions that this scheme still can realize this invention.

Claims (7)

1. programmable device, this programmable device comprises parts such as program storage, microprocessor, communication controller.It is characterized in that this programmable device can be single chip, also can a plurality of chips and the combination of components and parts, can also be the part in a chip or the product; This programmable device has two states, when default conditions, microprocessor operation default program, control is connected communication with the communication interface of management communication controller with miscellaneous equipment, and the instruction of reception miscellaneous equipment or data to this programmable device test, debugging or programming operation; When application state, microprocessor runs application or runs application simultaneously and default program, be connected the instruction or the data of communicating by letter and receiving miscellaneous equipment with miscellaneous equipment by the concrete application requirements control and the communication interface of management communication controller, realize concrete application communication function.
2. program storage according to claim 1 is characterized in that it comprises default program memory block and application storage district at least, perhaps comprises default program storer and application memory separately; Application storage district or application memory can be programmed by programmable device oneself; The program of microprocessor operation default program memory block or default program storer can the application programs memory block or application memory even whole procedure storer programme.
3. communication controller according to claim 1, it is characterized in that realizing the communication that is connected between equipment and the equipment according to certain communication standard and agreement, the communication modes of this communication controller can be wherein a kind of such as USB, LAN, CAN, 1394, BLUETOOTH, WLAN, UWB, WUSB, also can be other communication modes.
4. microprocessor according to claim 1, it is characterized in that program that it can the working procedure storer realizes the logic control to connected parts, it can be programmable logic device (PLD) such as microprocessor, microcontroller, single-chip microcomputer, DSP or FPGA/CPLD.
5. default program according to claim 1 is characterized in that it can be cured among program storage, do not need by communication interface in communication process to its programming or change its content; Microprocessor moves this program and can control and implement the relevant communications protocol of acquiescence with the management communication controller and realize part or all of function in emulation, debugging, test or the programming of default conditions.
6. application program according to claim 1, it is characterized in that its place storage area and content can be modified in communication process or programme, microprocessor moves this program can control all functions that practice communications protocol with the management communication controller and realize application state.
7. a kind of programmable device according to claim 1, the method that it is tested or programme in communication, the feature of this method is: set a Status Flag in programmable device, in programmable device production, under the starting condition such as test or program storage are wiped free of, at first solidify default program in particular memory region and set programmable device and be in default conditions, when this programmable device was connected with miscellaneous equipment by its communication controller, this programmable device moved its default program and carries out data communication according to the test of acquiescence or the communications protocol of programming with the equipment that links to each other.The Status Flag of this programmable device can be provided with change by order by connected equipment.In case the Status Flag of programmable device is set to application state, this programmable device promptly moves its application program or runs application simultaneously and default program and carry out data communication with the equipment that links to each other according to corresponding communications protocol.
CN 200510021509 2005-08-23 2005-08-23 Testing method for programmable equipment and programming method Pending CN1920806A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510021509 CN1920806A (en) 2005-08-23 2005-08-23 Testing method for programmable equipment and programming method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510021509 CN1920806A (en) 2005-08-23 2005-08-23 Testing method for programmable equipment and programming method

Publications (1)

Publication Number Publication Date
CN1920806A true CN1920806A (en) 2007-02-28

Family

ID=37778532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510021509 Pending CN1920806A (en) 2005-08-23 2005-08-23 Testing method for programmable equipment and programming method

Country Status (1)

Country Link
CN (1) CN1920806A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043614A (en) * 2009-10-12 2011-05-04 无锡华润矽科微电子有限公司 Secondary development system and method
CN102722119A (en) * 2012-05-31 2012-10-10 深圳市元征科技股份有限公司 Automobile ECU (Electronic Control Unit) flash device
CN102750214A (en) * 2011-04-19 2012-10-24 成都联星微电子有限公司 Method for testing and programming by using device application interface
CN103676747A (en) * 2013-12-23 2014-03-26 华润万东医疗装备股份有限公司 Flat finder communication control system
CN103678214A (en) * 2013-11-29 2014-03-26 青岛海信电器股份有限公司 Method for redirecting system console and display equipment
CN104680059A (en) * 2013-12-03 2015-06-03 北京中电华大电子设计有限责任公司 Emulator for protecting chip firmware program and method thereof
CN113590143A (en) * 2021-08-03 2021-11-02 北京宇系航通科技有限公司 MCU program downloading method based on USB, electronic equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043614A (en) * 2009-10-12 2011-05-04 无锡华润矽科微电子有限公司 Secondary development system and method
CN102750214A (en) * 2011-04-19 2012-10-24 成都联星微电子有限公司 Method for testing and programming by using device application interface
CN102722119A (en) * 2012-05-31 2012-10-10 深圳市元征科技股份有限公司 Automobile ECU (Electronic Control Unit) flash device
CN102722119B (en) * 2012-05-31 2014-12-03 深圳市元征科技股份有限公司 Automobile ECU (Electronic Control Unit) flash device
CN103678214A (en) * 2013-11-29 2014-03-26 青岛海信电器股份有限公司 Method for redirecting system console and display equipment
CN104680059A (en) * 2013-12-03 2015-06-03 北京中电华大电子设计有限责任公司 Emulator for protecting chip firmware program and method thereof
CN104680059B (en) * 2013-12-03 2017-11-03 北京中电华大电子设计有限责任公司 The emulator and method of a kind of protection chip firmware program
CN103676747A (en) * 2013-12-23 2014-03-26 华润万东医疗装备股份有限公司 Flat finder communication control system
CN113590143A (en) * 2021-08-03 2021-11-02 北京宇系航通科技有限公司 MCU program downloading method based on USB, electronic equipment and storage medium
CN113590143B (en) * 2021-08-03 2023-11-17 北京北航天宇长鹰无人机科技有限公司 MCU program downloading method based on USB, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN1920806A (en) Testing method for programmable equipment and programming method
CN105279127B (en) A kind of FPGA program downloading systems and method based on PCI or PCIe buses
CN102231075B (en) Common platform of electric power measurement and control method thereof
CN102163056B (en) Test simulation instrument of automotive air conditioning controller
CN101937205B (en) Novel portable PLC (Programmable Logic Controller) programming device
CN101793931B (en) High-pressure transducer testing system
CN102591327B (en) Virtual-real combined test method developed for automobile body control
CN105137943B (en) A kind of micro-hybrid system integration control device
CN102750214A (en) Method for testing and programming by using device application interface
CN105068860A (en) Linux coal cutter management host system based on ARM
CN1225713C (en) Design method for specific chip of intelligent electric appliance
CN201349208Y (en) FPGA multi-mode configuration circuit
CN101582688A (en) Dynamic configuration circuit with FPGA loading mode
CN202058010U (en) Portable monitoring control means
CN101666855A (en) Universal test system and method of integrated circuit
CN101751323A (en) Microprocessor chip emulator and breakpoint setting method
AU2003264083B2 (en) Object-oriented design method for the time-effective and cost-effective development of production-grade embedded systems based on a standardized system architecture
CN205091732U (en) Automatic switching device for USB interface
CN202267736U (en) General type digital printed circuit board functional test circuit
CN2689346Y (en) Universal series bus interface testers
CN201444301U (en) Device capable of unifying interfaces of multi-peripheral units to be one USB interface
CN203720560U (en) Hardware-in-loop simulation test card for motor
CN2805217Y (en) Synchronous motor microprocessor field regulator based-on CPLD and 80 C196 monolithic processor
CN206193777U (en) LPC interface visit device, notebook computer based on platform of soaring
CN202694024U (en) Intelligent simulation instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication