CN103092659A - Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator - Google Patents

Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator Download PDF

Info

Publication number
CN103092659A
CN103092659A CN2013100377376A CN201310037737A CN103092659A CN 103092659 A CN103092659 A CN 103092659A CN 2013100377376 A CN2013100377376 A CN 2013100377376A CN 201310037737 A CN201310037737 A CN 201310037737A CN 103092659 A CN103092659 A CN 103092659A
Authority
CN
China
Prior art keywords
code
subregion
resident element
software
upgrade
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
CN2013100377376A
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.)
China Aeronautical Radio Electronics Research Institute
Original Assignee
China Aeronautical Radio Electronics Research Institute
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 China Aeronautical Radio Electronics Research Institute filed Critical China Aeronautical Radio Electronics Research Institute
Priority to CN2013100377376A priority Critical patent/CN103092659A/en
Publication of CN103092659A publication Critical patent/CN103092659A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a digital signal processor (DSP) software upgrading system and an upgrading method separating from support environment of an emulator. The upgrading system comprises an operation processing module and a nonvolatile data program storage module. The operation processing module comprises an operation processing unit and other units. A program data memory unit, a serial network communication unit, a discrete magnitude input unit and a data loading caching unit are all connected with the operation processing unit. The nonvolatile data program storage module comprises a power-on guidance code resident unit, a configuration parameter resident unit, a minimum system resident unit, a first version system program resident unit and a second version system program resident unit. The power-on guidance code resident unit is connected with the minimum system resident unit, the first version system program resident unit and the second version system program resident unit through the configuration parameter resident unit. According to the DSP software upgrading system, the nonvolatile data program storage module is adopted to enable read-only guidance startup codes to be resided. Through combination with a system version zone bit in the external discrete magnitude input unit and the configuration parameter resident unit, the upgrading process of the system is safe and reliable.

Description

The dsp software upgrade-system and the upgrade method thereof that break away from the emulator support environment
Technical field
The present invention relates to a kind of upgrade-system and upgrade method thereof, particularly relate to a kind of dsp software upgrade-system and upgrade method thereof that breaks away from the emulator support environment.
Background technology
Along with DSP(Digital Signal Processing, digital signal processing) expansion at full speed of the powerful and application of chip functions, various industry controls, military equipment sharply increase the demand of complicated dsp system, bring thus the raising of dsp software maintenance complexity and frequent degree, particularly in order to tackle day by day frequently simply and effectively flight-line service upgrade requirement, be badly in need of designing a cover and have high safety reliability, reusability, the simple software upgrading implementation method of demand equipment.
The C5000 of TI company, C6000 series DSP chip are the large high-performance digital signal processors of current occupation rate on the market.Such DSP has following common feature: there is no inner ROM; The mapping of unified address; Power on and to start from external ROM/FLASH bootstrapping guiding; Need before starting from FLASH first address initial position by dma mode or directly the byte copy mode code that copies continuous 1KB or 64KB fixed size rerun to internal processes storage RAM, do not have the hardware of universal cpu complicated, these characteristics are brought certain difficulty to the upgrading of software systems on sheet.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of dsp software upgrade-system and upgrade method thereof that breaks away from the emulator support environment, it uses the resident read-only guiding start-up code of non-volatile data program storage block, by Peripheral Interface (as serial communication port, network interfaces etc.) the down loading updating program to the resident district of dsp system code, starts operation with discrete magnitude and non-volatile read-write zone bit control system.
The present invention solves above-mentioned technical matters by following technical proposals: a kind of dsp software upgrade-system that breaks away from the emulator support environment, it is characterized in that, it comprises calculation process module and non-volatile data program storage block, the calculation process module comprises that operation processing unit, routine data internal storage location, serial ports network communication unit, discrete magnitude input block, data load buffer unit, and routine data internal storage location, serial ports network communication unit, discrete magnitude input block, data load buffer unit and all are connected with operation processing unit; The non-volatile data program storage block comprises the guidance code resident element that powers on, configuration parameter resident element, minimum system resident element, first version system program resident element, second edition native system program resident element, and the guidance code resident element that powers on is connected with minimum system resident element, first version system program resident element, second edition native system program resident element by the configuration parameter resident element;
Operation processing unit does to be responsible for the normal operation of whole software and hardware;
The routine data internal storage location be used for to support operation processing unit to the reading of instruction code, data access;
The serial ports network communication unit receives and feeds back and upgrade operational order and status information, transmits upgrading data packet content to data and loads buffer unit;
The discrete magnitude input block is in conjunction with the configuration parameter resident element, be used for minimum system resident element that auxiliary judgment calculation process module selects the non-volatile data program storage block to comprise, first version system program resident element, second edition native system program resident element when electrification reset among a unit guide startup;
Data load buffer unit and are used for the new edition dsp system software code that buffer memory serial ports network communication unit sends;
The guidance code resident element that powers on is completed constantly for system power-on reset, and the operation processing unit bootstrap moves the guidance code that powers on;
The configuration parameter resident element is being deposited zone bit CVflag and other configuration parameters of the current version that works, and CVflag is used for the calculation process module and carries out the running software that judges and load the startup indicated release when powering on guidance code;
The minimum system resident element is deposited has the basic dsp software that drives the serial ports network communication unit and can carry out the FLASH read-write;
First version system program resident element is used for depositing the first version system-program code;
Second edition native system program resident element is used for depositing second edition native system program code.
Preferably, described non-volatile data program storage block is deposited each resident element content with a flash memory, and flash memory has the memory block, and the memory block can be divided into the first subregion, the second subregion, the 3rd subregion, the 4th subregion, the 5th subregion.
The present invention also provides a kind of upgrade method that breaks away from the dsp software upgrade-system of emulator support environment, and this upgrade method adopts the dsp software upgrade-system of disengaging emulator support environment as above, and this upgrade method comprises the following steps:
Step s10001 obtains upgrade by the serial ports network communication unit from user's input, enters the upgrading flow process;
Step s10002 obtains by the serial ports network communication unit upgrade code that host computer sends, and is also the software of new one edition, temporary loads buffer unit to data, obtain simultaneously this code file the scale-of-two CRC check and, be used for the AKU integrity check;
Step s10003 loads upgrade code in buffer unit with CRC check method checking data, the scale-of-two CRC check that the contrast host computer transmits and, confirm the integrality of AKU transmission;
By the CRC check in s10003, if there is checksum error, program will jump to step s1004, point out corresponding error message, stop the upgrading flow process, wait for that the user processes; If verification and correct goes to next step s10013 in the upgrading flow process;
Step s10013, the value of judgement configuration parameter, read the value of zone bit CVflag from the configuration parameter resident element, compare with 0x5A5A, if numerical value equates, flow process jumps to step s10113, otherwise zone bit CVflag equals other any values and jumps to step s10213 execution processing;
Step s10113, carry out upgrade code in the curing programming of corresponding the 4th subregion of non-volatile data program storage block, renewal process can cover original early version software in this subregion like this, will start the system of latest update when the guidance code that powers on guides the system software of this subregion to start;
Step s11113, the code that programming is completed carries out CRC check, guarantees more integrality and the availability of fresh code; If CRC check is made mistakes, flow process jumps to s10004, stops ROMPaq, and the prompting error message is waited for that the user processes, otherwise entered step s12113;
Step s12113, the zone bit CVflag value in the update configuration parameters resident element makes it equal 0xA5A5; The effect of upgrading is to guarantee to power on when primary system carries out electrifying startup instantly system's operation that boot upgrades in can selecting properly the 4th subregion;
Step s13113, the verification configuration parameter, also namely read the zone bit CVflag value in the configuration parameter resident element, mate with 0xA5A5, if equate show that the renewal operation in step s12113 is successfully, this moment, program forwarded step s10005 to, the safety upgrade of software, otherwise be unsuccessful, flow process jumps to s10004, point out corresponding mistake, wait for that the user processes;
In step s10013, if the value of judgement current C Vflag is not equal to 0x5A5A, the flow process of upgrading can enter step s10213, the 3rd subregion shown in the selection update software arrives;
Step s10213, s10113 is similar to step, carry out upgrade code in the curing programming of corresponding the 3rd subregion of non-volatile data program storage block, renewal process can cover original early version software in this subregion like this, will start the system of latest update in the 3rd subregion when the guidance code that powers on guides the system software of this subregion to start;
Step s11213, with step s11113, the code that upgrades in verification the 3rd subregion; If verification makes mistakes, flow process jumps to s10004, and the prompting error message also stops the upgrading flow process, otherwise verification succeeds enters step s12213;
Step s12213, with step s12113, carry out the renewal operation of the zone bit CVflag value in the configuration parameter resident element, CVflag writes 0x5A5A to zone bit, and the system that the boot of guaranteeing to power on when system carries out electrifying startup is next time upgraded in can selecting properly the 3rd subregion moves;
Step s13213, s13113 is identical with step.
Positive progressive effect of the present invention is: the present invention has avoided upgrading the shortcoming that the DSP code needs emulator to support, freely upgrades by Peripheral Interface; Guiding start-up code and system code have mutual independence, and both engineerings need not be united compiling, are beneficial to writing of system and application code; More fresh code uses the mode of the resident and mode bit secondary load of subregion, can't restart or recovery system when avoiding the renewal process failure, accomplishes that really the system update process safety is reliable.
Description of drawings
Fig. 1 is the theory diagram that the present invention breaks away from the dsp software upgrade-system of emulator support environment.
Fig. 2 is FLASH memory block subregion schematic diagram in the present invention.
Fig. 3 is the process flow diagram of the upgrade method of the present invention's dsp software upgrade-system of breaking away from the emulator support environment.
Fig. 4 is the process flow diagram that the present invention breaks away from the software startup loading method that the upgrade method of the dsp software upgrade-system of emulator support environment brings.
Embodiment
For the technical scheme that makes the embodiment of the present invention and a bit clearer, be further elaborated below in conjunction with the accompanying drawing embodiment that develops simultaneously.
With reference to figure 1, it is the structural representation of the specific embodiment of software update system of the present invention.As shown in the figure, the present invention's dsp software upgrade-system of breaking away from the emulator support environment mainly comprises calculation process module 10 and non-volatile data program storage block 11.The below to calculation process module 10 and non-volatile data program storage block 11 with and mutual relationship be elaborated.
Described calculation process module 10 is used for the system that current operation version is expected in operation, and the Processing tasks data communicate with the external world, and access non-volatile data program storage block 11, the maintenance system upgrading.
Calculation process module 10 comprises that operation processing unit 101, routine data internal storage location 102, serial ports network communication unit 103, discrete magnitude input block 104, data load buffer unit 105, and routine data internal storage location 102, serial ports network communication unit 103, discrete magnitude input block 104, data load buffer unit 105 and all are connected with operation processing unit 101.
Herein, described operation processing unit 101 as the core processing unit in the embodiment of the present invention, is also the dsp processor unit, is responsible for the normal operation of whole software and hardware.Be in embodiments of the present invention operation and the monitoring of planning as a whole the safety upgrade dsp software.
Routine data internal storage location 102 be used for to be supported the reading of 101 pairs of instruction codes of operation processing unit, data access etc.
Serial ports network communication unit 103, this element receive in embodiments of the present invention and feed back and upgrade operational order and status information, transmit upgrading data packet content to data and load buffer unit 105.
Discrete magnitude input block 104, the configuration parameter resident element 112 that this element comprises in conjunction with non-volatile data program storage block 11 in embodiments of the present invention, be used for minimum system resident element 113 that auxiliary judgment calculation process module 10 selects non-volatile data program storage block 11 to comprise, first version system program resident element 114, second edition native system program resident element 115 when electrification reset among a unit guide startup.
Data load buffer unit 105, are used for the new edition dsp system software code that buffer memory serial ports network communication unit 103 sends, and offer operation processing unit and carry out the verification of new edition dsp system software code, renewal etc.
Described non-volatile data program storage block 11 for program code stored, provides calculation process module 10 with programmed instruction, non-volatile configuration parameter etc.Non-volatile data program storage block 11 comprises the guidance code resident element 111 that powers on, configuration parameter resident element 112, minimum system resident element 113, first version system program resident element 114, second edition native system program resident element 115, and the guidance code resident element that powers on 111 is connected with minimum system resident element 113, first version system program resident element 114, second edition native system program resident element 115 by configuration parameter resident element 112.
The guidance code resident element 111 that powers on is used for system power-on reset and completes constantly operation processing unit 10 by the DMA bootstrap operation guidance code that powers on, the startup of guidance system, and this partial code band writing protection function can only read, and can not change or wipe.
Configuration parameter resident element 112, wherein mainly depositing zone bit CVflag and other parameter informations of the current version that works, CVflag is used for calculation process module 10 and carries out the running software that judges and load the startup indicated release when powering on guidance code, CVflag=0x5A5A represent from the 3rd section post A edition system program loading operation, CVflag=0xA5A5 represent from the 4th section post B edition system program loading operation, other void of data content, and the mandatory guidance procedure Selection is from the second subregion loading system at minimum system place.The configuration parameter resident element is provided with configuration parameter, not only comprises configuration parameter CVflag.Configuration parameter has a variety of, and use and purposes are also different, and CVflag is a parameter in all configuration parameters.The English meaning of CVflag is current version flag, represent the zone bit of the current system version that works, CVflag=0x5A5A, represent the current dsp system version that works in the 3rd subregion, CVflag=0xA5A5 represents that the current dsp system version software that works is in the 4th subregion.DSP guiding start-up code will judge that according to the currency of CVflag guiding starts the system code in the 3rd subregion or the 4th subregion.
Minimum system resident element 113; deposit in embodiments of the present invention and have the basic dsp software that drives serial ports network communication unit 103 and can carry out the functions such as FLASH read-write; this part software can only read; can not change or wipe; namely be with writing protection function, by loading and the startup of the guidance code that powers on.
First version system program resident element 114 is used for depositing A edition system program code, and this A edition system can be called the first version system, comprises the function of all unit of drive system and other application.
Second edition native system program resident element 115 is used for depositing B edition system program code, and this B edition system can be called the second edition native system, can think the upgraded version of first version software.
The normally non-volatile electric erasable type of the hardware carrier of non-volatile data program storage block 11 storage chip (NOR FLASH).
In order better to set forth the present invention, be illustrated as follows with Fig. 2 in conjunction with the resident subregion in each unit in non-volatile data program storage block 11:
Fig. 2 is FLASH memory block subregion schematic diagram, the FLASH(flash memory) be used for depositing each resident element content in embodiment of the present invention non-volatile data program storage block.FLASH has the memory block, and the memory block can be divided into five subregions, i.e. the first subregion, the second subregion, the 3rd subregion, the 4th subregion, the 5th subregion.
The corresponding FLASH of the first subregion first address memory block start address in Fig. 2 suppose that the first address of FLASH is unified to be assigned as 0x64000000 in the mapping of address at DSP, and setting FLASH capacity is 4096KB(Kbyte), five sections can be allocated as follows:
The first subregion: 0x64000000 ~ 0x6400ffff(64KB), for the code content of the guidance code resident element 111 that powers on of depositing non-volatile data/code storage module 11.
Guidance code resident element 111 powers on; complete moment operation processing unit 10 for system power-on reset and automatically move this code to 0 place, the address operation automatically of routine data internal storage location 102 by dma mode; the startup of guidance system; this partial code band writing protection function; can only read, can not change or wipe.
The second subregion: 0x64010000 ~ 0x6401ffff(64KB) is used for depositing the code content that the minimum system resident element 113 of non-volatile data/code storage module 11 comprises.
Minimum system resident element 113; deposit in embodiments of the present invention and have the basic dsp software that drives serial ports network communication unit 103 and can carry out the functions such as FLASH read-write; this part software can only read; can not change or wipe; namely be with writing protection function, by loading and the startup of the guidance code that powers on.
The 3rd subregion: 0x64020000 ~ 0x6405ffff(256KB), be used for depositing the content that first version system program resident element 114 comprises.
First version system program resident element 114 is used for depositing A edition system program code, and this A edition system can be called first version software, comprises the function of all unit of drive system and other application.
The 4th subregion: 0x64060000 ~ 0x6409ffff(256KB), be used for depositing the content that second edition native system program resident element 115 comprises.
Second edition native system program resident element 115 is used for depositing B edition system program code, and this B edition system can be called the second version software, can think the upgraded version of first version software.
The 5th subregion: 0x640A0000 ~ 0x640Affff(64KB), be used for depositing the content that configuration parameter resident element 112 comprises.
Configuration parameter resident element 112, that wherein mainly deposit is the zone bit CVflag of the current version that works, be used for calculation process module 10 and carry out the running software that judges and load the startup indicated release when powering on guidance code, CVflag=0x5A5A represent from the 3rd section post A edition system program loading operation, CVflag=0xA5A5 represent from the 4th section post B edition system program loading operation, other void of data content, and the mandatory guidance procedure Selection is from the second subregion loading system at minimum system place.0x5A5A is 16 sexadecimal numerical value, the value of setting to CVflag in expression the present invention, and CVflag can equal 0x5A5A or 0xA5A5.CVflag can not equal other any values, otherwise reads to such an extent that CVflag is other any worth time judgement CVflag values invalid (being also that the CVflag value is damaged) in renewal.Read the value (step s20023) of CVflag in the dsp system start-up course, if the system that when guiding of CVflag=0x5A5A representative system starts, guidance code is selected to comprise in the 3rd subregion starts, and CVflag=0xA5A5 represents to select the 4th subregion to start.Read the value (step s10013) of CVflag in the dsp system escalation process, if CVflag=0x5A5A, represent that current system moving is in the 3rd subregion, the system code of so new upgrading covers original code in the 4th subregion, rather than cover the code that in the 3rd subregion, moving this moment, reach the purpose of safety upgrade.If in step s10013, CVflag=0xA5A5 just repeats no more.
With reference to figure 3, break away from the schematic flow sheet of upgrade method of the dsp software upgrade-system of emulator support environment for the present invention.As shown in Figure 3, this embodiment implementation process comprises the steps:
Step s10001 obtains upgrade by the serial ports network communication unit from user's input, enters the upgrading flow process.
Step s10002 obtains by the serial ports network communication unit upgrade code that host computer sends, and is also the software of new one edition, temporary loads buffer unit to data, obtain simultaneously this code file the scale-of-two CRC check and, be used for the AKU integrity check.
Step s10003 loads upgrade code in buffer unit with CRC check method checking data, the scale-of-two CRC check that the contrast host computer transmits and, confirm the integrality of AKU transmission.
By the CRC check in s10003, if there is checksum error, program will jump to step s1004, point out corresponding error message, stop the upgrading flow process, wait for that the user processes.If verification and correct goes to next step s10013 in the upgrading flow process.
Step s10013, the value of judgement configuration parameter, read the value of zone bit CVflag from the configuration parameter resident element, compare with 0x5A5A, if numerical value equates, flow process jumps to step s10113, otherwise zone bit CVflag equals other any values and jumps to step s10213 execution processing.
Step s10113, carry out upgrade code the non-volatile data program storage block corresponding as Fig. 2 in the curing programming of the 4th subregion, renewal process can cover original early version software in this subregion like this, will start the system of latest update when the guidance code that powers on guides the system software of this subregion to start.
Step s11113, the code that programming is completed carries out CRC check, guarantees more integrality and the availability of fresh code.If CRC check is made mistakes, flow process jumps to s10004, stops ROMPaq, and the prompting error message is waited for that the user processes, otherwise entered step s12113.
Step s12113, the zone bit CVflag value in the update configuration parameters resident element makes it equal 0xA5A5.The effect of upgrading is the system's operation that guarantees primary system instantly such as Fig. 4 to power on when carrying out electrifying startup boot upgrades in can selecting properly the 4th subregion.
Step s13113, the verification configuration parameter, also namely read the zone bit CVflag value in the configuration parameter resident element, mate with 0xA5A5, if equate show that the renewal operation in step s12113 is successfully, this moment, program forwarded step s10005 to, the safety upgrade of software, otherwise be unsuccessful, flow process jumps to s10004, point out corresponding mistake, wait for that the user processes.
In step s10013, if the value of current C Vflag is not equal to 0x5A5A, the flow process of upgrading can enter step s10213, selects update software to the 3rd subregion shown in Fig. 2.
In the upgrading flow process, step s10013, s13113, s13213, s20023, s20123 are the CVflag items that reads in configuration parameter, and step s12113, s12213 are the values that resets CVflag.
Step s10213, s10113 is similar to step, carry out upgrade code the non-volatile data program storage block corresponding as Fig. 2 in the curing programming of the 3rd subregion, renewal process can cover original early version software in this subregion like this, will start the system of latest update in the 3rd subregion when the guidance code that powers on guides the system software of this subregion to start.
Step s11213, with step s11113, the code that upgrades in verification the 3rd subregion.If verification makes mistakes, flow process jumps to s10004, and the prompting error message also stops the upgrading flow process, otherwise verification succeeds enters step s12213.
Step s12213, with step s12113, carry out the renewal operation of the zone bit CVflag value in the configuration parameter resident element, CVflag writes 0x5A5A to zone bit, and the system that guarantees system next time such as Fig. 4 to power on when carrying out electrifying startup boot upgrades in can selecting properly the 3rd subregion moves.
Step s13213, s13113 is identical with step, does not repeat them here.
Above-mentioned upgrade step is safe and reliable, and any link in escalation process the unusual conditions such as deadlock, power down occur and can not cause system can't restart or can't again upgrade with method for upgrading software of the present invention.
The complete realization of the embodiment flow process of method for upgrading software of the present invention depends on the flow process of software startup loading method embodiment as described in Figure 4.
With reference to figure 4, the present invention breaks away from the software startup loading method embodiment schematic flow sheet that the upgrade method of the dsp software upgrade-system of emulator support environment is brought.As shown in Figure 4, this embodiment implementation process is as follows:
Step s20001, the dsp system electrifying startup, in systematic reset signal finish time, DSP begins to carry out to 0 address of routine data internal storage location from the guidance code resident element copy of powering on of the non-volatile data program storage block guidance code that powers on by dma mode automatically, and the first address that perhaps directly program pointer is pointed to the guidance code that powers on begins execution.
Step s20002 carries out the guidance code that powers on, and in this process, guidance code can judge whether directly to start minimum system by the value of obtaining the discrete magnitude input block.
Step s20003, the value of judgement discrete magnitude input, if the discrete magnitude input value of obtaining is low level, guidance code selects the minimum system code from the minimum system resident element to start.If the discrete magnitude input value of obtaining is high level, boot flow need to further judge by step s20023.
Step s20013, the boot that powers on is selected to start minimum system, and this system resides in the minimum system resident element 113 of non-volatile data/code storage module 11, corresponding to the second subregion in Fig. 2.
Minimum system, perhaps the A edition system also or the B edition system all will enter step s20004 program tasks after starting and process.
Step s20023, this situation is in the situation that the discrete magnitude input value of obtaining in step s20003 is high level occurs, when entering s20023, the boot that powers on can go the configuration parameter resident element 112 in non-volatile data program storage block 11 to read the value of zone bit CVflag, if CVflag=0x5A5A, boot execution in step s20223, load the system code that starts in the 3rd subregion, it is also A edition system program, otherwise execution in step s20123 enters again relatively judgement.
Step s20223, the guiding of boot completion system, the system that loads in first version system program resident element carries out, and enters step s20004.
Step s20123, when the value that judges for the first time CVflag in step s20023 is not equal to 0x5A5A, enter step s20123, more whether judgement symbol position CVflag value, equal 0xA5A5 for the second time, if equate, can conclude the system code that needs in guiding startup the 4th subregion, also namely jump to step s21123, otherwise boot thinks that the value of CVflag is an invalid value, thereby change on the flow process of guiding startup minimum system code.Zone bit CVflag intermediate value is invalid may be due to last update system is made mistakes in step s12113 or s12213.
Step s21123, zone bit CVflag=0xA5A5, the guiding of boot completion system, the system program that loads in second edition native system program resident element is carried out, and enters step s20004.
No matter start the system program in minimum system or the 3rd subregion or the 3rd subregion, all enter in the step s20004 of program task processing, must comprise the required content of all operations in Fig. 3 in the routine processes of this step, can accept the customer upgrade instruction, completion system upgrading task.
Step s20005, electric process ends operation under system, electricity finishes under normal completing user task processing and program background process.
The description of synthesizing map 3 and Fig. 4 starts for the safety upgrade of realizing dsp system software with to the correct guiding of up-to-date upgrade-system software, and the renewal of configuration parameter plays a key effect.
The guidance code of supposing to power under current normal startup system situation is that the system code in guiding the 3rd subregion starts, this moment configuration parameter CVflag=0x5A5A.According to software systems start-up course embodiment schematic flow sheet of the present invention in Fig. 4, execution in step is s20001-〉s20002-〉s20003-〉s20023-〉s20223-〉s20004.
And when the current configuration parameter CVflag=0xA5A5 of system, the guidance code that powers on will guide the system code that starts in the 4th subregion, according to software systems start-up course embodiment schematic flow sheet of the present invention in Fig. 4, execution in step is s20001-〉s20002-〉s20003-〉s20023-〉s20123-〉s21123-〉s20004.
If the value CVflag of configuration parameter both had been not equal to 0x5A5A, also be not equal to 0xA5A5, we just think that the value in configuration parameter is invalid, the guidance code that powers on this moment will guide and start the execution of minimum system code, according to software systems start-up course embodiment schematic flow sheet of the present invention in Fig. 4, execution in step is s20001-〉s20002-〉s20003-〉s20023-〉s20123-〉s20013-〉s20004.
Value in the user thinks configuration parameter is effective, be CVflag=0x5A5A or CVflag=0xA5A5, and need to start from the 3rd subregion (CVflag=0x5A5A this moment) or start (CVflag=0xA5A5 this moment) system code from the 4th subregion, yet system does not normally start, we to think in the update software process in the non-volatile data program storage block that system program upgrades the programming process unexpected, fail normal completion system to upgrade.At this moment, the incoming level that needs the user that the discrete magnitude input block is set is low level, restarts minimum system and enters the program task processing procedure and carry out system upgrade.According to software systems start-up course embodiment schematic flow sheet of the present invention in Fig. 4, execution in step is s20001-〉s20002-〉s20003-〉s20013-〉s20004.
When the minimum system operation is carried out in the boot guiding that powers on, the dsp system software if system need to upgrade, minimum system upgrading task can point out the user to select to confirm that the new system that upgrades leaves the 3rd subregion or the 4th subregion as shown in Figure 2 in, if leave the 3rd subregion in, minimum system upgrades the configuration parameter CVflag=0x5A5A that can set in the dsp system software process after upgrading, otherwise the user can only select the system of new upgrading to leave the 4th subregion in, and minimum system is set the configuration parameter CVflag=0xA5A5 after upgrading.In the situation that the discrete magnitude input block is completed and arranged in renewal is high level, during next electrifying startup, boot can select the system code of up-to-date upgrading to carry out automatically like this.
If current execution is the task of system code in the 3rd subregion, the user need to carry out system upgrade, can affirm current configuration parameter CVflag=0x5A5A, software security is upgraded shown in the embodiment process flow diagram according to the present invention, system accepts the buffer memory code of new upgrade-system by the serial ports network communication unit, verification and programming the 4th subregion, cover original system code in the 4th subregion, and the value of update configuration parameters, make CVflag=0xA5A5, guarantee that when power on next time, guidance code guides the new system that carries out in the 4th subregion automatically.This upgrading flow performing step is s10001-〉s10002-〉s10003-〉s10013-〉s10113-〉s11113-〉s12113-〉s13113-〉s10005.
If in the above first paragraph content (" if current execution is the task of system code in the 3rd subregion ... s10005 ") realize cut off the power supply in escalation process, deadlock etc. is abnormal, and programming failure in step s10113, in the 4th subregion, original code wrecks, this moment, guidance code still can select the system code in the 3rd subregion to carry out automatically during restarting systems, because the value of configuration parameter is 0x5A5A, do not upgrade.If outage in the escalation process of first paragraph content, deadlock etc. occur in step s12113 extremely in the above, this moment, the value of configuration parameter was destroyed, during restarting systems, guidance code can guide minimum system to start, and the user can carry out the upgrading of system software with reference to the description in top second segment content (" in the boot that powers on ... system code is carried out ").
If current execution is the task of system code in the 4th subregion, the user need to carry out system upgrade, can affirm current configuration parameter CVflag=0xA5A5, the flow performing of normally upgrading step is s10001-〉s10002-〉s10003-〉s10013-〉s10213-〉s11213-〉s12213-〉s13213-〉s10005.
If in the above first paragraph content (" if current execution is the task of system code in the 4th subregion ... s10005 ") realize cut off the power supply in escalation process, deadlock etc. is abnormal, and programming failure in step s10213, in the 3rd subregion, original code wrecks, this moment, guidance code still can select the system code in the 4th subregion to carry out automatically during restarting systems, because the value of configuration parameter is 0xA5A5, do not upgrade.If outage in the escalation process of first paragraph content, deadlock etc. occur in step s12213 extremely in the above, this moment, the value of configuration parameter was destroyed, during restarting systems, guidance code can guide minimum system to start, and the user can carry out the upgrading of system software with reference to the description in top the 4th section content (" in the boot that powers on ... system code is carried out ").
In sum, in the system upgrade process, no matter upgrade failure occurs in any stage, and system can normally upgrade after re-powering again, until upgrading is completed.And the system software that upgrades is the system software that automatically covers last revision, but not the current system software that is moving version.
Those skilled in the art can carry out various remodeling and change to the present invention.Therefore, the present invention has covered various remodeling and the change in the scope that falls into appending claims and equivalent thereof.

Claims (3)

1. dsp software upgrade-system that breaks away from the emulator support environment, it is characterized in that, it comprises calculation process module and non-volatile data program storage block, the calculation process module comprises that operation processing unit, routine data internal storage location, serial ports network communication unit, discrete magnitude input block, data load buffer unit, and routine data internal storage location, serial ports network communication unit, discrete magnitude input block, data load buffer unit and all are connected with operation processing unit; The non-volatile data program storage block comprises the guidance code resident element that powers on, configuration parameter resident element, minimum system resident element, first version system program resident element, second edition native system program resident element, and the guidance code resident element that powers on is connected with minimum system resident element, first version system program resident element, second edition native system program resident element by the configuration parameter resident element;
Operation processing unit does to be responsible for the normal operation of whole software and hardware;
The routine data internal storage location be used for to support operation processing unit to the reading of instruction code, data access;
The serial ports network communication unit receives and feeds back and upgrade operational order and status information, transmits upgrading data packet content to data and loads buffer unit;
The discrete magnitude input block is in conjunction with the configuration parameter resident element, be used for minimum system resident element that auxiliary judgment calculation process module selects the non-volatile data program storage block to comprise, first version system program resident element, second edition native system program resident element when electrification reset among a unit guide startup;
Data load buffer unit and are used for the new edition dsp system software code that buffer memory serial ports network communication unit sends;
The guidance code resident element that powers on is completed constantly for system power-on reset, and the operation processing unit bootstrap moves the guidance code that powers on;
The configuration parameter resident element is being deposited zone bit CVflag and other parameter informations of the current version that works, and CVflag is used for the calculation process module and carries out the running software that judges and load the startup indicated release when powering on guidance code;
The minimum system resident element is deposited has the basic dsp software that drives the serial ports network communication unit and can carry out the FLASH read-write;
First version system program resident element is used for depositing the first version system-program code;
Second edition native system program resident element is used for depositing second edition native system program code.
2. the dsp software upgrade-system of disengaging emulator support environment as claimed in claim 1, it is characterized in that, described non-volatile data program storage block is deposited each resident element content with a flash memory, flash memory has the memory block, and the memory block can be divided into the first subregion, the second subregion, the 3rd subregion, the 4th subregion, the 5th subregion.
3. a upgrade method that breaks away from the dsp software upgrade-system of emulator support environment, is characterized in that, this upgrade method adopts the dsp software upgrade-system of disengaging emulator support environment as claimed in claim 2, and this upgrade method comprises the following steps:
Step s10001 obtains upgrade by the serial ports network communication unit from user's input, enters the upgrading flow process;
Step s10002 obtains by the serial ports network communication unit upgrade code that host computer sends, and is also the software of new one edition, temporary loads buffer unit to data, obtain simultaneously this code file the scale-of-two CRC check and, be used for the AKU integrity check;
Step s10003 loads upgrade code in buffer unit with CRC check method checking data, the scale-of-two CRC check that the contrast host computer transmits and, confirm the integrality of AKU transmission;
By the CRC check in s10003, if there is checksum error, program will jump to step s1004, point out corresponding error message, stop the upgrading flow process, wait for that the user processes; If verification and correct goes to next step s10013 in the upgrading flow process;
Step s10013, the value of judgement configuration parameter, read the value of zone bit CVflag from the configuration parameter resident element, compare with 0x5A5A, if numerical value equates, flow process jumps to step s10113, otherwise zone bit CVflag equals other any values and jumps to step s10213 execution processing;
Step s10113, carry out upgrade code in the curing programming of corresponding the 4th subregion of non-volatile data program storage block, renewal process can cover original early version software in this subregion like this, will start the system of latest update when the guidance code that powers on guides the system software of this subregion to start;
Step s11113, the code that programming is completed carries out CRC check, guarantees more integrality and the availability of fresh code; If CRC check is made mistakes, flow process jumps to s10004, stops ROMPaq, and the prompting error message is waited for that the user processes, otherwise entered step s12113;
Step s12113, the zone bit CVflag value in the update configuration parameters resident element makes it equal 0xA5A5; The effect of upgrading is to guarantee to power on when primary system carries out electrifying startup instantly system's operation that boot upgrades in can selecting properly the 4th subregion;
Step s13113, the verification configuration parameter, also namely read the zone bit CVflag value in the configuration parameter resident element, mate with 0xA5A5, if equate show that the renewal operation in step s12113 is successfully, this moment, program forwarded step s10005 to, the safety upgrade of software, otherwise be unsuccessful, flow process jumps to s10004, point out corresponding mistake, wait for that the user processes;
In step s10013, if the value of judgement current C Vflag is not equal to 0x5A5A, the flow process of upgrading can enter step s10213, the 3rd subregion shown in the selection update software arrives;
Step s10213, s10113 is similar to step, carry out upgrade code in the curing programming of corresponding the 3rd subregion of non-volatile data program storage block, renewal process can cover original early version software in this subregion like this, will start the system of latest update in the 3rd subregion when the guidance code that powers on guides the system software of this subregion to start;
Step s11213, with step s11113, the code that upgrades in verification the 3rd subregion; If verification makes mistakes, flow process jumps to s10004, and the prompting error message also stops the upgrading flow process, otherwise verification succeeds enters step s12213;
Step s12213, with step s12113, carry out the renewal operation of the zone bit CVflag value in the configuration parameter resident element, CVflag writes 0x5A5A to zone bit, and the system that the boot of guaranteeing to power on when system carries out electrifying startup is next time upgraded in can selecting properly the 3rd subregion moves;
Step s13213, s13113 is identical with step.
CN2013100377376A 2013-01-31 2013-01-31 Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator Pending CN103092659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013100377376A CN103092659A (en) 2013-01-31 2013-01-31 Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013100377376A CN103092659A (en) 2013-01-31 2013-01-31 Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator

Publications (1)

Publication Number Publication Date
CN103092659A true CN103092659A (en) 2013-05-08

Family

ID=48205270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013100377376A Pending CN103092659A (en) 2013-01-31 2013-01-31 Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator

Country Status (1)

Country Link
CN (1) CN103092659A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412770A (en) * 2013-07-25 2013-11-27 北京控制工程研究所 Operating system support based general online solidifying method for embedded system
CN104049996A (en) * 2014-05-29 2014-09-17 湖北三江航天红峰控制有限公司 Method for carrying out software updating of missile-borne computer based on serial port
CN104281463A (en) * 2013-07-12 2015-01-14 中国航天科工集团第三研究院第八三五八研究所 Version-selectable DSP (Digital Signal Processor) program loading method
CN104899064A (en) * 2015-06-03 2015-09-09 成都天奥信息科技有限公司 Remote intelligent upgrading method for dual multi-core DSPs (Digital Signal Processor) of pulse pressure navigation radar
CN108664264A (en) * 2018-08-16 2018-10-16 成都爱斯顿科技有限公司 A kind of device and method remotely updating FPGA by JTAG modes based on CPU
CN110659056A (en) * 2019-09-28 2020-01-07 西南电子技术研究所(中国电子科技集团公司第十研究所) DSP program online updating circuit
CN111008027A (en) * 2019-11-22 2020-04-14 中国航空工业集团公司洛阳电光设备研究所 Networked software reinjection and loading method based on airborne photoelectric equipment
CN111783173A (en) * 2020-06-30 2020-10-16 湖南中车时代通信信号有限公司 Protection circuit and method for NOR flash memory of railway product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786910A (en) * 2004-12-09 2006-06-14 华为技术有限公司 BIOS on-line upgrading method
CN101188516A (en) * 2007-12-21 2008-05-28 康佳集团股份有限公司 A highly reliable and self-adapted remote update method for network device software system
CN101436138A (en) * 2007-11-16 2009-05-20 苏州科达通信技术发展有限公司 Control device and control method for software upgrade and dynamic rolling back
CN101472050A (en) * 2007-12-27 2009-07-01 Tcl集团股份有限公司 Method and system for updating software, digital television receive terminal and server
CN101650662A (en) * 2009-08-26 2010-02-17 中兴通讯股份有限公司 Memory device of embedded system and staring method and upgrading of firmware
CN102033790A (en) * 2010-12-15 2011-04-27 中兴通讯股份有限公司 Method and device for upgrading embedded-type system BOOTROM

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1786910A (en) * 2004-12-09 2006-06-14 华为技术有限公司 BIOS on-line upgrading method
CN101436138A (en) * 2007-11-16 2009-05-20 苏州科达通信技术发展有限公司 Control device and control method for software upgrade and dynamic rolling back
CN101188516A (en) * 2007-12-21 2008-05-28 康佳集团股份有限公司 A highly reliable and self-adapted remote update method for network device software system
CN101472050A (en) * 2007-12-27 2009-07-01 Tcl集团股份有限公司 Method and system for updating software, digital television receive terminal and server
CN101650662A (en) * 2009-08-26 2010-02-17 中兴通讯股份有限公司 Memory device of embedded system and staring method and upgrading of firmware
CN102033790A (en) * 2010-12-15 2011-04-27 中兴通讯股份有限公司 Method and device for upgrading embedded-type system BOOTROM

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张小莉: "《基于串口的DSP软件下载设计与实现》", 《信息安全与通信保密》, 10 January 2012 (2012-01-10) *
张麦龙等: "《DSP平台使用串口升级软件的实现》", 《信息与电脑》, 31 August 2012 (2012-08-31) *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104281463A (en) * 2013-07-12 2015-01-14 中国航天科工集团第三研究院第八三五八研究所 Version-selectable DSP (Digital Signal Processor) program loading method
CN103412770A (en) * 2013-07-25 2013-11-27 北京控制工程研究所 Operating system support based general online solidifying method for embedded system
CN103412770B (en) * 2013-07-25 2015-05-27 北京控制工程研究所 Operating system support based general online solidifying method for embedded system
CN104049996A (en) * 2014-05-29 2014-09-17 湖北三江航天红峰控制有限公司 Method for carrying out software updating of missile-borne computer based on serial port
CN104899064A (en) * 2015-06-03 2015-09-09 成都天奥信息科技有限公司 Remote intelligent upgrading method for dual multi-core DSPs (Digital Signal Processor) of pulse pressure navigation radar
CN108664264A (en) * 2018-08-16 2018-10-16 成都爱斯顿科技有限公司 A kind of device and method remotely updating FPGA by JTAG modes based on CPU
CN110659056A (en) * 2019-09-28 2020-01-07 西南电子技术研究所(中国电子科技集团公司第十研究所) DSP program online updating circuit
CN110659056B (en) * 2019-09-28 2022-12-13 西南电子技术研究所(中国电子科技集团公司第十研究所) DSP program online updating circuit
CN111008027A (en) * 2019-11-22 2020-04-14 中国航空工业集团公司洛阳电光设备研究所 Networked software reinjection and loading method based on airborne photoelectric equipment
CN111783173A (en) * 2020-06-30 2020-10-16 湖南中车时代通信信号有限公司 Protection circuit and method for NOR flash memory of railway product

Similar Documents

Publication Publication Date Title
CN103092659A (en) Digital signal processor (DSP) software upgrading system and upgrading method separated from support environment of emulator
CN104090796B (en) A kind of embedded device method for updating program and system
CN105354070B (en) A method of passing through I2C updating apparatus firmware
CN101557583B (en) Remote-updating and version-switching method of repeater equipment embedded software
CN101815988A (en) Firmware image update and management
CN104360877A (en) ECU (electronic control unit) firmware updating method based on Bootloader self update
EP3879399B1 (en) Method and apparatus for upgrading vehicle-mounted tbox, device, and storage medium
CN102339227A (en) Multi-firmware embedded system and firmware update method thereof
CN109710295A (en) A kind of safely and reliably FPGA remote upgrade method
CN101826027A (en) Embedded system and updating method thereof
CN101344854A (en) Method for upgrading embedded type Linux equipment through SD card
CN105677398A (en) Universal embedded computer software on-line upgrading method
CN110083380A (en) Firmware update and the electronic device for using the method
CN111176739A (en) System starting method, device, equipment and storage medium
CN101872306B (en) Embedded system for realizing software updating and software backup and implementation method thereof
CN111782246A (en) Embedded program upgrading method of multi-node equipment based on bus
CN112015447B (en) System updating method and device of electronic equipment, electronic equipment and storage medium
CN104991805B (en) Smart machine and its system calamity are for control method
CN106201608A (en) Computer UEFI firmware update
CN105320529A (en) Boot method and device based on NAND-Flash double-boot guidance
CN115220758B (en) Method for on-line upgrading of single chip microcomputer firmware
CN114138295A (en) Method, device and system for upgrading application program firmware of electronic equipment
EP3301571B1 (en) System and method for updating device software
CN100472449C (en) Engineer application method and device for using double Bootrom starting and guiding CPU
CN106611124B (en) Computer installation and its starting-up method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130508