CN106843926B - Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method - Google Patents

Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method Download PDF

Info

Publication number
CN106843926B
CN106843926B CN201611189643.0A CN201611189643A CN106843926B CN 106843926 B CN106843926 B CN 106843926B CN 201611189643 A CN201611189643 A CN 201611189643A CN 106843926 B CN106843926 B CN 106843926B
Authority
CN
China
Prior art keywords
firmware
upgrading
app
bootloader
adi
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.)
Active
Application number
CN201611189643.0A
Other languages
Chinese (zh)
Other versions
CN106843926A (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.)
Jiangsu Guoguang Electronic Information Technology Co Ltd
Original Assignee
Jiangsu Guoguang Electronic Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Guoguang Electronic Information Technology Co Ltd filed Critical Jiangsu Guoguang Electronic Information Technology Co Ltd
Priority to CN201611189643.0A priority Critical patent/CN106843926B/en
Publication of CN106843926A publication Critical patent/CN106843926A/en
Application granted granted Critical
Publication of CN106843926B publication Critical patent/CN106843926B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Abstract

The invention discloses a method for starting, upgrading and restoring ADI-DSP firmware with high efficiency and reliability, which comprises an LDR firmware area and is characterized in that the LDR firmware area comprises Bootloader firmware, Backup firmware and APP firmware; the Bootloader firmware is used for configuring basic initialization of a system and selecting boot firmware, the Bootloader firmware starts the APP firmware firstly, and when the APP firmware cannot be started normally, the Backup firmware is started again. The advantages are that: 1) the traditional single firmware is divided into three parts of firmware, and only APP firmware needs to be updated when the firmware of the occasions such as normal business upgrading, BUG repairing and the like is upgraded; 2) USB upgrading can be realized in the APP firmware, upgrading speed is increased, and burning steps are simplified; 3) the firmware is backed up on board, and the device never loses the firmware.

Description

Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method
Technical Field
The invention relates to a method for starting, upgrading and restoring ADI-DSP firmware with high efficiency and reliability.
Background
At present, with the popularization of ADI-DSP in China, the logic which can be processed by the processor in the equipment development is limited and has no function expansibility, and if a problem or a bug on firmware in the processor is found and the function of an existing product is newly added, the problem can be solved only by upgrading the firmware. At present, when firmware is generally upgraded, a USB flash disk and an SD card which store upgrading data are needed to be used for upgrading the firmware, even upgraded equipment needs to be disassembled, a JTAG simulation mode which is slow in use speed and unstable is used for upgrading the firmware, the traditional firmware uses a mode of single firmware, and the whole DSP firmware needs to be overwritten and burnt again when the firmware is updated every time. In the burning process, once the accidents such as power failure and the like occur to cause the burning failure, the self-recovery cannot be realized, and the maintenance can be carried out only in a simulator burning mode. It can be seen that the conventional maintenance method increases the maintenance cost of the equipment.
Disclosure of Invention
The technical problem to be solved by the invention is to overcome the defects of the prior art and provide a method.
In order to solve the technical problems, the invention provides an efficient and reliable ADI-DSP firmware starting, upgrading and restoring method, which comprises an LDR firmware area, and is characterized in that the LDR firmware area comprises Bootloader firmware, Backup firmware and APP firmware; the Bootloader firmware is used for configuring basic initialization of a system and selecting boot firmware, the Bootloader firmware starts the APP firmware firstly, and when the APP firmware cannot be started normally, the Backup firmware is started again.
Furthermore, when the Bootloader firmware normally starts the APP firmware, the USB DEVICE function is realized, the USB DEVICE is connected with a PC (personal computer) to perform data communication, and an upper computer is used for firmware upgrading.
Further, the data communication uses a USB2.0 interface, the USB2.0 DEVICE function is realized at the machine tool end, and the data communication of different domains is carried out by using two communication modes of Bulk and interrupt.
Furthermore, when the Bootloader firmware normally starts the APP firmware, after the system is started, the firmware version is read and compared with the local firmware version, whether the firmware needs to be upgraded or not is judged, or an administrator development tool is used for upgrading the firmware, and the version number does not need to be matched.
Furthermore, when the Bootloader firmware cannot normally start the APP firmware, the Bootloader firmware guides the Backup firmware to start, the Backup firmware realizes a USB DEVICE function, is connected with a PC (personal computer), uses an upper computer to upgrade the firmware, burns the normal firmware to the APP firmware position again, and after burning succeeds, the machine normally starts the APP firmware.
Further, in the system restoring mode, the service system judges that the product enters the restoring mode, and automatically performs firmware solidification and upgrade work, or performs firmware solidification by using an administrator development tool. The invention achieves the following beneficial effects:
1) the traditional single firmware is divided into three parts of firmware, and only APP firmware needs to be updated when the firmware of the occasions such as normal business upgrading, BUG repairing and the like is upgraded;
2) USB upgrading can be realized in the APP firmware, upgrading speed is increased, and burning steps are simplified;
3) the firmware is backed up on board, and the device never loses the firmware.
Drawings
FIG. 1 is a schematic diagram of a system firmware partition;
FIG. 2 is a schematic diagram illustrating a normal boot and firmware update process of the system;
FIG. 3 is a schematic diagram of a system recovery process.
Detailed Description
The invention is further described below with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Referring to fig. 1, an efficient and reliable method for starting, upgrading and restoring an ADI-DSP firmware includes an LDR firmware area, and is characterized in that the LDR firmware area includes Bootloader firmware, Backup firmware and APP firmware; the Bootloader firmware is used for configuring basic initialization of a system and selecting boot firmware, the Bootloader firmware starts the APP firmware firstly, and when the APP firmware cannot be started normally, the Backup firmware is started again.
As shown in fig. 2, the Bootloader firmware normally starts the APP firmware, and this mode is a normal boot and start process of the product, and can implement normal business work and perform data communication with the PC terminal. The communication mode uses a USB2.0 interface, the USB2.0 DEVICE function is realized at the machine tool end, and simultaneously, Bulk and interrupt communication modes are used for data communication of different domains.
After the system is started, the firmware version is read. And compared to the local firmware version. And judging whether the upgrading is needed. Firmware upgrades can also be made using administrator development tools without matching version numbers.
And after the system selects the firmware to be upgraded, issuing a binary file of the new firmware to the machine tool end, and verifying the file. And after the file is successfully issued, the system issues a curing command. The machine tool end solidifies the program into the FLASH. And after the solidification is successful, the system is automatically restarted, and the new version firmware is operated to carry out business work.
The physical connection of the product and the PC end only needs one USB cable.
As shown in fig. 3, when the Bootloader firmware cannot normally start the APP firmware, the Bootloader firmware boots the Backup firmware to start, where this mode is a system restoring state of the product, and in this mode, it is not recommended to support normal business operation, but the USB DEVICE function is also implemented, and data communication can be performed with the PC terminal. In order to ensure the success rate and reliability of system restoration, the USB communication only supports the firmware upgrading function.
And under the system restoring mode, the service system judges that the product enters the restoring mode and automatically performs firmware solidification and upgrading work. Firmware curing may also be performed using an administrator development tool.
The system actively issues the binary file of the local firmware to the machine tool end and conducts file verification. And after the file is successfully issued, the system issues a curing command. The machine tool end solidifies the program into the FLASH. And after the solidification is successful, the system is automatically restarted, and the new version firmware is operated to carry out business work.
The physical connection of the product and the PC end only needs one USB cable.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (5)

1. A high-efficiency and reliable method for starting, upgrading and restoring ADI-DSP firmware comprises an LDR firmware area, and is characterized in that the LDR firmware area comprises Bootloader firmware, Backup firmware and APP firmware; the Bootloader firmware is used for configuring basic initialization of a system and selecting boot firmware, the Bootloader firmware starts the APP firmware firstly, and then starts the Backup firmware when the APP firmware cannot be started normally;
when the Bootloader firmware cannot normally start the APP firmware, the Bootloader firmware guides the Backup firmware to start, the Backup firmware realizes a USB DEVICE function, is connected with a PC (personal computer), uses an upper computer to upgrade the firmware, re-records the normal firmware to the position of the APP firmware, and after successful recording, normally starts the APP firmware by the machine; the USB DEVICE function only supports the firmware upgrading function;
after the system selects the firmware to be upgraded, a binary file of the new firmware is issued to the machine tool end, the file is verified, after the file is successfully issued, the system issues a curing command, the machine tool end cures a program into FLASH, and after the curing is successful, the system is automatically restarted, and the new firmware is operated to perform business work.
2. The method for starting, upgrading and restoring the ADI-DSP firmware with high efficiency and reliability as claimed in claim 1, wherein when the Bootloader firmware normally starts the APP firmware, the Bootloader firmware realizes a USB DEVICE function, is connected to a PC for data communication, and uses an upper computer for firmware upgrading.
3. An efficient and reliable method for starting, upgrading and restoring ADI-DSP firmware as claimed in claim 2, wherein the data communication uses USB2.0 interface to implement USB2.0 DEVICE function at the machine tool end, and uses Bulk and interrupt communication to perform data communication of different domains.
4. The efficient and reliable ADI-DSP firmware starting, upgrading and restoring method as claimed in claim 1, wherein when the Bootloader firmware normally starts the APP firmware, after the system is started, the firmware version is read and compared with the local firmware version to determine whether upgrading is needed or not, or an administrator development tool is used to upgrade the firmware without matching the version number.
5. The method as claimed in claim 1, wherein in the system restore mode, the service system determines that the product enters into the restore mode, and automatically performs firmware solidification and upgrade, or performs firmware solidification using an administrator development tool.
CN201611189643.0A 2016-12-21 2016-12-21 Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method Active CN106843926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611189643.0A CN106843926B (en) 2016-12-21 2016-12-21 Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611189643.0A CN106843926B (en) 2016-12-21 2016-12-21 Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method

Publications (2)

Publication Number Publication Date
CN106843926A CN106843926A (en) 2017-06-13
CN106843926B true CN106843926B (en) 2020-05-08

Family

ID=59140942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611189643.0A Active CN106843926B (en) 2016-12-21 2016-12-21 Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method

Country Status (1)

Country Link
CN (1) CN106843926B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070261046A1 (en) * 2006-05-04 2007-11-08 Syntax Brillian Corp. Television and display device with a USB port for updating firmware
CN101101554A (en) * 2006-07-07 2008-01-09 上海上工佳源机电科技有限公司 Computer embroidery machine firmware program remote upgrading method
CN101131648A (en) * 2006-08-25 2008-02-27 深圳迈瑞生物医疗电子股份有限公司 On-line updating method for USB interface control panel
CN101963910A (en) * 2010-09-21 2011-02-02 深圳市元征软件开发有限公司 General USB (Universal Serial Bus) based equipment firmware updating method
CN105354070B (en) * 2015-12-11 2019-02-22 成都广达新网科技股份有限公司 A method of passing through I2C updating apparatus firmware

Also Published As

Publication number Publication date
CN106843926A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN102163167A (en) Method and device for rescuing system
CN102339242A (en) Computer system data recovery device
CN103729220A (en) Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
CN104572387A (en) Method and device for debugging terminal in engineering mode
CN104102518A (en) Double-CPU system and program updating method thereof
CN105159719A (en) Starting method and device of master basic input/output system and slave basic input/output system
CN105760191A (en) Embedded system equipment programming mass production method
CN106990985A (en) Apparatus and method based on BMC renewals and standby system UEFI firmwares
CN106406936A (en) FPGA program multi-version management apparatus and method
CN108345464A (en) A kind of the startup method and Android vehicle device of Android system
CN106569854B (en) Method and system for setting equipment firmware and realizing factory test
CN104182239A (en) Upgrading method and upgrading device for file system based on embedded Linux equipment
CN105468390A (en) BOOT online upgrade apparatus and method
CN104391655A (en) Method for automatically copying files to plurality of USB (Universal Serial Bus) flash disks
WO2018049798A1 (en) Method and apparatus for reconstructing cache partition
CN107315607B (en) Drive self-adaptation loading system
US8826264B1 (en) Non-disruptive upgrade of applications
CN103995717A (en) Method for upgrading software in embedded device
CN106843926B (en) Efficient and reliable ADI-DSP firmware starting, upgrading and restoring method
CN111459468A (en) DSP program on-line upgrading system and method for high-reliability serial port communication
CN101101553A (en) Firmware upgrading restoring method
CN106445504A (en) Update method and system of mobile terminal device driver
CN116028084A (en) Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform
US9058264B2 (en) Method for repairing communication abnormality between data card and host and data card
CN105005717A (en) Upgrade and encryption method of USBS (Universal Serial Bus) firmware

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
GR01 Patent grant
GR01 Patent grant