CN102520976B - Solidifying method of DSP (digital signal processor) program - Google Patents

Solidifying method of DSP (digital signal processor) program Download PDF

Info

Publication number
CN102520976B
CN102520976B CN201110364449.2A CN201110364449A CN102520976B CN 102520976 B CN102520976 B CN 102520976B CN 201110364449 A CN201110364449 A CN 201110364449A CN 102520976 B CN102520976 B CN 102520976B
Authority
CN
China
Prior art keywords
dsp
code
executable file
programming
file code
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.)
Expired - Fee Related
Application number
CN201110364449.2A
Other languages
Chinese (zh)
Other versions
CN102520976A (en
Inventor
何敏
吴尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Jiuzhou Electric Group Co Ltd
Original Assignee
Sichuan Jiuzhou Electric Group 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 Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN201110364449.2A priority Critical patent/CN102520976B/en
Publication of CN102520976A publication Critical patent/CN102520976A/en
Application granted granted Critical
Publication of CN102520976B publication Critical patent/CN102520976B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of curing of DSP program
Technical field
The present invention relates to program Solidification technical field, particularly relate to a kind of curing of DSP program.
Background technology
In Embedded DSP System, DSP finally can depart from the debugging enironment of host computer and offline operation, and namely object code needs automatically to load after system power-up.Therefore, need the storer its object code being placed on external non-volatile, such as tradition uses EPROM, EEPROM, NOR FLASH etc., is loaded in dsp processor inside or external RAM and runs during system electrification.
The executable file that DSP purpose project exports is COFF form, file extension .out, full name is general target file layout (CommonObject File Format), and file layout comprises paragraph header, executable code and initialization data, relocatable information, line number entrance, symbol table, string table etc., but this form do not supported by most of storer, the ASCII-Hex form of the standard that converts thereof into is needed to store.There is certain risk in the ASCII-Hex form converting standard at the executable file exported by DSP purpose project to.As: 1. format conversion is easily made mistakes.Format conversion is a loaded down with trivial details and process for complexity, need to use the map file of hex crossover tool, application program, oneself write CMD file, be familiar with dependent instruction and storer bit wide etc., therefore, executable file is changed particularly to DSP/BIOS operating system executable file conversion time, be easy to produce mistake and cause object code solidify after can not normally use.2. transplantability is poor.Different chip, without application program, need to use different hex crossover tool, write different CMD files etc.3. correctness cannot detect.Do not have a kind of tool and method can detect executable file at present whether to change successfully, only by carrying out testing authentication to the system after solidification.
Summary of the invention
The object of the invention is to exist for the curing of DSP program of the prior art easily to make mistakes, the problem that portable difference and result cannot detect, provides the curing of DSP program in.
Object of the present invention is realized by following technical proposals:
A curing for DSP program, it specifically comprises following steps:
The executable file code of DSP purpose project is loaded in the RAM of DSP by emulator by step 1., then uses emulator that the executable file code of DSP programming code engineering is also loaded in the RAM of DSP; Wherein the executable file code of DSP purpose project and the executable file code of DSP programming code engineering leave the different spaces of RAM respectively in;
Step 2. runs the executable file code of DSP programming code engineering, and after being split by the executable file code of the purpose project in RAM, programming is in nonvolatile external memory.
Preferably, above-mentioned rapid 2 are specially the executable file code that first programming code engineering reads DSP purpose project from RAM storer, then executable file code is split into the data of bit wide in nonvolatile external memory, last programming code engineering by split after data programming in nonvolatile external memory.
Preferably, said external nonvolatile memory is EPROM, EEPROM or FLASH.
Beneficial effect of the present invention: load with emulator, then the code be loaded in RAM is read and in programming to nonvolatile external memory, realizes directly solidification.The method can not only complete the solidification of DSP object code, and has realization and simply, do not need the advantages such as format conversion, security is high, good reliability, transplantability are good.By method provided by the invention, DSP object code can realize quick, general, solidify reliably, taken leave of loaded down with trivial details curing schedule.
Accompanying drawing explanation
Accompanying drawing 1 is the hardware system structure figure that can be cured object code.
Accompanying drawing 2 is programming software execution flow journey figure.
Accompanying drawing 3 is object code solidification process flow diagram.
Embodiment
The curing of DSP program of the present invention specifically comprises following steps:
The executable file code of DSP purpose project is loaded in the RAM of DSP by emulator by step 1., then uses emulator that the executable file code of DSP programming code engineering is also loaded in the RAM of DSP; Wherein the executable file code of DSP purpose project and the executable file code of DSP programming code engineering leave the different spaces of RAM respectively in.
Step 2. runs the executable file code of DSP programming code engineering, and after being split by the executable file code of the purpose project in RAM, programming is in nonvolatile external memory.
Can automatically perform in loaded targets code to RAM from nonvolatile external memory after major part dsp processor powers up, so-called loading is run being placed in RAM after the Code copying of external memory storage also splicing in fact.Generally, the code loaded from nonvolatile external memory is consistent with the code loaded from emulator.Therefore, load with emulator, then the code be loaded in RAM is read and in programming to nonvolatile external memory, realizes directly solidification.The method can not only complete the solidification of DSP object code, and has realization and simply, do not need the advantages such as format conversion, security is high, good reliability, transplantability are good.By method provided by the invention, DSP object code can realize quick, general, solidify reliably, taken leave of loaded down with trivial details curing schedule.
Preferably, described step 2 is specially the executable file code that first programming code engineering reads DSP purpose project from RAM storer 12, then executable file code splits into the data of 13 bit wides in nonvolatile external memory, last programming code engineering by split after data programming in nonvolatile external memory 13.In the present invention, DSP programming program design decreases taking of RAM resource, improves the processing power of system.Wherein said external nonvolatile memory can be EPROM, EEPROM, FLASH etc.
Below in conjunction with specific embodiments and the drawings, the present invention is further illustrated.
See Fig. 1, as shown in embodiment wherein, the hardware system 1 that can be cured object code mainly comprises: dsp processor 11(as: TMS320C6416), FLASH memory 13(as: S29GL512N), SDRAM storer 12(as: MT48LC32M16A2), a jtag interface 14, this dsp processor is connected with FLASH memory, SDRAM storer, JTAG respectively.FLASH memory 13 is for storing DSP executable code, and SDRAM storer 12 is for running DSP code.
See Fig. 2, describe programming software execution flow journey in detail.After loading programming software by jtag interface 14, first programming software can read program codes (step 110) from SDRAM storer 12, then object code is split into the data (step 120) of FLASH memory 13 bit wide by programming software, and last programming software is by data programming to FLASH memory 13 (step 130).
See Fig. 3, describe object code solidification flow process in detail.First the object code space (step 210) of .out file to SDRAM storer 12 can be performed by jtag interface 14 loaded targets program, loading loads programming program by jtag interface 14 and can perform programming program code space (step 220) of .out file to SDRAM storer 12, finally, programming software (step 230) is run.
Coefficient given in the above embodiments and parameter; be available to those skilled in the art to realize or use of the present invention; the present invention does not limit and only gets aforementioned disclosed numerical value; without departing from the present invention in the case of the inventive idea; those skilled in the art can make various modifications or adjustment to above-described embodiment; thus protection scope of the present invention not limit by above-described embodiment, and should be the maximum magnitude meeting the inventive features that claims are mentioned.

Claims (2)

1. a curing for DSP program, it specifically comprises following steps:
The executable file code of DSP purpose project is loaded in the SDRAM storer of DSP by emulator by step 1., then uses emulator that the executable file code of DSP programming code engineering is also loaded in the SDRAM storer of DSP; Wherein the executable file code of DSP purpose project and the executable file code of DSP programming code engineering leave the different spaces of SDRAM storer respectively in;
Step 2. runs the executable file code of DSP programming code engineering, and after being split by the executable file code of the purpose project in SDRAM storer, programming is in nonvolatile external memory;
Comprise the hardware system that the executable file code of DSP purpose project is cured: dsp processor, nonvolatile external memory, SDRAM storer and jtag interface, dsp processor is connected with nonvolatile external memory, SDRAM storer, jtag interface respectively; Nonvolatile external memory is for storing the executable file code of DSP purpose project, and SDRAM storer is for running DSP code;
The object code space of executable file code to SDRAM storer of DSP purpose project is loaded by jtag interface, and the programming program code space of executable file code to SDRAM storer of DSP programming code engineering is loaded by jtag interface, finally, the executable file code of DSP programming code engineering is run;
Described programming process is specially: loaded the executable file code of DSP programming code engineering by jtag interface after, first the executable file code of DSP programming code engineering can read the executable file code of DSP purpose project from SDRAM storer, then the executable file code of DSP purpose project is split into the data of nonvolatile external memory bit wide by the executable file code of DSP programming code engineering, the executable file code of last DSP programming code engineering by data programming in nonvolatile external memory.
2. the curing of DSP program as claimed in claim 1, is characterized in that described nonvolatile external memory is EPROM, EEPROM or FLASH.
CN201110364449.2A 2011-11-17 2011-11-17 Solidifying method of DSP (digital signal processor) program Expired - Fee Related CN102520976B (en)

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 CN102520976A (en) 2012-06-27
CN102520976B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
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
CN106201636B (en) * 2016-08-11 2019-03-26 中国电子科技集团公司第二十九研究所 A kind of outer code dynamic loading method of DSP piece and device
CN106249666B (en) * 2016-09-23 2020-01-24 北京机械设备研究所 Online parameter adjusting system and method based on digital communication
CN106648807B (en) * 2017-01-10 2020-12-01 北京电子工程总体研究所 DSP software uploading and updating method based on FLASH memory
CN110119284B (en) * 2018-02-05 2023-09-12 华润微集成电路(无锡)有限公司 Flash memory programming system and method

Citations (2)

* Cited by examiner, † Cited by third party
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

Patent Citations (2)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102520976A (en) 2012-06-27

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
CN102141923B (en) Memory file system loading method and device
CN103744713A (en) Autonomous configuration method for FPGA (field programmable gate array)-based embedded dual-core system
CN101421701A (en) Direct boot arrangement using a NAND flash memory
CN103577212A (en) System starting preloading method and device
CN106095416B (en) Jump processing method and device in application program and intelligent terminal
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
CN104951334A (en) FPGA double-chip QSPI flash program loading method
CN103970557A (en) Storage device and system starting method thereof
CN103605540A (en) Flash mirror fast writing method based on Android system
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
CN104461880A (en) Method for automatically detecting heap corruption in embedded system
CN108694052B (en) Firmware upgrading method, firmware upgrading device and firmware upgrading system
CN108345430B (en) Nand flash element and operation control method and device thereof
US20120191962A1 (en) System and method for simulating bios rom of computing device into virtual disk
US20150347745A1 (en) Method for extracting executable code of application using memory dump
CN104063329A (en) 64-bit immediate operand processing method and device
CN102918508B (en) The replay architecture of catching without probe tracking is adopted to perform
CN106951268A (en) A kind of Shen prestige platform supports the implementation method of NVMe hard disk startups
JP2007299249A (en) Nand-type flash memory device and starting method for computing system using it
CN102467522B (en) Self-programming method and device of file system based on NAND flash
CN111399926A (en) Method and device for downloading starting program

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