CN109491686A - FPGA program on-line upgrading method based on xilinx company k7 series - Google Patents

FPGA program on-line upgrading method based on xilinx company k7 series Download PDF

Info

Publication number
CN109491686A
CN109491686A CN201811301657.6A CN201811301657A CN109491686A CN 109491686 A CN109491686 A CN 109491686A CN 201811301657 A CN201811301657 A CN 201811301657A CN 109491686 A CN109491686 A CN 109491686A
Authority
CN
China
Prior art keywords
fpga
flash
upgrading
program
primary control
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
CN201811301657.6A
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.)
Tianjin Jinhang Institute of Technical Physics
Original Assignee
Tianjin Jinhang Institute of Technical Physics
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 Tianjin Jinhang Institute of Technical Physics filed Critical Tianjin Jinhang Institute of Technical Physics
Priority to CN201811301657.6A priority Critical patent/CN109491686A/en
Publication of CN109491686A publication Critical patent/CN109491686A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to a kind of FPGA program on-line upgrading methods based on xilinx company k7 series, belong to FPGA program on-line upgrading technical field.Two configuration image files are stored when the design of firmware program of the present invention in FPGA, make online upgrading FPGA program reliable and stable by the way of restarting, it is ensured that online upgrading function.That is 2 bit files are stored in FPGA, first is monitoring programme (preventing online upgrading from failing), and second is primary control program, i.e. battle order.Therefore, the present invention is realized through RS422 serial ports, if occurring mistake when online upgrading primary control program in escalation process leads to primary control program upgrading failure, system, which is again powered up, restarts, and will start monitoring programme, moreover it is possible to continue to upgrade primary control program.

Description

FPGA program on-line upgrading method based on xilinx company k7 series
Technical field
The invention belongs to FPGA program on-line upgrading technical fields, and in particular to it is a kind of based on xilinx company k7 series FPGA program on-line upgrading method.
Background technique
FPGA program carries out programming usually using USB artificial mains network, needs to carry out being dismounted for multiple times to equipment, seriously affects and be System working efficiency needs to develop new method realization to the online change of FPGA program, and setting FPGA is main SPI mode, is used for FPGA autonomous load configuration data after powering on is deposited using the Flash storage configuration data of standard SPI interface by changing Flash Data are stored up, the online upgrading of FPGA firmware program can be completed.In escalation process, to complete to write the erasing of Flash chip Enter operation, if making to wipe write operation failure due to power supply, cable etc., upgrading is unable to complete, again updating operation Becoming can not.
Summary of the invention
(1) technical problems to be solved
The technical problem to be solved by the present invention is how to make online upgrading FPGA program reliable and stable, it is ensured that online upgrading Function.
(2) technical solution
In order to solve the above-mentioned technical problems, the present invention provides a kind of FPGA programs based on xilinx company k7 series to exist Line upgrade method, comprising the following steps:
Host computer is sent to FPGA first starts equipment to code instruction, and FPGA online upgrading stream is successfully indicated entry into code Journey, upgrading data are entered in the twoport of FPGA by mother daughter board connector, and DSP will upgrade data buffer storage by EMIF interface, FPGA is communicated by read-write FIFO and FLASH therein, and carries out erasing operation to FLASH first, will after wiping successfully The upgrading data of caching upload in FLASH, and after the completion of upload, DSP sends reading order to FPGA, and FPGA controls FLASH and reads The upgrading data in FLASH are returned, upgrading data are transmitted to DSP by FIFO by FPGA, and DSP carries out full frame verification, and DSP judges to be written Enter FLASH data accumulation and with the data accumulation to read back from FLASH and whether consistent, if unanimously, controlling FPGA write-in and burning Write Success Flag, so that the monitoring programme of FPGA starts, inquire this mark, monitoring programme be responsible for judging last time programming whether at Function, decide whether to jump in primary control program start execute battle order terminate if inconsistent;If programming fails, do not jump Turn, FPGA rests on monitoring programme, if programming success, jumps to the primary control program of FPGA, i.e. battle order.
Preferably, the FPGA uses xilinx preferably, and matching inside k7 is utilized when jumping to the primary control program of FPGA It sets module I CAPE2 and starts more bit file skip command PROGRAM_B, and status word 27'h364C093 is set.
Preferably, the primitive module in the operating process be written and read to FLASH in FPGA, wiped, inside all calling k7 STARTUPE2 realizes the clock control to SPI FLASH chip.
Preferably, when the FPGA uploads to the upgrading data of caching in FLASH, divided stator frame.
Preferably, when the FPGA uploads to the upgrading data of caching in FLASH, 256 byte datas of every packet.
Preferably, the primary control program is battle order.
(3) beneficial effect
Two configuration image files are stored when the design of firmware program of the present invention in FPGA, by the way of restarting Keep online upgrading FPGA program reliable and stable, it is ensured that online upgrading function.That is 2 bit files are stored in FPGA, first is prison It controls program (preventing online upgrading from failing), second is primary control program, i.e. battle order.Therefore, the present invention, which realizes, passes through RS422 serial ports, if occurring mistake when online upgrading primary control program in escalation process leads to primary control program upgrading failure, system is again Secondary power-up is restarted, and monitoring programme will be started, moreover it is possible to continue to upgrade primary control program.
Detailed description of the invention
Fig. 1 is upgrade method flow chart of the invention;
Fig. 2 is system structure diagram of the invention.
Specific embodiment
To keep the purpose of the present invention, content and advantage clearer, with reference to the accompanying drawings and examples, to of the invention Specific embodiment is described in further detail.
As shown in Figure 1, a kind of FPGA program on-line upgrading method based on xilinx company k7 series provided by the invention, The following steps are included:
Host computer is sent first starts equipment to code instruction, and FPGA online upgrading process is successfully indicated entry into code, is upgraded Data are entered in the twoport of FPGA by mother daughter board connector, and DSP will upgrade data buffer storage by EMIF interface, and FPGA passes through it In read-write FIFO and FLASH (SPI FLASH) communicated (as shown in Figure 2), and first to FLASH progress erasing operation, After wiping successfully, the upgrading data of caching are uploaded in FLASH, divided stator frame, 256 byte datas of every packet, uploads and complete Afterwards, DSP gives FPGA to send reading order, and FPGA control FLASH reads back the upgrading data in FLASH, and FPGA leads to upgrading data Cross FIFO and be transmitted to DSP, DSP carries out full frame verification, DSP judge FLASH to be written data accumulation and with the number that reads back from FLASH According to cumulative and whether consistent, if unanimously, controlling FPGA and programming Success Flag being written, so as to the monitoring programme starting of FPGA, look into This mark is ask, monitoring programme is responsible for judging whether last time programming succeeds, and decides whether to jump to and starts to execute work in primary control program War program terminates if inconsistent.If programming fails, do not jump, FPGA rests on monitoring programme, to guarantee next energy Enough continue online upgrading, if programming success, jumps to the primary control program of FPGA, i.e. battle order.
In the present embodiment, FPGA is realized using xilinx company k7 family chip, benefit when jumping to the primary control program of FPGA Start more bit file skip command PROGRAM_B with the configuration module ICAPE2 inside k7, and status word 27' is set h364C093.Primitive module in the operating process be written and read to FLASH in FPGA, wiped, inside all calling k7 The existing clock control to SPI FLASH chip of STARTUPE2.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, without departing from the technical principles of the invention, several improvement and deformations can also be made, these improvement and deformations Also it should be regarded as protection scope of the present invention.

Claims (7)

1. a kind of FPGA program on-line upgrading method based on xilinx company k7 series, which comprises the following steps:
Host computer is sent to FPGA first starts equipment to code instruction, and FPGA online upgrading process is successfully indicated entry into code, is risen Grade data are entered in the twoport of FPGA by mother daughter board connector, and DSP will upgrade data buffer storage by EMIF interface, and FPGA passes through Read-write FIFO and FLASH therein is communicated, and carries out erasing operation to FLASH first, after wiping successfully, by the liter of caching Grade data upload in FLASH, and after the completion of upload, DSP sends reading order to FPGA, and FPGA control FLASH reads back in FLASH Upgrading data, upgrading data are transmitted to DSP by FIFO by FPGA, and DSP carries out full frame verification, and DSP judges FLASH's to be written Data accumulation and with the data accumulation to read back from FLASH and whether consistent, if unanimously, controlling FPGA write-in programming and successfully marking Will inquires this mark, monitoring programme is responsible for judging whether last time programming succeeds, and decision is so that the monitoring programme of FPGA starts It is no jump in primary control program start execute battle order terminate if inconsistent;If programming fails, do not jump, FPGA stops Monitoring programme is stayed in, if programming success, jumps to the primary control program of FPGA, i.e. battle order.
2. the method as described in claim 1, which is characterized in that the FPGA is realized using xilinx company k7 family chip.
3. method according to claim 2, which is characterized in that utilize the configuration inside k7 when jumping to the primary control program of FPGA Module I CAPE2 starts more bit file skip command PROGRAM_B, and status word 27'h364C093 is arranged.
4. method according to claim 2, which is characterized in that in the operating process that FPGA is written and read FLASH, wipes In, the primitive module STARTUPE2 inside calling k7 realizes the clock control to SPI FLASH chip.
5. the method as described in claim 1, which is characterized in that the FPGA uploads to the upgrading data of caching in FLASH When, divided stator frame.
6. method as claimed in claim 5, which is characterized in that the FPGA uploads to the upgrading data of caching in FLASH When, 256 byte datas of every packet.
7. such as method described in any one of claims 1 to 6, which is characterized in that the primary control program is battle order.
CN201811301657.6A 2018-11-02 2018-11-02 FPGA program on-line upgrading method based on xilinx company k7 series Pending CN109491686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811301657.6A CN109491686A (en) 2018-11-02 2018-11-02 FPGA program on-line upgrading method based on xilinx company k7 series

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811301657.6A CN109491686A (en) 2018-11-02 2018-11-02 FPGA program on-line upgrading method based on xilinx company k7 series

Publications (1)

Publication Number Publication Date
CN109491686A true CN109491686A (en) 2019-03-19

Family

ID=65692227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811301657.6A Pending CN109491686A (en) 2018-11-02 2018-11-02 FPGA program on-line upgrading method based on xilinx company k7 series

Country Status (1)

Country Link
CN (1) CN109491686A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096300A (en) * 2019-04-08 2019-08-06 上海赛治信息技术有限公司 A kind of fpga program file backup management system, operation method and upgrade method
CN111190855A (en) * 2019-12-13 2020-05-22 南京理工大学 FPGA multiple remote configuration system and method
CN111506335A (en) * 2020-04-27 2020-08-07 湖北三江航天红峰控制有限公司 DSP + FPGA-based program online upgrading method and system
CN112114831A (en) * 2020-09-16 2020-12-22 天津津航计算技术研究所 Firmware programming implementation method based on UART interface
CN112306535A (en) * 2020-11-10 2021-02-02 明峰医疗系统股份有限公司 High-reliability MCU remote upgrading system and method
CN112732635A (en) * 2021-01-11 2021-04-30 中国船舶重工集团公司第七0七研究所 FPGA (field programmable Gate array) reconstruction system and method based on-line update of SPI FLASH
CN113377408A (en) * 2021-06-08 2021-09-10 北京计算机技术及应用研究所 High-reliability SRAM type FPGA online upgrading method and system
CN113672271A (en) * 2021-08-24 2021-11-19 天津津航计算技术研究所 Domestic FPGA remote upgrading system and method
CN114217839A (en) * 2021-12-23 2022-03-22 贵州航天控制技术有限公司 Software online self-updating method for DSP chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320531A (en) * 2014-07-15 2016-02-10 北京自动化控制设备研究所 Online FPGA software upgrading method based on MicroBlaze soft core
CN105373407A (en) * 2015-12-07 2016-03-02 中国船舶重工集团公司第七〇五研究所 DSP and FPGA online upgrading method for embedded system
CN106547574A (en) * 2016-12-08 2017-03-29 航天恒星科技有限公司 The outside download system and method for a kind of DSP programs and FPGA programs
CN106648803A (en) * 2016-12-30 2017-05-10 南京科远自动化集团股份有限公司 Online upgrading method for DSP chip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320531A (en) * 2014-07-15 2016-02-10 北京自动化控制设备研究所 Online FPGA software upgrading method based on MicroBlaze soft core
CN105373407A (en) * 2015-12-07 2016-03-02 中国船舶重工集团公司第七〇五研究所 DSP and FPGA online upgrading method for embedded system
CN106547574A (en) * 2016-12-08 2017-03-29 航天恒星科技有限公司 The outside download system and method for a kind of DSP programs and FPGA programs
CN106648803A (en) * 2016-12-30 2017-05-10 南京科远自动化集团股份有限公司 Online upgrading method for DSP chip

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张永乐等: "一种基于FPGA的在线程序升级方案", 《电子技术应用》 *
黄彦勃等: "基于多次加载方案的嵌入式飞控软件在线升级方法", 《无线电工程》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110096300A (en) * 2019-04-08 2019-08-06 上海赛治信息技术有限公司 A kind of fpga program file backup management system, operation method and upgrade method
CN111190855A (en) * 2019-12-13 2020-05-22 南京理工大学 FPGA multiple remote configuration system and method
CN111506335A (en) * 2020-04-27 2020-08-07 湖北三江航天红峰控制有限公司 DSP + FPGA-based program online upgrading method and system
CN112114831A (en) * 2020-09-16 2020-12-22 天津津航计算技术研究所 Firmware programming implementation method based on UART interface
CN112114831B (en) * 2020-09-16 2023-08-01 天津津航计算技术研究所 Firmware programming realization method based on UART interface
CN112306535A (en) * 2020-11-10 2021-02-02 明峰医疗系统股份有限公司 High-reliability MCU remote upgrading system and method
CN112732635A (en) * 2021-01-11 2021-04-30 中国船舶重工集团公司第七0七研究所 FPGA (field programmable Gate array) reconstruction system and method based on-line update of SPI FLASH
CN113377408A (en) * 2021-06-08 2021-09-10 北京计算机技术及应用研究所 High-reliability SRAM type FPGA online upgrading method and system
CN113377408B (en) * 2021-06-08 2023-07-14 北京计算机技术及应用研究所 High-reliability SRAM type FPGA online upgrading method and system
CN113672271A (en) * 2021-08-24 2021-11-19 天津津航计算技术研究所 Domestic FPGA remote upgrading system and method
CN114217839A (en) * 2021-12-23 2022-03-22 贵州航天控制技术有限公司 Software online self-updating method for DSP chip

Similar Documents

Publication Publication Date Title
CN109491686A (en) FPGA program on-line upgrading method based on xilinx company k7 series
CN104102518B (en) double-CPU system and program upgrading method thereof
CN101557583B (en) Remote-updating and version-switching method of repeater equipment embedded software
CN102999350B (en) A kind of FPGA program upgrading download online method in digital signal processing platform
CN102023908B (en) Method and device for backing up boot program
CN103777972A (en) System based on field-programmable gate array, configuration method and upgrading method
CN107562437B (en) FPGA (field programmable Gate array) online upgrading system and method based on MicroBlaze soft core
CN113377408B (en) High-reliability SRAM type FPGA online upgrading method and system
JP2011524555A (en) Storage system having volatile memory and nonvolatile memory
CN105677398A (en) Universal embedded computer software on-line upgrading method
CN109614125B (en) Firmware programming method, device and medium for solid state disk
CN112947978A (en) Method for upgrading firmware based on chip usbhid, terminal device and computer readable storage medium
CN105955764A (en) Improvement method for STM32 single-chip microcomputer IAP serial program burning
CN104219082A (en) LKJ equipment data remote-loading method and system
CN106874054A (en) A kind of repeater inner module program on-line upgrading method and system
CN109358865A (en) A kind of industrial vehicle car networking instrument and upgrade method with remote upgrade function
CN104077166A (en) EPCS and EPCQ storer online upgrading method based on IP core in FPGA
CN110196726A (en) A method of the load of FPGA program remote upgrading is realized based on CPU+CPLD
CN110096290A (en) A kind of battery simulator master control borad method for upgrading software
CN111104147A (en) BMC upgrading method, device, terminal and storage medium
CN102495746A (en) Onboard embedded computer data loading method
CN108182079A (en) A kind of TMS320C6748 program loading methods based on serial ports
CN108874422B (en) Software online upgrading method for refrigerator electric control board, refrigerator electric control board and refrigerator
CN106569864A (en) Remote online updating method and system for battery management unit
CN110647339A (en) Embedded product software online upgrading method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190319