CN1983178A - Universal programmor and programming method - Google Patents

Universal programmor and programming method Download PDF

Info

Publication number
CN1983178A
CN1983178A CN 200510130234 CN200510130234A CN1983178A CN 1983178 A CN1983178 A CN 1983178A CN 200510130234 CN200510130234 CN 200510130234 CN 200510130234 A CN200510130234 A CN 200510130234A CN 1983178 A CN1983178 A CN 1983178A
Authority
CN
China
Prior art keywords
chip
objective chip
program code
objective
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200510130234
Other languages
Chinese (zh)
Other versions
CN100421073C (en
Inventor
姜骁
郑全阶
陈玄同
刘文涵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XUZHOU LIFANG ELECTROMECHANICAL EQUIPMENT MANUFACTURING CO., LTD.
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CNB2005101302349A priority Critical patent/CN100421073C/en
Publication of CN1983178A publication Critical patent/CN1983178A/en
Application granted granted Critical
Publication of CN100421073C publication Critical patent/CN100421073C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A universal programmer is prepared as storing program codes of multiple object chip and driving program of a Ethernet chip in master control chip by said programmer, receiving and analyzing data by master chip through network interface, finalizing relevant upgrade according upgrade data packet (UDP) when analyzed data is UDP, programming program code of object chip requiring to be programmed to programming element according to programming command and controlling said element to generate control time sequence to finalize programming on object chip when analyzed data is programming data.

Description

Universal programmer and programmed method thereof
Technical field
The present invention relates to a kind of programmable device and programmed method thereof, relate in particular to a kind of universal programmer and programmed method thereof.
Background technology
In the exploitation and design of hardware system, the data read-write operation that chip is carried out is called as chip programming (Program).For example, adopt the various systems of single-chip microcomputer (Single Processor) control need be with the single-chip microcomputer of the control program programming of exploitation; The chip that is used for stores configuration data is programmed; To being used for field programmable gate array element (Field Programmable Gate ArrayDevices, FPGA Devices) or complex programmable logic element (Complex Programmable LogicDevices, programming CPLD) of IC design.Though for each element, chip maker all can provide corresponding program means, also press for a kind of programming device that can support the number of different types chip simultaneously, thereby universal programmer becomes first-selection.
Please refer to Fig. 1, is the block diagram of the universal programmer of prior art shown in the figure.As shown in the figure, the program of programmable device is supported in computing machine 10 operations, and by main control chip 11 communications of control interface (as serial ports, parallel port or USB) with programmable device, corresponding operating is resolved and carried out in the order of 11 pairs of receptions of main control chip.For example, receive the sequential interface I by main control chip 11 behind the program command of objective chip I12 is produced control timing, finish programming objective chip I12.Equally, can finish programming by similar operations to objective chip II13.On stream, when need test the program of main control chip 11, when revising, activate an integration development environment (IntegratedDevelopment Environment) software by computing machine 10 and connect download interface 14, will be programmed into main control chip 11.After product development finished, any change can not take place in the program of main control chip 11, that is, the employed programmable device of user does not have download interface 14.Therefore, when the user need increase programming to a newtype chip, or change a more programmable device of high standard, or require manufacturer that the program of main control chip 11 is upgraded even change hardware circuit.Above-mentioned dual mode is all very inconvenient, also is unfavorable for very much the renewal upgrading of product.
At present, there is a kind of improvement to above-mentioned universal programmer.Please refer to Fig. 2, is the block diagram of the universal programmer after improving shown in the figure.As shown in the figure, universal programmer 20 comprise a main control chip 21, field programmable gate array element 22 and programmable read only memory 23 (Programmable Read Only Memory, PROM).It is more convenient that but scene program gate array device can offer Hardware Design, and the configuration of modification or upgrading hardware system only needs can realize by change software, greatly reduced cost of development and risk.After computing machine 10 transmission orders were to universal programmer 20, the main control chip 21 of universal programmer 20 received and resolve command, and according to the command execution corresponding operating of resolving.When being resolved to program command to objective chip I12 as main control chip 21, its control field programmable gate array element 22 produces control timing and finishes programming to objective chip I12.Wherein, field programmable gate array element 22 comprises generation sequential functional programs code, and this program code storage is in programmable read only memory 23.When programmable device 20 was connected to power supply, the configuration mode that powers on of field programmable gate array element 22 (Configuration Mode) imported field programmable gate array element 22 with the program code in the programmable read only memory 23.Therefore, this mode has overcome the shortcoming that upgrading products need be made amendment to circuit, only needs amended program code is burnt to new programmable read only memory to substitute upgrading and the renewal that original programmable read only memory can realize product.Yet this mode need be finished by manufacturer equally, brings very big inconvenience to the user.And, adopt programmable read only memory to have brought hidden danger also for the security of program code, because as long as the program code in the programmable read only memory can be read or copied portion and be placed in other field programmable gate array element, other field programmable gate array element has also just possessed identical programing function, therefore has great potential safety hazard.
In addition, all there are the characteristics to the chip programming locality in above-mentioned universal programmer, be that programming device can only be changed behind the chip control program on the operational computations machine by operating personnel again and realizes programming operation to chip, can not realize purpose the chip programming Long-distance Control.But along with production-scale continuous expansion, need the programmed chips value volume and range of product more and more, the manual programming of finishing chip of simple dependence has shortcomings such as efficient is low, error rate height, therefore need realize control by automatic equipment, thereby finish programming the production line chip to universal programmer.
Summary of the invention
In order to solve above-mentioned the problems of the prior art and defective, the object of the present invention is to provide a kind of universal programmer and programmed method thereof, be used for a plurality of dissimilar objective chip are programmed.
A kind of universal programmer provided by the present invention comprises: network interface is used for seeing through the network equipment (as, router) and carries out communication with remote computer; Main control chip, be used to store the program code information of each objective chip and the driver of an Ethernet chip, also resolve the data that receive by the data that network interface receiving remote computing machine sends, when being upgrading data packet, the data of resolving store the program code information of a newtype objective chip according to this upgrading data packet, when the data of resolving are program command, send the program code of corresponding objective chip and control programming to objective chip according to order; And programmable element, be used to receive the program code of the objective chip that main control chip writes, and produce control timing according to the control of main control chip and finish programming objective chip.
The programmed method of a kind of programmable device provided by the present invention comprises following steps: store the program code information of each objective chip and the driver of Ethernet chip; Activate the driver of Ethernet chip, receive and resolution data by network interface; When the data of resolving are upgrading data packet, store the program code information of a newtype objective chip according to upgrading data packet; When the data of resolving are program command, send the program code of corresponding objective chip according to program command; Judge that whether objective chip exists or whether correctly place, and when objective chip does not exist or places when incorrect, returns an error code; And place when correct when objective chip, produce control timing according to the program code information of the objective chip of correspondence and finish programming objective chip.
In sum, the invention has the advantages that and realized programmable device auto-update, renewal, can increase the convenience of research and development, the safety coefficient of saving cost of developing and improving programmable device.
Description of drawings
Figure 1 shows that the block diagram of the universal programmer of prior art;
Figure 2 shows that the block diagram of a kind of improved universal programmer of prior art;
Figure 3 shows that block diagram according to the embodiment of the invention; And
Figure 4 shows that the programmed method process flow diagram of universal programmer of the present invention.
Wherein, Reference numeral:
10,30 computing machines
11,21,34 main control chips
12 objective chip I
13 objective chip II
14 download interface
20,32 programmable devices
22,35 field programmable gate array elements
23 programmable read only memory
31 routers
33 network interfaces
36 objective chip
S400 stores the program code information of each objective chip and the driver of Ethernet chip
S410 activates the driver of Ethernet chip, receives and resolution data by network interface
When S420 is upgrading data packet when the data of resolving, store the program code information of a newtype objective chip according to this upgrading data packet
When S430 is program command when the data of resolving, send the program code information of the objective chip of a correspondence according to this program command
Does S440 judge that objective chip exists or whether correctly places?
S450 returns an error code
S460 produces control timing according to the program code information of the objective chip of correspondence and finishes programming to objective chip
Embodiment
Below, will elaborate to better embodiment of the present invention in conjunction with the accompanying drawings.
Please refer to Fig. 3, the block diagram of having represented universal programmer 32 of the present invention among the figure, it carries out communication by router three 1 and remote computer 30, and the order of receiving computer 30 to be to realize the programming to objective chip 36, and this universal programmer 32 comprises: network connects 33, main control chip 34 and field programmable gate array element 35.
Main control chip 34 is connected with router three 1 by network interface 33 and then is connected to remote computer 30.Main control chip 34 stores and comprises objective chip 36 in the program code information of interior a plurality of objective chip and the driver that is used for driving the Ethernet chip of network interface 33.When receiving program command, main control chip 34 sends the program code information of objective chip 36 to field programmable gate array element 35, and control field programmable gate array element 35 generation control timing are finished the programming to objective chip 36.
Wherein, described router three 1 is the network equipment, and when programmable device of the present invention was applied to LAN, this network equipment can be hub HUB etc.; When programmable device of the present invention was applied to world-wide web, this network equipment can be switch or router etc.
Below, will describe the operation of the order realization of universal programmer 32 receiving remote computing machines 30 in detail to the programming of objective chip 36.
Computing machine 30 is connected to the network interface 33 of universal programmer 32 by router three 1, and and then carry out communication with the main control chip 34 of universal programmer 32, send data to main control chip 34.The data that main control chip 34 receives and analytical Calculation machine 30 sends, when the data of resolving be program command (as, write operation) time, main control chip 34 will send to field programmable gate array element 35 corresponding to the program code information of objective chip 36, and activate field programmable gate array element 35.And then whether whether main control chip 34 detect objective chip 36 and exist or places correctly, and when objective chip 36 did not exist or places mistake, main control chip 34 returned an error code to point out the user correct drop target chip 36.When objective chip 36 placements were correct, main control chip 34 write objective chip 36 according to the program code information Control field programmable gate array element 35 generation control timing of objective chip 36 with the purpose data.Write finish after, 34 pairs of objective chip of main control chip 36 are carried out the read checks operation, and verification of reading and the verification that writes data are compared, if identical then return a successful code, and end operation, otherwise, return a failure code, carry out programming operation again until operating successfully.
Then, the operation of universal programmer 32 auto-updates will be described in detail.
The data that main control chip 34 sends by network interface 33 receiving remote computing machines 30, and resolve the data that receive.When the data of resolving were a upgrading data packet, main control chip 34 was according to the program code information of a newtype objective chip of upgrading data packet storage, to finish the auto-update of universal programmer 32.
Please refer to Fig. 4 now, this figure is the method flow diagram of a kind of universal programmer programmed method of the present invention, and as shown in the figure, programmed method of the present invention comprises following steps:
At first, store the program code information of each objective chip and being used to and drive the driver of Ethernet chip of network interface 33 to main control chip 34 (S400).Then, activate the driver of Ethernet chip, receive and resolution data (S410) by network interface 33.When the data of resolving were upgrading data packet, the program code information that stores a newtype objective chip according to this upgrading data packet was to main control chip 34 (S420).When the data of resolving are program command when (as, write operation), the program code information that sends corresponding objective chip 36 according to this program command is to field programmable gate array element 35, and activates field programmable gate array element 35 (S430).And then main control chip 34 judges whether objective chip 36 exists or whether place correct (S440), when objective chip 36 does not exist or places when incorrect, returns an error code with the prompting correct drop target chip 36 of user (S440).When objective chip 36 placements were correct, main control chip 34 write objective chip 36 according to the program code information Control field programmable gate array element 35 generation control timing of objective chip 36 with the purpose data.Write finish after, 34 pairs of objective chip of main control chip 36 are carried out the read check operation, verification of reading and the verification that writes data are compared, if it is identical then return a successful code, and end operation, otherwise, return a failure code, carry out programming operation again until operating successfully (S450).
Though the present invention discloses by above-mentioned better embodiment, yet these embodiments are not to be used to limit the present invention.Those skilled in the art should recognize that the modifications and variations of being done all belong within the scope of protection of present invention under the situation that does not break away from the appended disclosed scope and spirit of the present invention of claim of the present invention.

Claims (5)

1, a kind of universal programmer is used for a plurality of dissimilar objective chip are programmed, and it comprises:
One network interface is used for carrying out communication with the outside;
One main control chip, be used to store the program code information of described each objective chip and the driver of an Ethernet chip, receive data and resolution data by described network interface, when being a upgrading data packet, the data of resolving store the program code information of a newtype objective chip according to this upgrading data packet, when the data of resolving are an order, send the program code of objective chip of a correspondence and control programming according to this order to this objective chip; And
One programmable element is used to receive the program code of the described objective chip that described main control chip writes, and produces control timing according to the control of described main control chip and finish programming to described objective chip.
2, universal programmer according to claim 1 is characterized in that, described programmable element is field programmable gate array element or complex programmable logic element.
3, a kind of method of using the described universal programmer of claim 1 to download is used for a plurality of dissimilar objective chip are programmed, and this method may further comprise the steps:
Store the program code information of described each objective chip and the driver of an Ethernet chip;
Activate the driver of this Ethernet chip, receive and resolution data by a network interface;
When the data of resolving are a upgrading data packet, store the program code information of a newtype objective chip according to this upgrading data packet;
When the data of resolving are a program command, send the program code information of the objective chip of a correspondence according to this program command;
Judge that whether this objective chip exists or whether correctly place, and when this objective chip does not exist or places when incorrect, returns an error code; And
When this objective chip is placed when correct, produce control timing according to the program code information of this corresponding objective chip and finish programming this objective chip.
4, method according to claim 3 is characterized in that, described control timing produces by a programmable element.
5, method according to claim 4 is characterized in that, described programmable element is field programmable gate array element or complex programmable logic element.
CNB2005101302349A 2005-12-14 2005-12-14 Universal programmor and programming method Expired - Fee Related CN100421073C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101302349A CN100421073C (en) 2005-12-14 2005-12-14 Universal programmor and programming method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101302349A CN100421073C (en) 2005-12-14 2005-12-14 Universal programmor and programming method

Publications (2)

Publication Number Publication Date
CN1983178A true CN1983178A (en) 2007-06-20
CN100421073C CN100421073C (en) 2008-09-24

Family

ID=38165736

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101302349A Expired - Fee Related CN100421073C (en) 2005-12-14 2005-12-14 Universal programmor and programming method

Country Status (1)

Country Link
CN (1) CN100421073C (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100533349C (en) * 2007-09-06 2009-08-26 北京中星微电子有限公司 Universal interface control device and method thereof
CN101184030B (en) * 2007-11-06 2010-06-16 浙江工业大学 FPGA based Ethernet interface drive set
CN101431693B (en) * 2007-11-05 2011-01-12 深圳Tcl新技术有限公司 Screen distribution apparatus of panel TV
CN102436219A (en) * 2010-09-29 2012-05-02 中国科学院上海生命科学研究院 Control machine of cultivation environment field monitoring system
CN101576825B (en) * 2009-05-08 2012-07-04 上海耕研电子科技有限公司 Embedded integrated circuit programmer
CN101937418B (en) * 2009-07-02 2013-05-22 黄万喜 Simultaneous data processing method of a programing device for treating data from a plurality of chips simultaneously
CN105302570A (en) * 2015-11-17 2016-02-03 广州周立功单片机科技有限公司 Chip programming control method and system
CN105493464A (en) * 2013-06-19 2016-04-13 微软技术许可有限责任公司 Dual-tone multi-frequency (DTMF) programming of an auto-dialer
CN109154996A (en) * 2016-05-13 2019-01-04 恩图鲁斯特咨询卡有限公司 Multi-protocols smart card iaisci
CN111984288A (en) * 2020-07-29 2020-11-24 深圳市拔超科技有限公司 Remote electronic system upgrading device and method based on MCU and FPGA

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6326806B1 (en) * 2000-03-29 2001-12-04 Xilinx, Inc. FPGA-based communications access point and system for reconfiguration
US6925522B2 (en) * 2000-10-26 2005-08-02 Lite-On It Corporation Device and method capable of changing codes of micro-controller
SE0102199D0 (en) * 2001-06-20 2001-06-20 Ericsson Telefon Ab L M Upgrading field programmable gate arrays over data communication networks
CN1168019C (en) * 2002-08-30 2004-09-22 清华大学 In-line upgrade system for in-situ programmable gate array program and its implementation method
CN100341072C (en) * 2004-08-26 2007-10-03 复旦大学 USB general programing device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100533349C (en) * 2007-09-06 2009-08-26 北京中星微电子有限公司 Universal interface control device and method thereof
CN101431693B (en) * 2007-11-05 2011-01-12 深圳Tcl新技术有限公司 Screen distribution apparatus of panel TV
CN101184030B (en) * 2007-11-06 2010-06-16 浙江工业大学 FPGA based Ethernet interface drive set
CN101576825B (en) * 2009-05-08 2012-07-04 上海耕研电子科技有限公司 Embedded integrated circuit programmer
CN101937418B (en) * 2009-07-02 2013-05-22 黄万喜 Simultaneous data processing method of a programing device for treating data from a plurality of chips simultaneously
CN102436219A (en) * 2010-09-29 2012-05-02 中国科学院上海生命科学研究院 Control machine of cultivation environment field monitoring system
CN105493464A (en) * 2013-06-19 2016-04-13 微软技术许可有限责任公司 Dual-tone multi-frequency (DTMF) programming of an auto-dialer
CN105302570A (en) * 2015-11-17 2016-02-03 广州周立功单片机科技有限公司 Chip programming control method and system
CN105302570B (en) * 2015-11-17 2019-05-24 广州周立功单片机科技有限公司 The control method and system of chip programming
CN109154996A (en) * 2016-05-13 2019-01-04 恩图鲁斯特咨询卡有限公司 Multi-protocols smart card iaisci
CN111984288A (en) * 2020-07-29 2020-11-24 深圳市拔超科技有限公司 Remote electronic system upgrading device and method based on MCU and FPGA
CN111984288B (en) * 2020-07-29 2024-04-16 深圳市拔超科技股份有限公司 Remote electronic system upgrading device and method based on MCU and FPGA

Also Published As

Publication number Publication date
CN100421073C (en) 2008-09-24

Similar Documents

Publication Publication Date Title
CN100421073C (en) Universal programmor and programming method
CN100383737C (en) SCM online loading and updating method and system
CN102609286B (en) A kind of FPGA configurator remote update system based on processor control and method thereof
US7293285B2 (en) Method and system for providing field scalability across a storage product family
CN101257567A (en) System and method for television set on-line burn recording MAC address
CN101645055B (en) Logic device on-line loaded method, system and processor
CN109522033B (en) ECU program and data upgrading method based on device operation self-programming and double-interrupt vector table
CN107632846A (en) Firmware upgrade method and device, Shelf management module
CN101853173A (en) Software upgrading method and device of programmable logic device of distributed system
CN103164238A (en) Method for automatically and continuously installing operating system
CN110597523A (en) Board card firmware burning method, device and system, board card and terminal equipment
CN101178656B (en) Board software paralleling download method
CN103605542A (en) Online updater of FPGA configuration files
WO2015183182A1 (en) Optical transceiver device and method
CN108920168B (en) Bootloader method supporting simultaneous upgrading of multiple similar ECUs and having function of preventing program mismatching
CN109451098A (en) FPGA accelerator card MAC Address configuration method, device and accelerator card
CN102253845A (en) Server system
CN104133743A (en) Method and device for burning file into EMMC (Embedded MultiMedia Card)
CN112306937B (en) Setting selection circuit, method, device and medium for mainboard device in server
US20080222404A1 (en) In-system programming system and method for motherboard
CN101593123A (en) The curing of flash recordable plug-in component and terminal device
CN1767544B (en) Slave device in information processing system, operation control program for slave device, and operation control method for slave device
CN116541026A (en) Self-adaptive chip manufacturer bit stream burning method, device, equipment and medium
CN110231951A (en) A kind of multiple single chip microcomputer program upgrade system and its method
CN101189577B (en) Method and device of accessing configuration registers by automatically changing an index

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191225

Address after: No. 99, University Road, high tech Zone, Xuzhou City, Jiangsu Province

Patentee after: XUZHOU LIFANG ELECTROMECHANICAL EQUIPMENT MANUFACTURING CO., LTD.

Address before: Taipei City, Taiwan, China

Patentee before: Yingda Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080924

Termination date: 20191214