CN116166301A - System and method for upgrading DSP firmware - Google Patents
System and method for upgrading DSP firmware Download PDFInfo
- Publication number
- CN116166301A CN116166301A CN202211574351.4A CN202211574351A CN116166301A CN 116166301 A CN116166301 A CN 116166301A CN 202211574351 A CN202211574351 A CN 202211574351A CN 116166301 A CN116166301 A CN 116166301A
- Authority
- CN
- China
- Prior art keywords
- firmware
- flash
- mcu
- dsp
- upgrading
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0042—Universal serial bus [USB]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开了一种DSP固件的升级系统及方法,系统包括光模块、测试板、PC烧录软件,所述光模块在PCBA的硬件设计中将MCU与Flash相连接,使MCU可以对Flash进行读写操作;方法为(b1)建立私有通信协议;(b2)光模块MCU固件在DSP固件升级部分的设计;(b3)对MCU烧录软件进行技术升级,增加DSP固件升级的功能;本发明去掉Flash烧录器、自制夹具与探针,减少DSP固件升级设备,降低升级光模块DSP固件的成本。使用更加方便:在DSP固件升级过程中,不需要拆开外壳,光模块在装壳后也可以进行升级固件,减少操作工序。可以通过软件远端在线进行DSP固件升级,从而避免回退,提升效率。
The invention discloses a system and method for upgrading DSP firmware. The system includes an optical module, a test board, and PC burning software. The optical module connects the MCU to the Flash in the hardware design of the PCBA, so that the MCU can perform the flash on the Flash. Read and write operations; the method is (b1) to establish a private communication protocol; (b2) the design of the optical module MCU firmware in the DSP firmware upgrade part; (b3) carry out technical upgrades to the MCU burning software, and increase the function of the DSP firmware upgrade; the present invention Remove the Flash programmer, self-made fixtures and probes, reduce the DSP firmware upgrade equipment, and reduce the cost of upgrading the optical module DSP firmware. More convenient to use: During the DSP firmware upgrade process, there is no need to disassemble the casing, and the firmware can also be upgraded after the optical module is installed, reducing the operating procedures. The DSP firmware can be upgraded online through the remote software, so as to avoid regression and improve efficiency.
Description
技术领域technical field
本发明涉及dsp固件技术领域,更具体地说是一种DSP固件的升级系统及方法。The invention relates to the technical field of dsp firmware, more specifically a system and method for upgrading DSP firmware.
背景技术Background technique
在光模块领域,在不改变通道数量的前提下,为了提高光模块通信速率,通常将通信信号由NRZ调制转换为PAM4调制,使用PAM4调制信号的光模块就需要将光模块内部的NRZCDR芯片替换成DSP芯片,而DSP芯片需要单独固件才能正常工作,且DSP固件大多数都需要外挂在一块Flash上。在DSP芯片工作时,需要从Flash将DSP固件导入DSP芯片之中。In the field of optical modules, in order to increase the communication rate of the optical module without changing the number of channels, the communication signal is usually converted from NRZ modulation to PAM4 modulation. The optical module using PAM4 modulation signal needs to replace the NRZCDR chip inside the optical module Into a DSP chip, and the DSP chip needs a separate firmware to work normally, and most of the DSP firmware needs to be plugged into a Flash. When the DSP chip is working, it is necessary to import the DSP firmware from the Flash into the DSP chip.
对于光模块DSP固件的升级,目前同类技术常用的方法,其一是在Flash的通信线上外留触点,Flash烧录软件通过Flash烧录器使用夹具将烧录器探针与触点连接,进行升级固件;其二是通过Flash烧录器对Flash烧录DSP固件,在进行光模块PCBA贴片工作。For the upgrade of the DSP firmware of the optical module, the current common method of the same technology is to leave contacts outside the communication line of the Flash, and the Flash programming software connects the probe of the programmer to the contacts through the Flash programmer using a fixture , to upgrade the firmware; the second is to burn the DSP firmware to the Flash through the Flash programmer, and carry out the optical module PCBA placement work.
上述升级方法存在以下不足:There are following deficiencies in the above-mentioned upgrade method:
缺点1:成本高Disadvantage 1: high cost
使用这种方式进行光模块DSP固件升级,需要配合Flash烧录器与自制夹具进行DSP固件升级,而且不同类型光模块的PCBA尺寸与其上面外接触点的位置都可能不同,需要自制不同的夹具,增加成本。Using this method to upgrade the DSP firmware of the optical module requires a Flash writer and a self-made fixture to upgrade the DSP firmware, and the PCBA size of different types of optical modules and the positions of the external contacts on it may be different, so different self-made fixtures are required. increase cost.
缺点2:使用不方便Disadvantage 2: Inconvenient to use
每次对DSP进行固件升级,都需要拆开光模块外壳,在PCBA状态下才能进行操作,对于返工的光模块进行升级DSP固件而言,增加员工操作工序,使用不方便。Every time the DSP firmware is upgraded, it is necessary to disassemble the optical module shell and operate it in the PCBA state. For the reworked optical module to upgrade the DSP firmware, it will increase the number of operating procedures and is inconvenient to use.
发明内容Contents of the invention
本发明去掉了Flash烧录器与自制夹具达到减少成本的作用;将烧录软件合一以及不需要拆壳让操作工序减少,方便员工操作使用。(1)修改光模块的硬件设计去掉PCBA上的外接触点,改为增加连接MCU与Flash的通信线;(2)修改光模块MCU的固件,使其可以对Flash的内容进行读写操作,并制定私有协议,使电脑可以与MCU进行通信,进而间接读写Flash内容;(3)去掉Flash烧录软件,将Flash烧录软件的功能通过私有协议增加到MCU烧录软件中,实现软件合并。The present invention removes the Flash programmer and the self-made fixture to reduce the cost; integrates the programming software and does not need to dismantle the shell to reduce the operation process and facilitate the operation and use of employees. (1) Modify the hardware design of the optical module to remove the external contact point on the PCBA, and instead increase the communication line connecting the MCU and Flash; (2) Modify the firmware of the optical module MCU so that it can read and write the contents of the Flash, And formulate a private protocol, so that the computer can communicate with the MCU, and then read and write Flash content indirectly; (3) Remove the Flash burning software, and add the function of the Flash burning software to the MCU burning software through a private protocol to realize software merger .
为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:
一种DSP固件的升级系统及方法,A system and method for upgrading DSP firmware,
系统包括光模块、测试板、PC烧录软件,所述光模块在PCBA的硬件设计中将MCU与Flash相连接,使MCU可以对Flash进行读写操作;其中:The system includes an optical module, a test board, and PC programming software. The optical module connects the MCU to the Flash in the hardware design of the PCBA, so that the MCU can read and write the Flash; wherein:
(a1)光模块PCBA上设置有MCU、DSP、Flash;MCU按照光模块协议来实现光模块的功能以及私有协议来实现转发PC烧录软件命令去读写Flash;Flash用来存储DSP工作所用固件;(a1) The optical module PCBA is equipped with MCU, DSP, and Flash; the MCU implements the functions of the optical module according to the optical module protocol and the private protocol to realize forwarding PC burning software commands to read and write Flash; Flash is used to store the firmware used for DSP work ;
(a2)测试板上设置有USB接口、光模块插座、通信MCU;USB接口用于与PC连接使用USB通信;光模块插座用于给光模块供电和I2C通信;通信MCU用于实现将USB通信数据转换成I2C通信数据;(a2) The test board is provided with a USB interface, an optical module socket, and a communication MCU; the USB interface is used to connect with a PC to use USB communication; the optical module socket is used to supply power to the optical module and I2C communication; the communication MCU is used to implement the USB communication The data is converted into I2C communication data;
(a3)PC烧录软件有烧录光模块MCU固件与升级光模块DSP固件两大功能;(a3) The PC burning software has two functions: burning the MCU firmware of the optical module and upgrading the DSP firmware of the optical module;
采用上述系统实现DSP固件的升级方法为:Using the above system to realize the upgrade method of DSP firmware is as follows:
(b1)建立私有通信协议,主要实现以下几个函数:检测MCU固件正常工作函数、Flash读取数据函数、Flash数据擦除函数、Flash数据写入函数、Flsah数据校验函数;(b1) Establish a private communication protocol, mainly realize the following functions: detect the normal operation function of MCU firmware, Flash read data function, Flash data erase function, Flash data write function, Flsah data verification function;
(b2)光模块MCU固件在DSP固件升级部分的设计实现方法为:(b2) The design and implementation method of the optical module MCU firmware in the DSP firmware upgrade part is:
S01、开始执行接收到升级DSP固件相关命令;S01, start to execute the received command related to upgrading DSP firmware;
S02、识别擦除命令,是则通过SPI总线擦除Flash指定区域数据,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,识别读取命令;S02, identify the erase command, if yes, erase the data in the designated area of the Flash through the SPI bus, and then end the current reception of the relevant command to upgrade the DSP firmware; otherwise, enter the next step to identify the read command;
S03、识别读取命令时,是则通过SPI总线读取Flash指定区域数据,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,识别写入命令;S03. When identifying the read command, if yes, read the data in the designated area of the Flash through the SPI bus, and then end the current received command related to upgrading the DSP firmware; otherwise, enter the next step to identify the write command;
S04、识别写入命令时,是则是则通过SPI总线向Flash指定区域写入数据,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,识别校验命令;S04. When identifying the write command, if it is, write data to the designated area of the Flash through the SPI bus, and then end the current received command related to upgrading the DSP firmware; otherwise, enter the next step to identify the verification command;
S05、识别校验命令时,是则通过CRC校验函数计算出接收到数据的CRC校验码,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,结束当前接收到升级DSP固件相关命令。S05. When identifying the verification command, if it is, calculate the CRC verification code of the received data through the CRC verification function, and then end the current reception of the upgrade DSP firmware related command; otherwise enter the next step and end the current reception of the upgrade DSP firmware related command. Order.
(b3)对MCU烧录软件进行技术升级,增加DSP固件升级的功能,设计实现方法为:(b3) Technically upgrade the MCU programming software and increase the function of DSP firmware upgrade. The design and implementation method is as follows:
S11、开始升级DSP固件;S11, start to upgrade the DSP firmware;
S12、检测MCU是否正常启动,否则获取MCU固件,对MCU进行烧录固件,然后继续检测MCU是否正常启动;是则进入下一步S13;S12. Detect whether the MCU starts normally, otherwise obtain the MCU firmware, burn the firmware to the MCU, and then continue to detect whether the MCU starts normally; if yes, enter the next step S13;
S13、本步骤包括:S13, this step includes:
(1)通过Flash读取数据函数获取Flash中DsP固件;(1) Obtain the DsP firmware in the Flash through the Flash read data function;
(2)通过烧录软件获取需要升级的DSP固件;(2) Obtain the DSP firmware that needs to be upgraded through the burning software;
S14、对比上述两份固件是否一样,是则结束升级DSP固件,否则进入S15;S14. Compare whether the above two firmwares are the same, if yes, finish upgrading the DSP firmware, otherwise enter S15;
S15、通过Flash数据擦除函数对PCBA上Flash内容进行擦除;S15, erase the Flash content on the PCBA through the Flash data erasing function;
S16、本步骤包括:S16, this step includes:
(1)将DSP固件拆分成n份;(1) Split the DSP firmware into n parts;
(2)通过Flash数据写入函数依次将n份数据写入Flash中;(2) Write n copies of data in the Flash sequentially through the Flash data writing function;
S17、通过FIsah数据校验函数校验Flash中DSP固件是否完整,是则结束升级DSP固件,否则重复进入步骤S15继续进行,直至Flash中DSP固件完整则结束升级DSP固件。S17, check whether the DSP firmware in the Flash is complete by the FIsah data verification function, if yes, finish upgrading the DSP firmware, otherwise repeat step S15 and continue until the DSP firmware in the Flash is complete, then finish upgrading the DSP firmware.
可以通过软件远端在线进行DSP固件升级,从而避免回退提升效率。The DSP firmware can be upgraded online through the remote software, so as to avoid regression and improve efficiency.
所述私有通信协议主要实现以下几个函数:检测MCU固件正常工作函数、Flash读取数据函数、Flash数据擦除函数、Flash数据写入函数、Flsah数据校验函数。The private communication protocol mainly realizes the following functions: detecting the normal operation function of MCU firmware, Flash reading data function, Flash data erasing function, Flash data writing function, Flsah data verification function.
本发明的技术效果和优点:Technical effect and advantage of the present invention:
1,降低成本:去掉Flash烧录器、自制夹具与探针,减少DSP固件升级设备,降低升级光模块DSP固件的成本。1. Reduce costs: remove the Flash programmer, self-made fixtures and probes, reduce DSP firmware upgrade equipment, and reduce the cost of upgrading optical module DSP firmware.
2,使用更加方便:在DSP固件升级过程中,不需要拆开外壳,光模块在装壳后也可以进行升级固件,减少操作工序。2. More convenient to use: During the DSP firmware upgrade process, there is no need to disassemble the casing, and the optical module can also be upgraded after the casing is installed, reducing the operating procedures.
3,可以通过软件远端在线进行DSP固件升级,从而避免回退,提升效率。3. The DSP firmware can be upgraded online through the remote software, so as to avoid regression and improve efficiency.
附图说明Description of drawings
图1为本发明系统和原理图;Fig. 1 is system and schematic diagram of the present invention;
图2为光模块PCBA示意图;Figure 2 is a schematic diagram of the optical module PCBA;
图3为测试版示意图;Figure 3 is a schematic diagram of the test version;
图4为光模块MCU固件在DSP固件升级部分的设计实现方法流程图;Fig. 4 is the flow chart of the design and implementation method of the optical module MCU firmware in the DSP firmware upgrade part;
图5为对MCU烧录软件进行技术升级,增加DSP固件升级的功能的方法流程图。FIG. 5 is a flow chart of a method for technically upgrading the MCU programming software and increasing the function of DSP firmware upgrading.
具体实施方式Detailed ways
下面将对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一Embodiment one
原理概述:如下图1所示,(1)光模块在PCBA的硬件设计中将MCU与Flash相连接,使MCU可以对Flash进行读写操作;(2)在光模块的MCU固件中增加私有通信协议,让PC烧录软件可以在给MCU烧录固件后,使MCU工作后通过私有通信协议对Flash进行读写操作;(3)PC烧录软件在烧录MCU固件功能的基础上,增加Flash固件升级功能。这样就可以在原有的MCU烧录系统上不增加设备就实现DSP固件升级功能。Principle overview: As shown in Figure 1 below, (1) the optical module connects the MCU and Flash in the hardware design of the PCBA, so that the MCU can read and write the Flash; (2) add private communication in the MCU firmware of the optical module Protocol, so that the PC programming software can read and write Flash through the private communication protocol after the MCU is programmed to work; (3) The PC programming software adds Flash to the MCU firmware function. Firmware upgrade function. In this way, the DSP firmware upgrade function can be realized on the original MCU burning system without adding devices.
进一步的,本发明借助原有的光模块MCU固件烧录设备,通过本发明的技术方法,能够去掉Flash烧录器、自制夹具与探针,简化DSP固件升级设备,降低升级光模块DSP固件的成本。Further, the present invention uses the original optical module MCU firmware burning equipment, and through the technical method of the present invention, the Flash programmer, self-made fixtures and probes can be removed, the DSP firmware upgrade equipment can be simplified, and the cost of upgrading the optical module DSP firmware can be reduced. cost.
在对光模块DSP固件进行升级过程中,通过对MCU固件烧录软件进行技术升级,就可以达到不需要拆开外壳进行DSP的固件升级,减少操作工序和方便员工操作。In the process of upgrading the DSP firmware of the optical module, by technically upgrading the MCU firmware burning software, it is possible to upgrade the DSP firmware without dismantling the case, reducing operating procedures and facilitating staff operations.
现有采用触点升级DSP固件的光模块,当产品出货后,如果要升级光模块DSP的固件,需要召回光模块进行拆壳升级DSP固件,本发明的方法可以通过软件远端在线进行DSP固件升级,从而避免回退提升效率。Existing optical modules that use contacts to upgrade DSP firmware, after the product is shipped, if you want to upgrade the firmware of the optical module DSP, you need to recall the optical module to unpack and upgrade the DSP firmware. The method of the present invention can perform DSP online through remote software. Firmware upgrades to avoid rollbacks and improve efficiency.
实施例二Embodiment two
本专利提供了一种DSP固件升级方法,其中软硬件系统包括光模块、测试板、PC烧录软件几个主要部分。This patent provides a DSP firmware upgrade method, wherein the software and hardware system includes several main parts of optical module, test board, and PC burning software.
(1)光模块PCBA上设置有MCU、DSP、Flash。MCU按照光模块协议来实现光模块的功能以及私有协议来实现转发PC烧录软件命令去读写Flash;Flash用来存储DSP工作所用固件。如图2所示。(1) The optical module PCBA is provided with MCU, DSP, and Flash. The MCU realizes the function of the optical module according to the optical module protocol and the private protocol to realize the forwarding of the PC burning software command to read and write Flash; the Flash is used to store the firmware used for DSP work. as shown in picture 2.
(2)测试板上有USB接口、光模块插座、通信MCU。USB接口用于与PC连接使用USB通信;光模块插座用于给光模块供电和I2C通信;通信MCU用于实现将USB通信数据转换成I2C通信数据。如图3所示。(2) There are USB interface, optical module socket and communication MCU on the test board. The USB interface is used to connect with the PC to use USB communication; the optical module socket is used to supply power to the optical module and I2C communication; the communication MCU is used to convert USB communication data into I2C communication data. As shown in Figure 3.
(3)PC烧录软件有烧录光模块MCU固件与升级光模块DSP固件两大功能;实施列三(3) The PC burning software has two functions: burning the MCU firmware of the optical module and upgrading the DSP firmware of the optical module;
本专利是在借助现有的MCU固件烧录系统上,对光模块的硬件设计与MCU固件进行技术修改;实现一种DSP固件升级方法。This patent is based on the existing MCU firmware burning system, technically modifying the hardware design of the optical module and the MCU firmware; realizing a DSP firmware upgrade method.
主要技术点在光模块MCU固件设计实现、私有通信协议、烧录软件升级DSP固件流程。The main technical points are in the design and implementation of optical module MCU firmware, private communication protocol, burning software upgrade DSP firmware process.
(1)私有通信协议主要实现以下几个函数:检测MCU固件正常工作函数、Flash读取数据函数、Flash数据擦除函数、Flash数据写入函数、Flsah数据校验函数。(1) The private communication protocol mainly implements the following functions: the function of detecting the normal operation of the MCU firmware, the function of reading data from Flash, the function of erasing Flash data, the function of writing Flash data, and the function of verifying Flsah data.
(2)光模块MCU固件在DSP固件升级部分的设计实现如下图4所示;方法为:(2) The design and implementation of the optical module MCU firmware in the DSP firmware upgrade part is shown in Figure 4 below; the method is:
S01、开始执行接收到升级DSP固件相关命令;S01, start to execute the received command related to upgrading DSP firmware;
S02、识别擦除命令,是则通过SPI总线擦除Flash指定区域数据,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,识别读取命令;S02, identify the erase command, if yes, erase the data in the designated area of the Flash through the SPI bus, and then end the current reception of the relevant command to upgrade the DSP firmware; otherwise, enter the next step to identify the read command;
S03、识别读取命令时,是则通过SPI总线读取Flash指定区域数据,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,识别写入命令;S03. When identifying the read command, if yes, read the data in the designated area of the Flash through the SPI bus, and then end the current received command related to upgrading the DSP firmware; otherwise, enter the next step to identify the write command;
S04、识别写入命令时,是则是则通过SPI总线向Flash指定区域写入数据,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,识别校验命令;S04. When identifying the write command, if it is, write data to the designated area of the Flash through the SPI bus, and then end the current received command related to upgrading the DSP firmware; otherwise, enter the next step to identify the verification command;
S05、识别校验命令时,是则通过CRC校验函数计算出接收到数据的CRC校验码,然后结束当前接收到升级DSP固件相关命令;否则进入下一步,结束当前接收到升级DSP固件相关命令。S05. When identifying the verification command, if it is, calculate the CRC verification code of the received data through the CRC verification function, and then end the current reception of the upgrade DSP firmware related command; otherwise enter the next step and end the current reception of the upgrade DSP firmware related command. Order.
(3)对MCU烧录软件进行技术升级,增加DSP固件升级的功能,软件流程设计实现如下图5所示;方法为:(3) Upgrade the technology of the MCU programming software and increase the function of DSP firmware upgrade. The software flow design is realized as shown in Figure 5 below; the method is as follows:
S11、开始升级DSP固件;S11, start to upgrade the DSP firmware;
S12、检测MCU是否正常启动,否则获取MCU固件,对MCU进行烧录固件,然后继续检测MCU是否正常启动;是则进入下一步S13;S12. Detect whether the MCU starts normally, otherwise obtain the MCU firmware, burn the firmware to the MCU, and then continue to detect whether the MCU starts normally; if yes, enter the next step S13;
S13、本步骤包括:S13, this step includes:
(1)通过Flash读取数据函数获取Flash中DsP固件;(1) Obtain the DsP firmware in the Flash through the Flash read data function;
(2)通过烧录软件获取需要升级的DSP固件;(2) Obtain the DSP firmware that needs to be upgraded through the burning software;
S14、对比上述两份固件是否一样,是则结束升级DSP固件,否则进入S15;S14. Compare whether the above two firmwares are the same, if yes, finish upgrading the DSP firmware, otherwise enter S15;
S15、通过Flash数据擦除函数对PCBA上Flash内容进行擦除;S15, erase the Flash content on the PCBA through the Flash data erasing function;
S16、本步骤包括:S16, this step includes:
(1)将DSP固件拆分成n份;(1) Split the DSP firmware into n parts;
(2)通过Flash数据写入函数依次将n份数据写入Flash中;(2) Write n copies of data in the Flash sequentially through the Flash data writing function;
S17、通过FIsah数据校验函数校验Flash中DSP固件是否完整,是则结束升级DSP固件;否则重复进入步骤S15继续进行,直至Flash中DSP固件完整则结束升级DSP固件。S17. Verify whether the DSP firmware in the Flash is complete through the FIsah data verification function, and if so, finish upgrading the DSP firmware; otherwise, repeat step S15 and continue until the DSP firmware in the Flash is complete, then finish upgrading the DSP firmware.
实施例四Embodiment four
本专利通过以下技术修改,去掉了Flash烧录器与自制夹具达到减少成本的作用;将烧录软件合一以及不需要拆壳让操作工序减少,方便员工操作使用。(1)修改光模块的硬件设计去掉PCBA上的外接触点,改为增加连接MCU与Flash的通信线;(2)修改光模块MCU的固件,使其可以对Flash的内容进行读写操作,并制定私有协议,使电脑可以与MCU进行通信,进而间接读写Flash内容;(3)去掉Flash烧录软件,将Flash烧录软件的功能通过私有协议增加到MCU烧录软件中,实现软件合并。Through the following technical modifications, this patent removes the Flash programmer and self-made fixtures to reduce costs; integrates the programming software into one and does not need to disassemble the shell to reduce the operating procedures and facilitate the operation and use of employees. (1) Modify the hardware design of the optical module to remove the external contact point on the PCBA, and instead increase the communication line connecting the MCU and Flash; (2) Modify the firmware of the optical module MCU so that it can read and write the contents of the Flash, And formulate a private protocol, so that the computer can communicate with the MCU, and then read and write Flash content indirectly; (3) Remove the Flash burning software, and add the function of the Flash burning software to the MCU burning software through a private protocol to realize software merger .
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.
Claims (3)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211574351.4A CN116166301A (en) | 2022-12-08 | 2022-12-08 | System and method for upgrading DSP firmware |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211574351.4A CN116166301A (en) | 2022-12-08 | 2022-12-08 | System and method for upgrading DSP firmware |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116166301A true CN116166301A (en) | 2023-05-26 |
Family
ID=86417275
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211574351.4A Pending CN116166301A (en) | 2022-12-08 | 2022-12-08 | System and method for upgrading DSP firmware |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116166301A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110209419A (en) * | 2019-05-17 | 2019-09-06 | 湖北三江航天万峰科技发展有限公司 | A kind of CAN bus based DSP embedded device updating method and device |
| CN110442356A (en) * | 2019-08-06 | 2019-11-12 | 东莞铭普光磁股份有限公司 | The upgrade method and device of DSP firmware |
| CN113641378A (en) * | 2021-07-13 | 2021-11-12 | 烽火通信科技股份有限公司 | Optical module program upgrading method, device, equipment and readable storage medium |
| CN214896578U (en) * | 2021-07-26 | 2021-11-26 | 四川华拓光通信股份有限公司 | Optical module firmware downloading device |
| CN113900693A (en) * | 2021-10-27 | 2022-01-07 | 深圳益邦阳光有限公司 | Firmware upgrading method, device and system, electronic equipment and storage medium |
| US20220291915A1 (en) * | 2021-03-15 | 2022-09-15 | Google Llc | Methods for Optics Module Firmware In-Field Upgrade |
-
2022
- 2022-12-08 CN CN202211574351.4A patent/CN116166301A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110209419A (en) * | 2019-05-17 | 2019-09-06 | 湖北三江航天万峰科技发展有限公司 | A kind of CAN bus based DSP embedded device updating method and device |
| CN110442356A (en) * | 2019-08-06 | 2019-11-12 | 东莞铭普光磁股份有限公司 | The upgrade method and device of DSP firmware |
| US20220291915A1 (en) * | 2021-03-15 | 2022-09-15 | Google Llc | Methods for Optics Module Firmware In-Field Upgrade |
| CN113641378A (en) * | 2021-07-13 | 2021-11-12 | 烽火通信科技股份有限公司 | Optical module program upgrading method, device, equipment and readable storage medium |
| CN214896578U (en) * | 2021-07-26 | 2021-11-26 | 四川华拓光通信股份有限公司 | Optical module firmware downloading device |
| CN113900693A (en) * | 2021-10-27 | 2022-01-07 | 深圳益邦阳光有限公司 | Firmware upgrading method, device and system, electronic equipment and storage medium |
Non-Patent Citations (1)
| Title |
|---|
| 李国胜 等: "一种基于DSP在线更新配置程序的实现方法", 《计算机与网络》, vol. 37, no. 20, 26 October 2011 (2011-10-26), pages 52 - 54 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7349719B2 (en) | Portable universal data storage device | |
| WO2021248786A1 (en) | Key code data burning method and apparatus, terminal device, and readable storage medium | |
| CN107885510B (en) | Burning tool and burning method capable of simultaneously burning double DSPs | |
| CN105740031B (en) | Card opening method based on card opening external member and card opening external member | |
| CN102426531B (en) | A kind of intelligent terminal, application program update system and update method thereof | |
| CN102820061B (en) | Embedded remote device program programming device and method | |
| CN107092513B (en) | Upgrading or repairing component and upgrading or repairing method of intelligent mobile equipment | |
| CN104239097B (en) | A kind of method, system and mobile terminal by updating mobile terminal accessory | |
| CN114721683A (en) | Circuit, method, chip and electronic equipment for upgrading firmware | |
| CN110888656B (en) | Multifunctional programming device and programming method | |
| CN113238787B (en) | An Ethernet-based partial online upgrade method for DSP | |
| CN111857787B (en) | Method, system, equipment and medium for burning firmware of voltage converter | |
| CN205620994U (en) | Embedded equipment processing apparatus | |
| CN116166301A (en) | System and method for upgrading DSP firmware | |
| CN113360161A (en) | Resource upgrading method and related product | |
| CN212364515U (en) | A SOC chip automatic QC device | |
| CN118585204A (en) | A portable split-bit burning motherboard and electronic equipment | |
| CN114237640A (en) | Chip test control panel Uboot burning method based on serial port protocol | |
| CN105871598A (en) | Router equipment and upgrade method of router equipment | |
| CN112000235A (en) | Virtual keyboard system for SI test tool and design method | |
| CN116302011A (en) | A method for upgrading firmware of cable monitoring equipment | |
| CN101534343A (en) | Method for safely upgrading mobile phone firmware | |
| CN115291952A (en) | A method and system for configuring PCIe device slot location information under BIOS | |
| CN223217856U (en) | Device for reading and writing FRU information of board card | |
| CN112069012B (en) | Optical module evaluation board and optical module maintenance 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: 20230526 |
