[go: up one dir, main page]

CN100426233C - Method for automatically configurating programmable device by inlaid CPU - Google Patents

Method for automatically configurating programmable device by inlaid CPU Download PDF

Info

Publication number
CN100426233C
CN100426233C CNB2005101206407A CN200510120640A CN100426233C CN 100426233 C CN100426233 C CN 100426233C CN B2005101206407 A CNB2005101206407 A CN B2005101206407A CN 200510120640 A CN200510120640 A CN 200510120640A CN 100426233 C CN100426233 C CN 100426233C
Authority
CN
China
Prior art keywords
file
cpu
information
programmable device
pin
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.)
Expired - Fee Related
Application number
CNB2005101206407A
Other languages
Chinese (zh)
Other versions
CN1979415A (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005101206407A priority Critical patent/CN100426233C/en
Publication of CN1979415A publication Critical patent/CN1979415A/en
Application granted granted Critical
Publication of CN100426233C publication Critical patent/CN100426233C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

本发明公开了一种由嵌入式CPU自动配置可编程器件的方法,其包括以下步骤:所述CPU连接一可编程器件,所述可编程器件的可编程引脚用于指示是否配置,已配置的可编程器件在该引脚输出低电平,所述CPU的通用输入输出引脚检测到低电平时表示该可编程器件已经下载;否则在上电时自动下载配置文件;在所述CPU的引导存储器中存放硬件配置文件,包括存储在程序空间的文件系统信息表项、文件信息表项和生成引导存储器映像的分析处理程序。本发明方法由于在单板上电后自动下载CPLD配置文件,减少了生产中的工序;并可提供远程升级更新功能,使升级维护简单易操作;存储空间使用更合理,便于软硬件独立开发、独立升级。

Figure 200510120640

The invention discloses a method for automatically configuring a programmable device by an embedded CPU, which includes the following steps: the CPU is connected to a programmable device, and the programmable pin of the programmable device is used to indicate whether to configure, configured The programmable device outputs a low level at this pin, and when the general-purpose input and output pin of the CPU detects a low level, it indicates that the programmable device has been downloaded; otherwise, the configuration file is automatically downloaded when the power is turned on; Hardware configuration files are stored in the boot memory, including file system information entries stored in the program space, file information entries, and analysis processing programs for generating boot memory images. Because the method of the present invention automatically downloads the CPLD configuration file after the single board is powered on, the process in the production is reduced; and the remote upgrade and update function can be provided to make the upgrade and maintenance simple and easy to operate; the use of storage space is more reasonable, and it is convenient for independent development of software and hardware. Upgrade independently.

Figure 200510120640

Description

一种由嵌入式CPU自动配置可编程器件的方法 A Method of Automatically Configuring Programmable Devices by Embedded CPU

技术领域 technical field

本发明涉及一种嵌入式应用中由CPU配置可编程器件(CPLD)的方法,尤其涉及的是一种涉及CPLD配置文件存储以及自动下载和远程更新的方法。The invention relates to a method for configuring a programmable device (CPLD) by a CPU in an embedded application, in particular to a method involving CPLD configuration file storage, automatic download and remote update.

背景技术 Background technique

随着可编程器件的广泛、深入应用,为了缩减成本、减少工序、增加远程可配置特性,嵌入式设备越来越多采用单板CPU下载可编程器件的配置文件。一般单板在生产过程中,需要首先将引导程序烧写到引导存储器上,然后对每一块单板下载可编程器件逻辑,如果能将可编程器件下载文件与引导程序结合起来,由嵌入CPU上电判断并自动下载配置文件,则可省去一道手工下载可编程逻辑的工序。With the widespread and in-depth application of programmable devices, in order to reduce costs, reduce processes, and increase remote configurable features, more and more embedded devices use single-board CPUs to download configuration files of programmable devices. Generally, in the production process of a single board, it is necessary to first burn the boot program into the boot memory, and then download the logic of the programmable device for each board. By electrical judgment and automatic download of configuration files, a process of manually downloading programmable logic can be saved.

要实现CPLD上电下载,前提是CPU能够不依赖该CPLD独立运行,也就是说,CPU的复位逻辑、引导存储器和DRAM的片选读写在CPLD引脚为高阻时能正常使用。因此应将配置文件存放在引导存储器中,以使CPLD的自动下载对硬件的依赖降低。引导存储器一般采用容量较小的NORFLASH,该FLASH称为引导存储器BOOT FLASH。To realize CPLD power-on and download, the premise is that the CPU can run independently without relying on the CPLD, that is to say, the CPU reset logic, boot memory and DRAM chip select read and write can be used normally when the CPLD pin is high impedance. Therefore, the configuration file should be stored in the boot memory, so that the automatic download of the CPLD is less dependent on the hardware. The boot memory generally uses NORFLASH with a smaller capacity, which is called the boot memory BOOT FLASH.

目前在BOOT FLASH上存储硬件配置文件,主要是有两种方法:At present, there are two main methods for storing hardware configuration files on BOOT FLASH:

第一种是将配置文件转换为静态数组,将其编译进程序中。这种方法的优点是配置文件与BOOT程序结合紧密,但是缺点也很明显,配置文件失去独立性,每次升级配置文件都需要重新编译,并且不能动态更新。The first is to convert the configuration file into a static array, which is compiled into the program. The advantage of this method is that the configuration file is closely combined with the BOOT program, but the disadvantage is also obvious. The configuration file loses its independence, and the configuration file needs to be recompiled every time it is upgraded, and it cannot be updated dynamically.

第二种是在BOOT FLASH中分区,将配置文件放在独立的区域中。这种方法满足了配置文件的独立性,但是与BOOT程序结合比较松散,不能充分利用存储器空间,分区的位置、大小难于把握,在BOOT程序和配置文件独立开发、升级时很容易相互影响。The second is to partition in BOOT FLASH and place configuration files in a separate area. This method satisfies the independence of the configuration file, but it is loosely combined with the BOOT program, and cannot make full use of the memory space.

因此,现有技术存在缺陷,而有待于改进和发展。Therefore, there are defects in the prior art and need to be improved and developed.

发明内容 Contents of the invention

本发明的目的在于提供一种由嵌入式CPU自动配置可编程器件的方法,在单板上电后能自动配置CPLD,并通过命令可远程更新CPLD;The purpose of the present invention is to provide a method for automatically configuring a programmable device by an embedded CPU, which can automatically configure the CPLD after the single board is powered on, and can remotely update the CPLD through commands;

本发明的进一步目的是提供一种由嵌入式CPU自动配置可编程器件的方法,适合嵌入式应用中BOOT FLASH中存放硬件配置文件统一方案,使多个硬件配置文件与CPU引导映像紧密结合,使其占用的空间最小化;A further object of the present invention is to provide a method for automatically configuring programmable devices by an embedded CPU, which is suitable for a unified solution for storing hardware configuration files in BOOT FLASH in embedded applications, so that multiple hardware configuration files are closely combined with the CPU boot image, so that The space it occupies is minimized;

本发明更进一步的目的在于提供一种由嵌入式CPU自动配置可编程器件的方法,实现对存储在BOOT FLASH上的硬件配置文件完整性检测机制、文件备份机制、压缩机制、配置信息等。A further object of the present invention is to provide a method for automatically configuring programmable devices by an embedded CPU, to realize the integrity detection mechanism, file backup mechanism, compression mechanism, configuration information, etc. of the hardware configuration files stored on the BOOT FLASH.

本发明的技术方案包括:Technical scheme of the present invention comprises:

一种由嵌入式CPU自动配置可编程器件的方法,其包括以下步骤:A method for automatically configuring a programmable device by an embedded CPU, comprising the following steps:

所述CPU连接一可编程器件,所述可编程器件的可编程引脚用于指示是否配置,已配置的可编程器件在该引脚输出低电平,所述CPU的通用输入输出引脚检测到低电平时表示该可编程器件已经下载;否则在上电时自动下载配置文件;The CPU is connected to a programmable device, the programmable pin of the programmable device is used to indicate whether to configure, the configured programmable device outputs a low level at this pin, and the general input and output pin of the CPU detects When it reaches a low level, it means that the programmable device has been downloaded; otherwise, the configuration file is automatically downloaded when the power is turned on;

在所述CPU的引导存储器中存放硬件配置文件,包括存储在程序空间的文件系统信息表项、文件信息表项和生成引导存储器映像的分析处理程序。The hardware configuration file is stored in the boot memory of the CPU, including file system information entries, file information entries and analysis processing programs for generating boot memory images stored in the program space.

所述的方法,其中,所述生成引导存储器映像的分析处理程序还包括步骤:The method, wherein the analysis processing program for generating the boot memory image further includes the steps of:

A、读入引导程序映像文件,并对是否有文件系统信息进行判断,如否则输出提示信息,并结束流程;A. Read in the bootloader image file, and judge whether there is file system information, if not, output a prompt message, and end the process;

B、如果有文件系统信息,则读入需存放在引导存储器中的文件及其文件系统信息和文件信息;B, if there is file system information, then read in the file and its file system information and file information that need to be stored in the boot memory;

C、判断是否有足够的文件信息表项及存储空间,如否,则输出提示信息,并结束流程;如是,则生成新的引导存储器映像文件;并判断是否还有其他文件,如有则依次循环对每一文件进行处理;否则,结束流程。C. Judging whether there are enough file information entries and storage space, if not, then output a prompt message, and end the process; if so, generate a new boot memory image file; and judge whether there are other files, and if so, proceed sequentially Loop to process each file; otherwise, end the process.

所述的方法,其中,所述可编程器件的可编程引脚连接有一发光二极管,用于指示所述可编程器件的配置文件下载情况。The method, wherein, the programmable pin of the programmable device is connected with a light emitting diode, which is used to indicate the configuration file download status of the programmable device.

所述的方法,其中,还包括步骤:The method, wherein, also includes the steps of:

B1、如需压缩,对文件进行压缩,以减少存储空间;并计算文件CRC校验值。B1. If compression is required, the file is compressed to reduce storage space; and the CRC check value of the file is calculated.

所述的方法,其中,所述文件系统信息的表项和文件信息的表项位于程序空间内,并且其表地址不会随着程序的重新编译而改变位置。Said method, wherein, said entry of file system information and entry of file information are located in the program space, and the address of the table will not change with the recompilation of the program.

所述的方法,其中,所述文件系统信息的表项包括文件信息表项的数量和首表地址字段信息。The method described above, wherein the file system information entries include the number of file information entries and the address field information of the first table.

所述的方法,其中,所述方法还包括所述配置文件的远程升级过程,包括:The method, wherein the method also includes a remote upgrade process of the configuration file, including:

A1、所述分析处理程序生成新的引导存储器映像;A1, the analysis processing program generates a new boot memory image;

B1、所述主机通过远程网管命令重新下载可编程器件配置文件。B1. The host re-downloads the programmable device configuration file through a remote network management command.

本发明所提供的一种由嵌入式CPU自动配置可编程器件的方法,与现有技术相比,由于在单板上电后自动下载CPLD配置文件,减少了生产中的工序;并可提供远程升级更新功能,使升级维护简单易操作;存储空间使用更合理,所存储文件与BOOT程序相对独立,便于软硬件独立开发、独立升级。Compared with the prior art, the method for automatically configuring programmable devices provided by the embedded CPU in the present invention reduces the process in production because the CPLD configuration file is automatically downloaded after the single board is powered on; and it can provide remote The upgrade and update function makes the upgrade and maintenance simple and easy to operate; the use of storage space is more reasonable, and the stored files are relatively independent of the BOOT program, which is convenient for independent development and independent upgrade of software and hardware.

附图说明 Description of drawings

图1为本发明方法的硬件连接示意图;Fig. 1 is the hardware connection schematic diagram of the inventive method;

图2为本发明方法的BOOT FLASH存储结构示意图;Fig. 2 is the BOOT FLASH storage structure schematic diagram of the inventive method;

图3为本发明方法的主机分析处理流程图。Fig. 3 is a flow chart of host analysis processing of the method of the present invention.

具体实施方式 Detailed ways

以下结合附图,将对本发明的各较佳实施例进行较为详细的说明。Various preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

本发明提供了一种由嵌入式CPU自动配置可编程器件的方法,在单板上电后能自动配置CPLD,并通过命令可远程更新CPLD;本发明方法是适合嵌入式应用中引导存储器BOOT FLASH中存放硬件配置文件统一方案,其特点是可以使多个硬件配置文件与CPU引导映像紧密结合,使其占用的空间最小化;同时,本发明方法提供了存储在BOOT FLASH上的硬件配置文件完整性检测机制、文件备份机制、压缩机制、配置信息等内容,保留了现有技术两种方法的优点,并克服了现有技术的缺陷。The invention provides a method for automatically configuring a programmable device by an embedded CPU, which can automatically configure a CPLD after the single board is powered on, and remotely update the CPLD through commands; the method of the invention is suitable for booting memory BOOT FLASH in embedded applications A unified solution for storing hardware configuration files in the middle, which is characterized in that multiple hardware configuration files can be closely combined with the CPU boot image to minimize the space it occupies; at the same time, the method of the present invention provides a complete hardware configuration file stored on the BOOT FLASH. The advantages of the two methods in the prior art are retained, and the defects of the prior art are overcome.

本发明方法适合引导存储器中存放硬件配置文件,包括存储在程序空间的文件系统信息表项、文件信息表项和生成BOOT FLASH映像的分析处理程序。所述文件系统信息表项和文件信息表项位于程序空间,并且表地址不会随着程序的重新编译而改变位置,包括文件信息表项的数量和首表地址等字段信息。所述文件信息表项包括文件有效字段、文件存储地址、文件长度、文件名称、生成时间、版本、CRC校验值、压缩格式、硬件相关标识等字段。The method of the invention is suitable for storing hardware configuration files in the boot memory, including file system information entries, file information entries and analysis processing programs for generating BOOT FLASH images stored in the program space. The file system information table item and file information table item are located in the program space, and the table address will not change position with the recompilation of the program, including field information such as the number of file information table items and the address of the first table. The file information entry includes fields such as file valid field, file storage address, file length, file name, generation time, version, CRC check value, compression format, and hardware-related identification.

所述文件系统信息表项字段由编译时根据需要确定,文件信息表项由分析处理程序根据所加文件信息填入。所述分析处理程序位于主机,以便生成整个BOOT FLASH映像。The file system information table item field is determined according to needs during compilation, and the file information table item is filled in by the analysis and processing program according to the added file information. The analysis processing program is located in the host computer so as to generate the entire BOOT FLASH image.

本发明所述的远程升级更新分为两步操作:一是用分析处理程序生成新的BOOTFLASH映像文件,并且通过FTP等方式远程下载到目标单板,并更新BOOTFLASH;二是通过远程网管命令重新下载新的CPLD配置文件。The remote upgrade update described in the present invention is divided into two steps: one is to generate a new BOOTFLASH image file with the analysis processing program, and remotely download it to the target single board through FTP and other methods, and update the BOOTFLASH; Download the new CPLD configuration file.

如图1所示的,本发明方法的硬件电路系统中,CPLD的JTAG接口连接到CPU的GPIO引脚上,由CPU模拟JTAG时序下载CPLD配置文件,其间的连接线同时连接外部下载电路及接插件。另有CPLD I/O引脚指示该器件是否已经配置,该引脚被编程为输出低电平,因此如果配置成功,CPU可以检测到低电平,否则由于该引脚本身为高阻的电阻R1和发光二极管HL1串联到VCC上,CPU将检测到高电平。HL1将在正常下载后点亮,没有下载或者下载过程中HL1不亮,从而可以用于指示下载状态,HL1的状态显示给单板维修提供了方便。As shown in Figure 1, in the hardware circuit system of the inventive method, the JTAG interface of CPLD is connected on the GPIO pin of CPU, downloads CPLD configuration file by CPU simulation JTAG sequence, and connecting line therebetween connects external downloading circuit and connection simultaneously. plugin. Another CPLD I/O pin indicates whether the device has been configured, and the pin is programmed to output a low level, so if the configuration is successful, the CPU can detect the low level, otherwise because the pin itself is a high-impedance resistor R1 and light-emitting diode HL1 are connected in series to VCC, and the CPU will detect a high level. HL1 will light up after a normal download, if there is no download or the HL1 is off during the download process, it can be used to indicate the download status, and the status display of HL1 provides convenience for board maintenance.

本发明方法用一CPLD可编程引脚指示是否配置,已配置的CPLD在该引脚输出低电平,发光二极管导通发光,CPU的通用输入输出引脚(GPIO)检测到低电平时表示CPLD已经下载,否则在上电时自动下载配置文件。The method of the present invention uses a CPLD programmable pin to indicate whether it is configured, and the configured CPLD outputs a low level at the pin, and the light-emitting diode turns on and emits light. When the general input and output pin (GPIO) of the CPU detects a low level, it indicates that the CPLD Already downloaded, otherwise the configuration file will be downloaded automatically when power on.

本发明方法的配置文件与BOOT程序紧密结合,同时具有相对独立性,因此定义了文件的系统信息和文件信息表,如图2所示的,具体如下:The configuration file of the inventive method is closely combined with the BOOT program, and has relative independence simultaneously, therefore defines the system information and the file information table of the file, as shown in Figure 2, specifically as follows:

文件系统信息和文件信息必须有一个固定的地址,这样分析程序和实现文件操作的嵌入程序才能正确地添加、修改、读取文件。为此在程序段BOOT入口点或在必要操作之后放置JMP(无条件转移),此后定义文件系统信息和文件信息,以及存放对应各文件信息的文件,在所有文件信息和所有文件之间设置为BOOT程序。BOOT入口地址到该JMP指令这段程序一般不会轻易改变,因此文件系统信息表的地址也就固定如下公式:File system information and file information must have a fixed address, so that the analysis program and the embedded program that implements file operations can correctly add, modify, and read files. For this reason, place JMP (unconditional transfer) at the BOOT entry point of the program segment or after the necessary operation, then define the file system information and file information, and store the files corresponding to each file information, and set it as BOOT between all file information and all files program. The program from the BOOT entry address to the JMP instruction is generally not easily changed, so the address of the file system information table is fixed as follows:

信息表的首地址=BOOT入口地址+信息表之前指令空间长度The first address of the information table = BOOT entry address + the length of the instruction space before the information table

由于BOOT入口程序一般由汇编语言写成,因此对文件系统表的定义也采用汇编的方式,这里仅说明字段信息的具体实例。Since the BOOT entry program is generally written in assembly language, the definition of the file system table is also compiled in the form of assembly. Here, only specific examples of field information are described.

所述文件系统信息表字段可以包括:The file system information table fields may include:

1.FILE_SYS_VALID:文件系统有效标志,不同的应用系统可以采用不同的标志。1. FILE_SYS_VALID: File system valid flag, different application systems can use different flags.

2.FILE_HEAD_NUM:可以容纳文件表的数量。2. FILE_HEAD_NUM: The number of file tables that can be accommodated.

3.FIRST_FILEH_ADDR:第一个文件信息表的地址。3. FIRST_FILEH_ADDR: The address of the first file information table.

所述文件信息字段:The file information fields:

1.FILE_VALID:表示是否是文件或目录,还是空信息。1. FILE_VALID: indicates whether it is a file or directory, or empty information.

2.FILE_ADDR:文件地址。2. FILE_ADDR: file address.

3.FILE_LENTH:文件长度。3.FILE_LENTH: file length.

4.FILE_NAME:文件名称。4. FILE_NAME: file name.

5.FILE_CREATE_TIME:文件创建时间。5. FILE_CREATE_TIME: File creation time.

6.FILE_VERSION:文件版本。6. FILE_VERSION: file version.

7.FILE_COMPRESS:文件压缩方式,如为0表示没有压缩。7. FILE_COMPRESS: File compression method, if it is 0, it means no compression.

8.FILE_CRC_VALUE:CRC校验值。8. FILE_CRC_VALUE: CRC check value.

9.FILE_HARDWARE:硬件相关信息,可以是配置器件对应的位号。9. FILE_HARDWARE: Hardware-related information, which can be the bit number corresponding to the configuration device.

本发明方法的所述文件系统信息表字段和文件信息字段,可以根据需要适当增删,只要与分析处理程序定义一致就可以。The file system information table fields and file information fields of the method of the present invention can be appropriately added or deleted as required, as long as they are consistent with the definition of the analysis and processing program.

所述文件系统信息在采用伪汇编定义好,文件信息字段在汇编程序中只定义占位空间,具体信息由分析处理程序在增加文件时写入。本发明方法在主机上的分析处理程序作为一个工具存在,如果分析程序位于目标机,并且BOOT空间可写,则可以实现动态改写存储的文件。The file system information is defined by pseudo-assembly, and the file information field is only defined in the assembly program to occupy space, and the specific information is written by the analysis and processing program when adding files. The analysis and processing program of the method of the present invention exists as a tool on the host machine, and if the analysis program is located in the target machine and the BOOT space is writable, the stored files can be dynamically rewritten.

本发明方法中的应用程序可以通过预定义的函数访问存储空间内的文件所有信息,包括文件系统信息和文件信息,以及文件内容等。The application program in the method of the present invention can access all file information in the storage space through a predefined function, including file system information, file information, and file content.

本发明方法可以通过文件的方式扩展子目录,一般在容量较小的BOOTFLASH上没有必要,定义足够的文件信息表就可以了。在本发明方法中还定义了两个文件,可以互为备份,以增强数据的安全性。The method of the present invention can expand the subdirectory in the form of files, which is generally not necessary on the BOOTFLASH with a small capacity, and it is enough to define enough file information tables. In the method of the present invention, two files are also defined, which can serve as mutual backups to enhance data security.

本发明方法中的CPLD的远程升级可以采用与BOOT程序升级的相同的方法,这样便于统一管理,CPLD的远程更新可通过网管下达更新命令。The remote upgrade of the CPLD in the method of the present invention can adopt the same method as that of the BOOT program upgrade, which is convenient for unified management, and the remote upgrade of the CPLD can issue an update command through the network management.

本发明方法的所述主机分析流程如图3所示的,其包括步骤:The host analysis process of the method of the present invention is as shown in Figure 3, which includes steps:

流程开始后,首先读入BOOT程序映像文件,并对是否有文件系统信息进行判断,如否则输出提示信息,并结束流程。After the process starts, first read in the BOOT program image file, and judge whether there is file system information, if not, output a prompt message, and end the process.

如果有文件系统信息,则读入需存放在BOOT FLASH中的文件及其信息,如需压缩,对文件进行压缩,以减少存储空间;并计算文件CRC校验值,以防文件出错。If there is file system information, read in the files and their information that need to be stored in BOOT FLASH. If compression is required, compress the files to reduce storage space; and calculate the CRC check value of the files to prevent file errors.

判断是否有足够的文件信息表项及存储空间,如否,则输出提示信息,并结束流程。如是,则生成新的BOOT FLASH映像文件;然后判断是否还有其他文件,如有则依次对每一文件进行处理。否则,结束流程。Judging whether there are enough file information entries and storage space, if not, output a prompt message and end the process. If so, then generate a new BOOT FLASH image file; then judge whether there are other files, and if so, process each file in turn. Otherwise, end the process.

本发明由嵌入式CPU自动配置可编程器件的方法,由于在单板上电后自动下载CPLD,减少了生产中的工序;并可提供远程升级更新功能,使升级维护简单易操作;存储空间使用更合理,所存储文件与BOOT程序相对独立,便于软硬件独立开发、独立升级。The method of the present invention automatically configures the programmable device by the embedded CPU, since the CPLD is automatically downloaded after the single board is powered on, the process in the production is reduced; and the remote upgrade and update function can be provided to make the upgrade and maintenance simple and easy to operate; the storage space is used More reasonable, the stored files are relatively independent from the BOOT program, which is convenient for independent development and independent upgrade of software and hardware.

应当理解的是,上述针对具体实施例的描述较为详细,并不能因此而认为是对本发明专利保护范围的限制,本发明的专利保护范围应以所附权利要求为准。It should be understood that the above descriptions for specific embodiments are relatively detailed, and should not be considered as limiting the scope of the patent protection of the present invention, and the scope of protection of the patent protection of the present invention should be determined by the appended claims.

Claims (6)

1, a kind of method by the automatic configurating programmable device of embedded type CPU, it may further comprise the steps:
Described CPU connects a programming device, the programmable pin of described programming device is used to indicate whether configuration, the programming device that has disposed is in this pin output low level, represents when the general input and output pin of described CPU detects low level that this programming device downloads; Otherwise automatic download configuration file when powering on;
In the bootstrap memory of described CPU, deposit hardware profile, comprise filesystem information list item, fileinfo list item that is stored in the program space and the analysis and processing program that generates the bootstrap memory reflection;
Wherein, the analysis and processing program of described generation bootstrap memory reflection also comprises step:
A, read in the boot image file, and to whether having filesystem information to judge, as otherwise the output information, and process ends;
If B has filesystem information, then read in file and the filesystem information and the fileinfo that need leave in the bootstrap memory;
C, judge whether enough fileinfo list item and storage space,, then export information as not, and process ends; In this way, then generate new bootstrap memory image file; And judge whether alternative document in addition, if any then circulating successively each file is handled; Otherwise, process ends.
2, method according to claim 1 is characterized in that, the programmable pin of described programming device is connected with a light emitting diode, is used to indicate the configuration file of described programming device to download situation.
3, method according to claim 1 is characterized in that, after the described step B, also comprises step before the step C:
B1, as need compressions, file is compressed, to reduce storage space; And calculation document CRC check value.
4, method according to claim 1 is characterized in that, the list item of described filesystem information and the list item of fileinfo are positioned at the program space, and its table address can not change the position along with the recompility of program.
5, method according to claim 1 is characterized in that, the list item of described filesystem information comprises the quantity and the first table address field information of fileinfo list item.
6, method according to claim 1 is characterized in that, also comprises the remote upgrade procedure of described configuration file after the described step C, specifically comprises:
D1, described analysis and processing program generate new bootstrap memory reflection;
D2, described main frame are downloaded the programming device configuration file again by the remote network management order.
CNB2005101206407A 2005-12-09 2005-12-09 Method for automatically configurating programmable device by inlaid CPU Expired - Fee Related CN100426233C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101206407A CN100426233C (en) 2005-12-09 2005-12-09 Method for automatically configurating programmable device by inlaid CPU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101206407A CN100426233C (en) 2005-12-09 2005-12-09 Method for automatically configurating programmable device by inlaid CPU

Publications (2)

Publication Number Publication Date
CN1979415A CN1979415A (en) 2007-06-13
CN100426233C true CN100426233C (en) 2008-10-15

Family

ID=38130595

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101206407A Expired - Fee Related CN100426233C (en) 2005-12-09 2005-12-09 Method for automatically configurating programmable device by inlaid CPU

Country Status (1)

Country Link
CN (1) CN100426233C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077097B (en) * 2013-02-25 2015-08-12 国电南瑞科技股份有限公司 A kind of FLASH data programming method based on verifying under TCP mode
CN111694576B (en) * 2020-05-22 2023-06-13 中国航空工业集团公司西安航空计算技术研究所 Comprehensive avionics system software deployment control method
CN113407223A (en) * 2021-06-28 2021-09-17 新华三信息安全技术有限公司 Programmable logic device online upgrading method and system
CN115098123A (en) * 2022-05-05 2022-09-23 深圳市飞思通信技术有限公司 Millimeter wave terminal equipment, single board and operation method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002008888A2 (en) * 2000-07-20 2002-01-31 Celoxica Limited System, method, and article of manufacture for a reconfigurable hardware-based multimedia device
US6553491B1 (en) * 1999-12-29 2003-04-22 Intel Corporation Configuring devices in a computer system
CN1523510A (en) * 2003-02-18 2004-08-25 明基电通股份有限公司 Method and device for repeatedly downloading data to field programmable gate array
CN1677346A (en) * 2004-04-01 2005-10-05 迈普(四川)通信技术有限公司 Programmable device program update method and board card capable of updating program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553491B1 (en) * 1999-12-29 2003-04-22 Intel Corporation Configuring devices in a computer system
WO2002008888A2 (en) * 2000-07-20 2002-01-31 Celoxica Limited System, method, and article of manufacture for a reconfigurable hardware-based multimedia device
CN1523510A (en) * 2003-02-18 2004-08-25 明基电通股份有限公司 Method and device for repeatedly downloading data to field programmable gate array
CN1677346A (en) * 2004-04-01 2005-10-05 迈普(四川)通信技术有限公司 Programmable device program update method and board card capable of updating program

Also Published As

Publication number Publication date
CN1979415A (en) 2007-06-13

Similar Documents

Publication Publication Date Title
CN103365696B (en) BIOS image file acquisition methods and device
CN101477471B (en) Embedded system firmware on-line upgrading method
CN109783117B (en) Method for making and starting image file of a diskless system
CN107977217B (en) Method for online loading XILINX-FPGA multi-version updating program
CN102426531B (en) An intelligent terminal, an application updating system and an updating method thereof
KR101143112B1 (en) Applying custom software image updates to non-volatile storage in a failsafe manner
AU2013407292B2 (en) Devices, updaters, methods for controlling a device, and methods for controlling an updater
US20150154092A1 (en) Bios maintenance method
CN102360304B (en) Embedded microprocessor system and method for updating firmware thereof
CN107704285B (en) Multi-version configuration chip, system and method for field programmable gate array
CN111562932B (en) High-reliability embedded software upgrading method and system
CN105760191A (en) Embedded system equipment programming mass production method
CN109683967A (en) Firmware supports method, apparatus, mobile terminal and readable storage medium storing program for executing
CN101615128A (en) Method and device for online upgrade of single-chip microcomputer
CN101620542B (en) Compatible updating method of ultrasonic imaging equipment software data
CN100383737C (en) Method and system for online loading and upgrading of single-chip microcomputer
CN106303707A (en) A kind of version method for burn-recording, system and terminal
CN103514014A (en) Method for designing boot system of embedded terminal equipment
CN111008106B (en) A server monitoring and management method, device, electronic device and storage medium
CN100426233C (en) Method for automatically configurating programmable device by inlaid CPU
CN112306536B (en) Main board, chip thereof and chip upgrading method
CN207264382U (en) Chip and system for field programmable gate array multi-version configuration
JP2015060411A (en) Firmware update method of information processor
CN114047952B (en) Processor and method for single chip microcomputer, single chip microcomputer and storage medium
CN116954752A (en) Differentiated system configuration and loading method and device and computer equipment

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081015

Termination date: 20131209