CN102520976A - Solidifying method of DSP (digital signal processor) program - Google Patents
Solidifying method of DSP (digital signal processor) program Download PDFInfo
- Publication number
- CN102520976A CN102520976A CN2011103644492A CN201110364449A CN102520976A CN 102520976 A CN102520976 A CN 102520976A CN 2011103644492 A CN2011103644492 A CN 2011103644492A CN 201110364449 A CN201110364449 A CN 201110364449A CN 102520976 A CN102520976 A CN 102520976A
- Authority
- CN
- China
- Prior art keywords
- dsp
- code
- executable file
- ram
- engineering
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to the field of program solidification, and discloses a solidifying method of a DSP (digital signal processor) program. The solidifying method specifically contains the following steps of: step 1, leading an executable file code of a DSP target project to be loaded in an RAM (random access memory) of a DSP through an emulator, and then using the emulator to load the executable file code of a DSP burning writing code project in the RAM of the DSP, wherein the executable file code of the DSP target project and the executable file code of the DSP burning writing code project are respectively stored in different spaces of the RAM; and step 2, operating the executable file code of the DSP burning writing code project, and splitting and writing the executable file code of a target project in the RAM to an external nonvolatile storage. The method not only can be used for completing solidification of a DSP object code, but also has the advantages of simple realization process, high safety, good reliability, good portability, and does not need format conversion and the like; and the DSP object code can be quickly, universally and reliably solidified and complicated solidifying steps are abandoned through the method provided by the invention.
Description
Technical field
The present invention relates to the program Solidification technical field, relate in particular to a kind of curing of DSP program.
Background technology
In the DSP embedded system, DSP finally can break away from debugging enironment and the offline operation of host computer, and just object code need automatically load after system power-up.Therefore, need its object code be placed on outside non-volatile storer, use EPROM such as tradition, EEPROM, NOR FLASH etc. are loaded on it in dsp processor inside or the external RAM when system powers on and move.
The executable file of DSP target engineering output is the COFF form, file extension .out, and full name is general target file layout (CommonObject File Format); File layout comprises paragraph header, executable code and initialization data, relocatable information; Row number inlet, symbol table, string table etc.; Yet most of storer is not supported this form, need convert thereof into the ASCII-Hex format of standard.There is certain risk in the ASCII-Hex form that converts standard at the executable file with the output of DSP target engineering to.As: 1. format conversion easy error.Format conversion is a loaded down with trivial details and complicated process; Need to use hex crossover tool, application program the map file, oneself write the CMD file, be familiar with dependent instruction and storer bit wide etc.; Therefore; Executable file is being changed particularly when having the executable file conversion of DSP/BIOS operating system, be easy to produce wrong and can not normally use after causing object code to solidify.2. transplantability is poor.Different chips, without application program, need to use different hex crossover tools, write different CMD file etc.3. correctness can't detect.Do not have a kind of tool and method can detect executable file at present and whether change success, only can be through the system after solidifying is carried out testing authentication.
Summary of the invention
The objective of the invention is to exist to the curing of DSP program of the prior art to be prone to make mistakes, the problem that portable difference and result can't detect provides the curing of DSP program in.
The object of the invention is realized through following technical proposals:
A kind of curing of DSP program, it specifically comprises following steps:
Step 1. is loaded on the executable file code of DSP target engineering among the RAM of DSP through emulator, use emulator also to be loaded on the executable file code of DSP programming code engineering among the RAM of DSP then; Wherein the executable file code of the executable file code of DSP target engineering and DSP programming code engineering leaves the different spaces of RAM respectively in;
The executable file code of step 2. operation DSP programming code engineering splits the back programming in nonvolatile external memory with the executable file code of the target engineering among the RAM.
Preferably; Above-mentioned rapid 2 are specially programming code engineering at first reads DSP target engineering from the RAM storer executable file code; Then the executable file code is split into the data of bit wide in the nonvolatile external memory, the data programming after last programming code engineering will split is to nonvolatile external memory.
Preferably, the said external nonvolatile memory is EPROM, EEPROM or FLASH.
Beneficial effect of the present invention: load with emulator, will be loaded into again that code among the RAM reads and programming realizes directly solidifying in nonvolatile external memory.This method not only can be accomplished the curing of DSP object code, and has realization and simply, do not need advantages such as format conversion, safe, good reliability, transplantability be good.Through method provided by the invention, the DSP object code can be realized quick, general, reliable curing, has taken leave of loaded down with trivial details curing schedule.
Description of drawings
Accompanying drawing 1 hardware system structure figure for being cured object code.
Accompanying drawing 2 is programming software executing flow process figure.
Accompanying drawing 3 solidifies process flow diagram for object code.
Embodiment
The curing of DSP program of the present invention specifically comprises following steps:
Step 1. is loaded on the executable file code of DSP target engineering among the RAM of DSP through emulator, use emulator also to be loaded on the executable file code of DSP programming code engineering among the RAM of DSP then; Wherein the executable file code of the executable file code of DSP target engineering and DSP programming code engineering leaves the different spaces of RAM respectively in.
The executable file code of step 2. operation DSP programming code engineering splits the back programming in nonvolatile external memory with the executable file code of the target engineering among the RAM.
Can be automatically after most of dsp processor powers up from nonvolatile external memory the loaded targets code to RAM, carry out, so-called loading is to move being placed among the RAM after the copying codes of external memory storage and the splicing in fact.Generally speaking, the code that loads from nonvolatile external memory is consistent with the code that loads from emulator.Therefore, load, will be loaded into again that code among the RAM reads and programming realizes directly solidifying in nonvolatile external memory with emulator.This method not only can be accomplished the curing of DSP object code, and has realization and simply, do not need advantages such as format conversion, safe, good reliability, transplantability be good.Through method provided by the invention, the DSP object code can be realized quick, general, reliable curing, has taken leave of loaded down with trivial details curing schedule.
Preferably; Said step 2 is specially programming code engineering at first reads DSP target engineering from RAM storer 12 executable file code; The executable file code splits into the data of 13 bit wides in the nonvolatile external memory then, in data programming to the nonvolatile external memory 13 after last programming code engineering will split.Among the present invention, DSP programming program design has reduced taking of RAM resource, has improved the processing power of system.Wherein the said external nonvolatile memory can be EPROM, EEPROM, FLASH or the like.
Below in conjunction with specific embodiment and accompanying drawing the present invention is further described.
Referring to Fig. 1; Shown in embodiment wherein; Can the hardware system 1 that object code is cured mainly be comprised: a dsp processor 11 (as: TMS320C6416), a FLASH storer 13 (as: S29GL512N), a SDRAM storer 12 (as: MT48LC32M16A2); A jtag interface 14, this dsp processor link to each other with FLASH storer, SDRAM storer, JTAG respectively.FLASH storer 13 is used to store the DSP executable code, and SDRAM storer 12 is used to move the DSP code.
Referring to Fig. 2, specify programming software executing flow process.Behind jtag interface 14 loading programming softwares; Programming software at first can read program codes (step 110) from SDRAM storer 12; Programming software splits into the data (step 120) of FLASH storer 13 bit wides with object code then, and last programming software is with in data programming to the FLASH storer 13 (step 130).
Referring to Fig. 3, specify object code and solidify flow process.The object code space (step 210) that at first can carry out .out file to SDRAM storer 12 through jtag interface 14 loaded targets programs; Loading loads the programming program code space (step 220) that the programming program can be carried out .out file to SDRAM storer 12 through jtag interface 14; At last, operation programming software (step 230).
Given coefficient and parameter in the above embodiments; Provide to those skilled in the art and realize or use of the present invention; The present invention does not limit and only gets aforementioned disclosed numerical value, and under the situation that does not break away from invention thought of the present invention, those skilled in the art can make various modifications or adjustment to the foregoing description; Thereby protection scope of the present invention do not limit by the foregoing description, and should be the maximum magnitude that meets the inventive features that claims mention.
Claims (3)
1. the curing of a DSP program, it specifically comprises following steps:
Step 1. is loaded on the executable file code of DSP target engineering among the RAM of DSP through emulator, use emulator also to be loaded on the executable file code of DSP programming code engineering among the RAM of DSP then; Wherein the executable file code of the executable file code of DSP target engineering and DSP programming code engineering leaves the different spaces of RAM respectively in;
The executable file code of step 2. operation DSP programming code engineering splits the back programming in nonvolatile external memory with the executable file code of the target engineering among the RAM.
2. the curing of DSP program as claimed in claim 1; It is characterized in that said step 2 is specially programming code engineering at first reads DSP target engineering from the RAM storer executable file code; Then the executable file code is split into the data of bit wide in the nonvolatile external memory, the data programming after last programming code engineering will split is to nonvolatile external memory.
3. the curing of DSP program as claimed in claim 1 is characterized in that said nonvolatile external memory is EPROM, EEPROM or FLASH.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110364449.2A CN102520976B (en) | 2011-11-17 | 2011-11-17 | Solidifying method of DSP (digital signal processor) program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110364449.2A CN102520976B (en) | 2011-11-17 | 2011-11-17 | Solidifying method of DSP (digital signal processor) program |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102520976A true CN102520976A (en) | 2012-06-27 |
CN102520976B CN102520976B (en) | 2015-04-01 |
Family
ID=46291918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110364449.2A Expired - Fee Related CN102520976B (en) | 2011-11-17 | 2011-11-17 | Solidifying method of DSP (digital signal processor) program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102520976B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302618A (en) * | 2015-12-05 | 2016-02-03 | 中国航空工业集团公司洛阳电光设备研究所 | Rapid programming method for ASAAC standard digital signal processing module |
CN106201636A (en) * | 2016-08-11 | 2016-12-07 | 中国电子科技集团公司第二十九研究所 | A kind of DSP off-chip code dynamic loading method and device |
CN106249666A (en) * | 2016-09-23 | 2016-12-21 | 北京机械设备研究所 | A kind of online tune based on digital communication joins system and method |
CN106648807A (en) * | 2017-01-10 | 2017-05-10 | 北京电子工程总体研究所 | FLASH memory based DSP(digital signal processing) software upload updating method |
CN110119284A (en) * | 2018-02-05 | 2019-08-13 | 无锡华润矽科微电子有限公司 | Flash storage programming system and method |
CN114296700A (en) * | 2021-12-08 | 2022-04-08 | 成都恩菲特科技有限公司 | DSP engineering transplanting method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604249A (en) * | 2009-03-30 | 2009-12-16 | 华为技术有限公司 | The method of loading non-volatile memory program and embedded system and control device |
CN101625644A (en) * | 2009-08-04 | 2010-01-13 | 大唐微电子技术有限公司 | Flash memory chip operation method, in-circuit emulator and flash memory chip operation system |
-
2011
- 2011-11-17 CN CN201110364449.2A patent/CN102520976B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604249A (en) * | 2009-03-30 | 2009-12-16 | 华为技术有限公司 | The method of loading non-volatile memory program and embedded system and control device |
CN101625644A (en) * | 2009-08-04 | 2010-01-13 | 大唐微电子技术有限公司 | Flash memory chip operation method, in-circuit emulator and flash memory chip operation system |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105302618A (en) * | 2015-12-05 | 2016-02-03 | 中国航空工业集团公司洛阳电光设备研究所 | Rapid programming method for ASAAC standard digital signal processing module |
CN106201636A (en) * | 2016-08-11 | 2016-12-07 | 中国电子科技集团公司第二十九研究所 | A kind of DSP off-chip code dynamic loading method and device |
CN106201636B (en) * | 2016-08-11 | 2019-03-26 | 中国电子科技集团公司第二十九研究所 | A kind of outer code dynamic loading method of DSP piece and device |
CN106249666A (en) * | 2016-09-23 | 2016-12-21 | 北京机械设备研究所 | A kind of online tune based on digital communication joins system and method |
CN106249666B (en) * | 2016-09-23 | 2020-01-24 | 北京机械设备研究所 | Online parameter adjusting system and method based on digital communication |
CN106648807A (en) * | 2017-01-10 | 2017-05-10 | 北京电子工程总体研究所 | FLASH memory based DSP(digital signal processing) software upload updating method |
CN110119284A (en) * | 2018-02-05 | 2019-08-13 | 无锡华润矽科微电子有限公司 | Flash storage programming system and method |
CN110119284B (en) * | 2018-02-05 | 2023-09-12 | 华润微集成电路(无锡)有限公司 | Flash memory programming system and method |
CN114296700A (en) * | 2021-12-08 | 2022-04-08 | 成都恩菲特科技有限公司 | DSP engineering transplanting method |
Also Published As
Publication number | Publication date |
---|---|
CN102520976B (en) | 2015-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102520976B (en) | Solidifying method of DSP (digital signal processor) program | |
TWI383319B (en) | Computer system and booting method of same | |
CN103744713A (en) | Autonomous configuration method for FPGA (field programmable gate array)-based embedded dual-core system | |
JP2009533770A5 (en) | ||
CN103577212A (en) | System starting preloading method and device | |
CN106095416B (en) | Jump processing method and device in application program and intelligent terminal | |
KR20170007613A (en) | Memory control unit and data storage device including the same | |
US9037781B2 (en) | Method for managing buffer memory, memory controllor, and memory storage device | |
CN103678053A (en) | Computer self-check method and system | |
CN101826020A (en) | Reading method for boot sequence of computer boot equipment | |
WO2016187801A1 (en) | Data management method for storage medium, solid state hard disk and control chip | |
CN102750202A (en) | Data protection method and device | |
CN102609282A (en) | Execution method for NAND flash curing codes | |
CN108345430B (en) | Nand flash element and operation control method and device thereof | |
CN103729202A (en) | DSP reliable on-line FLASH programming method based on GEL script | |
CN102623066A (en) | Saving and acquisition method for solidification code parameter table | |
CN102918508B (en) | The replay architecture of catching without probe tracking is adopted to perform | |
CN102081564A (en) | System with debugging function and debugging method thereof | |
JP2007299249A (en) | Nand-type flash memory device and starting method for computing system using it | |
EP1942503B1 (en) | Memory device with control chip having compatible configure function and manufacturing method thereof | |
CN101777001A (en) | DSP (Digital Signal Processor)-based online process curing method | |
US20150309943A1 (en) | Memory control unit and data storage device including the same | |
CN102117245A (en) | Embedded device and method for loading and starting operation of cutting system executable file thereof | |
CN110297605B (en) | Method and device for effectively improving solid state disk firmware loading speed | |
CN102610279A (en) | Method for executing NAND flash memory by solidifying code |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150401 Termination date: 20171117 |
|
CF01 | Termination of patent right due to non-payment of annual fee |