CN107506208A - A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment - Google Patents

A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment Download PDF

Info

Publication number
CN107506208A
CN107506208A CN201710574750.3A CN201710574750A CN107506208A CN 107506208 A CN107506208 A CN 107506208A CN 201710574750 A CN201710574750 A CN 201710574750A CN 107506208 A CN107506208 A CN 107506208A
Authority
CN
China
Prior art keywords
firmware
dsp
programming
application
partition
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
CN201710574750.3A
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.)
Guangzhou Huiruisitong Information Technology Co Ltd
Original Assignee
Guangzhou Huiruisitong 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 Guangzhou Huiruisitong Information Technology Co Ltd filed Critical Guangzhou Huiruisitong Information Technology Co Ltd
Priority to CN201710574750.3A priority Critical patent/CN107506208A/en
Publication of CN107506208A publication Critical patent/CN107506208A/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
    • G06F8/656Updates while running

Landscapes

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

Abstract

The invention discloses a kind of anti-DSP firmware on line upgrading methods burnt to death of equipment, two subregions are marked off in FLASH:One application partition and a safe programming firmware partition;Application partition is used to install the DSP application firmwares for realizing product function;Safe programming firmware partition is used to install safe programming firmware, and safe programming firmware is used to realize online upgrading DSP application firmwares;The programming before dispatching from the factory of the firmware of safe programming firmware partition is good, and change is can't permit in subsequent use or during upgrading, the subregion.The problem of DSP firmware mounting means of the invention for using the double subregions of FLASH, firmware upgrade operation is performed by safe programming firmware, and avoid causes DSP firmwares to start because of firmware updating exception can not be carried out with follow-up firmware programming.

Description

A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment
Technical field
The present invention relates to a kind of safe DSP firmware on line upgrading methods, the anti-DSP burnt to death of more particularly to a kind of equipment consolidates Part online upgrading method.
Background technology
Usual DSP firmware can be with programming in FLASH.Before product export, firmware can be burnt by following two method Write on FLASH:
1st, using programmable device firmware programming in FLASH, FLASH is then welded to circuit board;
2nd, using emulator DSP firmware programmings in FLASH.
But after product export, when needing firmware updating, because condition limits, above-mentioned two kinds of programming firmware methods It can not all use, only can be used in line writing method.
Realize DSP in line writing, it is necessary to which DSP firmwares are in addition to comprising the module of product function is realized, it is also necessary to Include the module for realizing firmware programming.The specific method of the online firmware programmings of DSP is:
1st, start DSP, perform programming to FLASH firmware on line upgrading program;
2nd, DSP is made to perform firmware programming module;
3rd, new firmware is copied to memory headroom by firmware programming module by external bus (network, USB, serial ports etc.);
4th, the firmware programming of memory headroom to FLASH.
But this method have one it is fatal the defects of:(powered off when firmware programming exception during firmware error or programming), DSP firmwares may not be activated again, can not naturally also perform firmware programming module again, and the equipment " change brick " being commonly called as. That is, DSP normal startup and realizing that online firmware programming all relies on previous firmware programming success.
Accordingly, it is desirable to provide a kind of safe DSP firmware on line upgrading methods, when failing in line writing firmware, are remained to It is normally carried out firmware on line upgrading next time.
The content of the invention
The shortcomings that it is an object of the invention to overcome prior art and deficiency, there is provided a kind of anti-DSP firmwares burnt to death of equipment Online upgrading method, realize when remaining to be normally carried out firmware on line upgrading next time when line writing firmware fails.
The purpose of the present invention is realized by following technical scheme:
A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment, two subregions are marked off in FLASH:One is applied journey Sequence subregion and a safe programming firmware partition;Application partition, which is used to install, realizes that the DSP application programs of product function are consolidated Part;Safe programming firmware partition is used to install safe programming firmware, and safe programming firmware is used to realize online upgrading DSP application journeys Sequence firmware;The programming before dispatching from the factory of the firmware of safe programming firmware partition is good, in subsequent use or during upgrading, the subregion it is interior It can't permit change.
Preferably, DSP has two kinds of mode of operations:Normal mode of operation and safe programming pattern.
Specifically, DSP determines which kind of mode of operation entered in powerup/reset, according to hardware setting:When the normal work of entrance During operation mode, application firmware can be started in application partition, realize product function;When entering safe programming pattern, Safe programming firmware can be started in safe programming firmware partition, realize the upgrading of application firmware.
Preferably, dsp chip needs to select GPIO pin for detecting user's mode of operation to be set.
Preferably, for the dsp chip of part, it can determine that DSP refers in FLASH according to specific GPIO level state Address location startup is determined, it is possible thereby to determine the initial address of application partition and safe programming subregion.
Specifically, above method workflow is specific as follows:
(1) DSP is after powerup/reset, and according to specified GPIO incoming level state, decision enters (2) step, or enters Perform application program;
(2) start safe programming program in safe programming subregion, perform specific initialization operation:Initialization system clock, Memory chip and the peripheral hardware related to programming firmware;
(3) new DSP application firmwares are copied to internal memory by external bus or pluggable holder;
(4) FLASH application partition is wiped;
(5) the application firmware programming in internal memory to application partition.
Preferably, for the dsp chip that can only start in FLASH default address, the acquiescence of the FLASH can be started ground Location is arranged to the initial address of safe programming firmware partition;DSP starts, so in powerup/reset in safe programming firmware partition The GPIO incoming level states for determining mode of operation are read afterwards, determine to turn to jump to application partition execution application program, still Safe programming firmware program is continued executing with this subregion.
Specifically, above method workflow is specific as follows:
(1) DSP, into safe programming subregion, is performed after powerup/reset and is started code, performs specific initialization behaviour Make:Initialize system clock, memory chip and the peripheral hardware related to programming firmware;
(2) according to the incoming level state for specifying GPIO, decision enters (3) step, or enters and perform application program;
(3) safe programming program is started;
(4) new DSP application firmwares are copied to internal memory by external bus or pluggable holder;
(5) FLASH application partition is wiped;
(6) the application firmware programming in internal memory to application partition.
The present invention compared with prior art, has the following advantages that and beneficial effect:
The present invention performs firmware upgrade behaviour using the DSP firmware mounting means of the double subregions of FLASH by safe programming firmware Make, avoid because firmware updating is abnormal and the problem of cause DSP firmwares to start can not to carry out with follow-up firmware programming.
Brief description of the drawings
Fig. 1 is the program initialization broad flow diagram of method 1 in embodiment.
Fig. 2 is the program initialization broad flow diagram of method 2 in embodiment.
Embodiment
With reference to embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are unlimited In this.
Embodiment
A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment, two subregions are marked off in FLASH:One is applied journey Sequence subregion and a safe programming firmware partition.Application partition, which is used to install, realizes that the DSP application programs of product function are consolidated Part;Safe programming firmware partition is used to install safe programming firmware, and safe programming firmware is used to realize online upgrading DSP application journeys Sequence firmware.The programming before dispatching from the factory of the firmware of safe programming firmware partition is good, in subsequent use/during upgrading, content of the subregion It must not change.
So DSP has two kinds of mode of operations:Normal mode of operation and safe programming pattern.DSP is in powerup/reset, root Determine which kind of mode of operation entered according to hardware setting:When entering normal mode of operation, it can start in application partition and apply Program firmware, realizes product function;When entering safe programming pattern, safe programming can be started in safe programming firmware partition and consolidated Part, realize the upgrading of application firmware.
Because in programming application firmware, only the subregion of meeting programming application program is without changing safe programming firmware Subregion, this prevents in programming firmware abnormal and causes DSP to carry out firmware programming next time.
When it is implemented, dsp chip needs to select GPIO pin for detecting user's mode of operation to be set.For such as What determines which kind of mode of operation entered according to the incoming level of GPIO pin, there is following implementation method:
1st, for the dsp chip of part, it can determine that DSP specifies ground in FLASH according to specific GPIO level state Location position starts, it is possible thereby to determine the initial address of application partition and safe programming subregion.
2nd, for other dsp chips that can only start in FLASH default address, the acquiescence of the FLASH can be started ground Location is arranged to the initial address of safe programming firmware partition.DSP starts, so in powerup/reset in safe programming firmware partition The GPIO incoming level states for determining mode of operation are read afterwards, determine to turn to jump to application partition execution application program, still Safe programming firmware program is continued executing with this subregion.
For method 1, workflow is as shown in Figure 1:
(1) DSP is after powerup/reset, and according to specified GPIO incoming level state, decision enters (2) step, or enters Perform application program;
(2) start safe programming program in safe programming subregion, perform specific initialization operation:Initialization system clock, Memory chip and the peripheral hardware related to programming firmware;
(3) new DSP application firmwares by external bus (Ethernet, USB line, Serial Port Line etc.) or can be plugged Holder (USB flash disk, SD/TF cards etc.) copies to internal memory;
(4) FLASH application partition is wiped;
(5) the application firmware programming in internal memory to application partition.
For method 2, workflow is as shown in Figure 2:
(1) DSP, into safe programming subregion, is performed after powerup/reset and is started code, performs specific initialization behaviour Make:Initialize system clock, memory chip and the peripheral hardware related to programming firmware;
(2) according to the incoming level state for specifying GPIO, decision enters (3) step, or enters and perform application program;
(3) safe programming program is started;
(4) new DSP application firmwares by external bus (Ethernet, USB line, Serial Port Line etc.) or can be plugged Holder (USB flash disk, SD/TF cards etc.) copies to internal memory;
(5) FLASH application partition is wiped;
(6) the application firmware programming in internal memory to application partition.
Above-described embodiment is the preferable embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment Limitation, other any Spirit Essences without departing from the present invention with made under principle change, modification, replacement, combine, simplification, Equivalent substitute mode is should be, is included within protection scope of the present invention.

Claims (8)

1. a kind of anti-DSP firmware on line upgrading methods burnt to death of equipment, it is characterised in that mark off two subregions in FLASH:One Individual application partition and a safe programming firmware partition;Application partition is used for installation and realizes that the DSP of product function should With program firmware;Safe programming firmware partition is used to install safe programming firmware, and safe programming firmware is used to realize online upgrading DSP application firmwares;The programming before dispatching from the factory of the firmware of safe programming firmware partition is good, in subsequent use or during upgrading, Change is can't permit in the subregion.
2. according to the method for claim 1, it is characterised in that DSP has two kinds of mode of operations:Normal mode of operation and safety Programming pattern.
3. according to the method for claim 2, it is characterised in that DSP in powerup/reset, according to hardware setting determine into Which kind of mode of operation entered:When entering normal mode of operation, application firmware can be started in application partition, realize product Function;When entering safe programming pattern, safe programming firmware can be started in safe programming firmware partition, realize that application program is consolidated The upgrading of part.
4. according to the method for claim 2, it is characterised in that dsp chip needs to select GPIO pin for detecting user The mode of operation to be set.
5. according to the method for claim 4, it is characterised in that, can be according to specific GPIO for the dsp chip of part Level state determine that DSP specifies address location to start in FLASH, it is possible thereby to determine application partition and safe programming point The initial address in area.
6. according to the method for claim 5, it is characterised in that method workflow is specific as follows:
(1) DSP is after powerup/reset, and according to specified GPIO incoming level state, decision enters (2) step, or enters and perform Application program;
(2) start safe programming program in safe programming subregion, perform specific initialization operation:Initialize system clock, internal memory Chip and the peripheral hardware related to programming firmware;
(3) new DSP application firmwares are copied to internal memory by external bus or pluggable holder;
(4) FLASH application partition is wiped;
(5) the application firmware programming in internal memory to application partition.
7. according to the method for claim 4, it is characterised in that for the DSP cores that can only start in FLASH default address Piece, the acquiescence of the FLASH can be started to the initial address that address is arranged to safe programming firmware partition;DSP is in powerup/reset When, start in safe programming firmware partition, then read the GPIO incoming level states for determining mode of operation, decision turn is jumped to should Application program is performed with program sectioning, or safe programming firmware program is continued executing with this subregion.
8. according to the method for claim 7, it is characterised in that method workflow is specific as follows:
(1) DSP, into safe programming subregion, performs after powerup/reset and starts code, perform specific initialization operation:Just Beginningization system clock, memory chip and the peripheral hardware related to programming firmware;
(2) according to the incoming level state for specifying GPIO, decision enters (3) step, or enters and perform application program;
(3) safe programming program is started;
(4) new DSP application firmwares are copied to internal memory by external bus or pluggable holder;
(5) FLASH application partition is wiped;
(6) the application firmware programming in internal memory to application partition.
CN201710574750.3A 2017-07-14 2017-07-14 A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment Pending CN107506208A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710574750.3A CN107506208A (en) 2017-07-14 2017-07-14 A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710574750.3A CN107506208A (en) 2017-07-14 2017-07-14 A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment

Publications (1)

Publication Number Publication Date
CN107506208A true CN107506208A (en) 2017-12-22

Family

ID=60679755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710574750.3A Pending CN107506208A (en) 2017-07-14 2017-07-14 A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment

Country Status (1)

Country Link
CN (1) CN107506208A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762774A (en) * 2018-05-22 2018-11-06 深圳市先河系统技术有限公司 A kind of method of firmware burning and the equipment of firmware burning
CN109582341A (en) * 2018-12-14 2019-04-05 哈尔滨市科佳通用机电股份有限公司 A kind of host system and its programing change method of On-board System of Cab Signal equipment
CN110471674A (en) * 2019-08-21 2019-11-19 上海无线电设备研究所 The remote upgrade method of DSP embedded program based on C6455 chip
CN111638895A (en) * 2020-05-25 2020-09-08 哈尔滨市科佳通用机电股份有限公司 Online program changing method for locomotive signal vehicle-mounted equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464386A (en) * 2002-06-25 2003-12-31 联想(北京)有限公司 Method for realizing flush type system firmware program online updating
CN102360304A (en) * 2011-10-18 2012-02-22 华南理工大学 Embedded microprocessor system and method for updating firmware thereof
CN105204899A (en) * 2015-09-17 2015-12-30 浪潮软件集团有限公司 Realization of network-based singlechip firmware upgrading method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464386A (en) * 2002-06-25 2003-12-31 联想(北京)有限公司 Method for realizing flush type system firmware program online updating
CN102360304A (en) * 2011-10-18 2012-02-22 华南理工大学 Embedded microprocessor system and method for updating firmware thereof
CN105204899A (en) * 2015-09-17 2015-12-30 浪潮软件集团有限公司 Realization of network-based singlechip firmware upgrading method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108762774A (en) * 2018-05-22 2018-11-06 深圳市先河系统技术有限公司 A kind of method of firmware burning and the equipment of firmware burning
CN109582341A (en) * 2018-12-14 2019-04-05 哈尔滨市科佳通用机电股份有限公司 A kind of host system and its programing change method of On-board System of Cab Signal equipment
CN110471674A (en) * 2019-08-21 2019-11-19 上海无线电设备研究所 The remote upgrade method of DSP embedded program based on C6455 chip
CN111638895A (en) * 2020-05-25 2020-09-08 哈尔滨市科佳通用机电股份有限公司 Online program changing method for locomotive signal vehicle-mounted equipment
CN111638895B (en) * 2020-05-25 2021-01-22 哈尔滨市科佳通用机电股份有限公司 Online program changing method for locomotive signal vehicle-mounted equipment

Similar Documents

Publication Publication Date Title
CN107506208A (en) A kind of anti-DSP firmware on line upgrading methods burnt to death of equipment
CN105808270B (en) firmware variable updating method
CN104965725B (en) A kind of full-automatic firmware programming method of embedded device based on SD card
CN102567049B (en) The upgrade method of embedded OS
US9836417B2 (en) Bridge configuration in computing devices
CN100504785C (en) Method for automatically reading and updating apparatus data employing USB memory device
CN112000351B (en) Updating method, updating device, updating equipment and storage medium of BMC (baseboard management controller) firmware
CN102446141B (en) Device and method for realizing write protection control
US5819108A (en) Programming of software into programmable memory within a peripheral device
CN100416451C (en) Embedded system software loading device and method
CN102467446A (en) Processor chip emulator capable of setting program pointer value
CN115718610A (en) Reliable method for updating application program of single chip microcomputer
TWI530954B (en) Apparatuses for securing software code stored in a non-volatile memory
JP2003337748A (en) Electronic controller
CN107544804A (en) The startup method and device of embedded system terminal development mode
US9223697B2 (en) Computer reprogramming method, data storage medium and motor vehicle computer
CN101667133A (en) Method for updating firmware and chip updating firmware by using same
CN106775796B (en) Firmware upgrading method, device and system
CN106528114A (en) Android firmware application, android firmware and firmware upgrading method
US9619355B2 (en) Booting verification method of computer and electronic device
US7636798B2 (en) Methods and systems for integrating unique information in SAS interface components
KR102414206B1 (en) AUTOSAR standard application software component
JP7281275B2 (en) Module, information processing apparatus including same, and program data update method for updating program data of module
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools
US20060123145A1 (en) Encapsulated hardware configuration/control

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: 20171222