CN101499014A - Method for on-line burning large-capacity or multiple FLASH files by DSP - Google Patents

Method for on-line burning large-capacity or multiple FLASH files by DSP Download PDF

Info

Publication number
CN101499014A
CN101499014A CNA2009101192830A CN200910119283A CN101499014A CN 101499014 A CN101499014 A CN 101499014A CN A2009101192830 A CNA2009101192830 A CN A2009101192830A CN 200910119283 A CN200910119283 A CN 200910119283A CN 101499014 A CN101499014 A CN 101499014A
Authority
CN
China
Prior art keywords
dsp
flash
gel
capacity
programming
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
Application number
CNA2009101192830A
Other languages
Chinese (zh)
Other versions
CN101499014B (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.)
Nanjing Panda Electronics Co Ltd
Panda Electronics Group Co Ltd
Nanjing Panda Handa Technology Co Ltd
Original Assignee
Nanjing Panda Electronics Co Ltd
Panda Electronics Group Co Ltd
Nanjing Panda Handa Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Panda Electronics Co Ltd, Panda Electronics Group Co Ltd, Nanjing Panda Handa Technology Co Ltd filed Critical Nanjing Panda Electronics Co Ltd
Priority to CN2009101192830A priority Critical patent/CN101499014B/en
Publication of CN101499014A publication Critical patent/CN101499014A/en
Application granted granted Critical
Publication of CN101499014B publication Critical patent/CN101499014B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

A method for writing large capacity or a plurality of FLASHs is provided. Being characterized in that the method comprising the following steps: firstly determining whether the capacity of a single FLASH chip DSP is greater than the contents of the volume; if the DSP chip is greater than the contents of the volume, then to their page, so that each page is less than the capacity of the contents of the volume of DSP chip; Secondly, the use of the conditions of pre-compiled manner programmer to be the source of all the above-mentioned file name and destination address; Third, the preparation of a batch GEL FLASH programmer script control procedures; Finally, GEL load and run a batch script to set the DSP to carry out the conditions of the cycle, compile, link, load and run the operation until the last one burned into the FLASH source file after the termination of the cycle. Invented the use of this script programmer completely replace the page in the process of manual intervention, you can eliminate manual errors, reduce labor intensity and improve production efficiency, the product can not break the technical bottlenecks in production and to reduce labor costs.

Description

Utilize the method for DSP at line writing high capacity or a plurality of FLASH
Technical field
The present invention relates to a kind of DSP (digital signal processor) technology, the online method of firing FLASH of especially a kind of DSP of utilization, specifically a kind of method of utilizing DSP at line writing high capacity or a plurality of FLASH.
Background technology
As everyone knows, after the DSP application system development is finished, generally with the non-volatile low-cost storeies such as FLASH of user program elder generation's programming sheet outside, wait to power on move in the DSP sheet again when resetting or RAM that sheet is outer in full speed running, i.e. bootstrapping loading.
The method of programming FLASH mainly contains the programmable device programming and two kinds of line writings.The programmable device programming needs special programmable device equipment and only is applicable to some pluggable FLASH, and at line writing by means of emulator, by the DSP programming of can programming to the FLASH of any packing forms.Obviously, the latter have save cost of development, reduce device size, the programming flexible characteristic, thereby the application in dsp system is increasingly extensive.
Because under simulation status, be easy to the content in the DSP sheet is write among the outer FLASH of sheet by writing debugging FLASH programming program, so as long as will treat that earlier the content of programming is loaded in the DSP sheet, the FLASH programming program of reruning, can realize FLASH at line writing.
But the internal memory of DSP is limited after all, if user program is excessive, then can only be by the size of buffer memory in the DSP sheet, with the user program paging, then in batches programming to FLASH.In case because of paging causes page number too much, or because of there being a plurality of pagings of a plurality of user program needs, the process of manual control paging programming FLASH will become loaded down with trivial details and very easily make mistakes.
And according to the knowledge of the applicant,, still do not have good solution at present to this.
Summary of the invention
The objective of the invention is very easily to make mistakes at the single mode of programming source file and destination address thereof for the treatment of of manual renewal in the FLASH programming program, the compiling of manual operations FLASH programming program, the also quite loaded down with trivial details problem of process that links, is written into and move, invent and a kind ofly replace manual intervention in the online paging programming of the DSP FLASH process fully with shell script, to eliminate manual errors, what reduce labor intensity utilizes the method for DSP at line writing high capacity or a plurality of FLASH.
Technical scheme of the present invention is:
A kind of method of utilizing DSP at line writing high capacity or a plurality of FLASH is characterized in that it may further comprise the steps:
At first, whether the capacity of judging single FLASH greater than the sheet inner capacities of DSP, if greater than the sheet inner capacities of DSP, then it is carried out paging, makes the sheet inner capacities of the capacity of each paging less than DSP;
Secondly, adopt the mode of conditional assembly to set in advance above-mentioned programming source filename and the destination address thereof all treated;
The 3rd, write GEL batch processing script control FLASH programming program, when writing GEL batch processing script, directly call assembler asm500.exe and linker lnk500.exe in the CCS code Core Generator by a GEL function G EL_System who carries out dos command, carry out the method for asm500.exe by the band parameter and set the correlation parameter option, finish the generation of GEL batch processing script;
At last, load and operation GEL batch processing script, make DSP impose a condition circularly, compile, link, be written into and operation, after last source file is advanced FLASH by programming, stop circulation.
GEL (General Extension Language) is a kind of interpretative code that CCS (Code Composer Studio) provides.Use this language to create the GEL function, can the working environment of CCS be configured, and direct access destination processor (comprise DSP soft/hard emulator).The user can finish robotization batch processing task by writing the GEL script, as compiling, link and working procedure etc.
The mode that the present invention uses conditional assembly instead sets in advance all treats programming source filename and destination address thereof, and write the GEL script and control FLASH programming program, it is imposed a condition circularly, compiles, links, is written into and operation such as operation, advanced FLASH until last source file by programming and stop circulation.As long as correctly be provided with in advance and all treat programming source filename and destination address thereof, whole programming process is finished by the batch processing of GEL script, no longer needs any manual intervention and operation.
Innovation part of the present invention has provided a kind of in the outside method of constantly upgrading compile option automatically of DSP program, in conjunction with the automatic executing function of GEL script, has realized the batch processing of the online paging programming of DSP FLASH.At present, similar bibliographical information does not appear both at home and abroad as yet.
Difficult point of the present invention does not also lie in and writes the GEL script and realized batch facility, but how to set the conditional assembly option of DSP program in the GEL script.Though CCS provides compiling DSP the GEL function G EL_ProjectBuild of item file, this function is not have the ginseng function, so can't the required conditional assembly option of setting program during compiling link DSP program.But, can utilize another to carry out the GEL function G EL_System of dos command, directly call assembler asm500.exe. and linker lnk500.exe in the CCS code Core Generator.By the method for band parameter execution asm500.exe, can set compile option.
Beneficial effect of the present invention:
When the invention solves the online paging programming of DSP FLASH, if divide number of pages too much, the process of the manual control paging programming FLASH difficult problem loaded down with trivial details and that very easily make mistakes that will become.
The present invention replaces manual intervention in the paging programming process fully with shell script, can eliminate manual errors, reduces labor intensity, and enhances productivity, and has broken the technical bottleneck that product can't be produced in batches, and has helped reducing human cost.
Embodiment
The present invention is further illustrated below in conjunction with embodiment.
A kind of method of utilizing DSP at line writing high capacity or a plurality of FLASH, it may further comprise the steps:
At first, whether the capacity of judging single FLASH greater than the sheet inner capacities of DSP, if greater than the sheet inner capacities of DSP, then it is carried out paging, makes the sheet inner capacities of the capacity of each paging less than DSP;
Secondly, adopt the mode of conditional assembly to set in advance above-mentioned programming source filename and the destination address thereof all treated, in the FLASH programming program, the mode of employing conditional assembly sets in advance all treats programming source filename and destination address thereof, and correlative code is as follows:
.title″fb.asm″
……
.sect″sourcefile″
Fid is the conditional assembly variable, and its value is provided with in the GEL script
Source file 1 and destination address thereof
.if?fid=1
.copy?filel.dat
addr_high.set?1h
addr_low.set?8000h
Source file 2 and destination address thereof
.elseif?fid=2
.copy?file2.dat
addr_high.set?2h
addr_low.set8000h
……
Source file n and destination address thereof
.elseif?fid=n
.copy?filen.dat
addr_high.set?nh
addr_low.set?8000h
The destination address of acquiescence
.else
addr_high.set?Oh
addr_low.set?Oh
.endif
……
.text″main_prog″
.if?fid=0
CALL erase_flash; Call the subroutine of wiping FLASH
.el?se
CALL write_flash; Call the subroutine of writing FLASH
.endif
stophere:B?stophere
……
The 3rd, finish writing of GEL batch processing script, below be a complete code:
menuitem″Flash_Burn?Batch?Tool″;
hotmenu?Burn_All()
{
inti;
for(i=0;i<=n;i++)
{
// compiling and assignment fid=i
GEL_System(″asm500fb.asm?fb.obj-g-s-dfid=%d″,i);
// link
GEL_System(″lnk500?fb.cmd″);
// be written into
GEL_Load(″fb.out″);
GEL_TextOut(″burning?file%d...″,i);
// move to the stophere place
GEL_Go(stophere);
GEL_TextOut(″complete\n″);
}
GEL_TextOut(″ALL?is?completed!\n″);
}
The dependent compilation parameter can use a GEL function G EL_System who carries out dos command directly to call assembler asm500.exe and linker lnk500.exe in the CCS code Core Generator, carries out the method for asm500.exe by the band parameter and sets in GEL.
At last, write above programming program and GEL script after, whole manually-operateds of paging programming FLASH have only following simple two steps:
1) load the GEL script, in the CCS master menu, click " File " | " Load GEL ", find above-mentioned GEL script place catalogue, open it;
2) operation GEL script, in the CCS master menu, click " GEL " | " Flash_Burn Batch Tool " | " Burn_All " promptly finishes all on-line programming work.
The flow process of GEL program is very simple, be exactly circularly order carry out 1. conditional compilation and 2. link 3. to be written into and 4. move the programming program to the stophere place.
The part that the present invention does not relate to prior art that maybe can adopt all same as the prior art is realized.

Claims (1)

1, a kind of method of utilizing DSP at line writing high capacity or a plurality of FLASH is characterized in that it may further comprise the steps:
At first, whether the capacity of judging single FLASH greater than the sheet inner capacities of DSP, if greater than the sheet inner capacities of DSP, then it is carried out paging, makes the sheet inner capacities of the capacity of each paging less than DSP;
Secondly, adopt the mode of conditional assembly to set in advance above-mentioned programming source filename and the destination address thereof all treated;
The 3rd, write GEL batch processing script control FLASH programming program, when writing GEL batch processing script, directly call assembler asm500.exe and linker lnk500.exe in the CCS code Core Generator by a GEL function G EL_System who carries out dos command, carry out the method for asm500.exe by the band parameter and set the correlation parameter option, finish the generation of GEL batch processing script;
At last, load and operation GEL batch processing script, make DSP impose a condition circularly, compile, link, be written into and operation, after last source file is advanced FLASH by programming, stop circulation.
CN2009101192830A 2009-03-11 2009-03-11 Method for on-line burning large-capacity or multiple FLASH files by DSP Expired - Fee Related CN101499014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101192830A CN101499014B (en) 2009-03-11 2009-03-11 Method for on-line burning large-capacity or multiple FLASH files by DSP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101192830A CN101499014B (en) 2009-03-11 2009-03-11 Method for on-line burning large-capacity or multiple FLASH files by DSP

Publications (2)

Publication Number Publication Date
CN101499014A true CN101499014A (en) 2009-08-05
CN101499014B CN101499014B (en) 2011-07-06

Family

ID=40946098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101192830A Expired - Fee Related CN101499014B (en) 2009-03-11 2009-03-11 Method for on-line burning large-capacity or multiple FLASH files by DSP

Country Status (1)

Country Link
CN (1) CN101499014B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729202A (en) * 2012-10-12 2014-04-16 成都飞机设计研究所 DSP reliable on-line FLASH programming method based on GEL script
CN103914324A (en) * 2013-01-08 2014-07-09 海尔集团公司 Method for automatically burning firmware of embedded equipment, and system thereof
CN104063252A (en) * 2014-07-02 2014-09-24 中国科学院长春光学精密机械与物理研究所 Program burning and backward-reading method with watchdog circuit and based on DSP chip
CN104598259A (en) * 2013-11-01 2015-05-06 上海机电工程研究所 Software online programming device and method for IO controller processed through three-proofing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729202A (en) * 2012-10-12 2014-04-16 成都飞机设计研究所 DSP reliable on-line FLASH programming method based on GEL script
CN103914324A (en) * 2013-01-08 2014-07-09 海尔集团公司 Method for automatically burning firmware of embedded equipment, and system thereof
CN103914324B (en) * 2013-01-08 2017-06-16 海尔集团公司 A kind of method and its system of automatic programming embedded device firmware
CN104598259A (en) * 2013-11-01 2015-05-06 上海机电工程研究所 Software online programming device and method for IO controller processed through three-proofing
CN104063252A (en) * 2014-07-02 2014-09-24 中国科学院长春光学精密机械与物理研究所 Program burning and backward-reading method with watchdog circuit and based on DSP chip
CN104063252B (en) * 2014-07-02 2017-07-14 中国科学院长春光学精密机械与物理研究所 Program burn writing with watchdog circuit and read-back approach based on dsp chip

Also Published As

Publication number Publication date
CN101499014B (en) 2011-07-06

Similar Documents

Publication Publication Date Title
CN102169459B (en) Method, device and intelligent card for accessing data
CN101499014B (en) Method for on-line burning large-capacity or multiple FLASH files by DSP
CN105204913A (en) Method and system for running Linux application on Android operating system and system
CA2539433A1 (en) Systems and methods for dynamically linking application software into a running operating system kernel
CN109213531A (en) A kind of multi-core DSP based on EMIF16 powers on the simplification implementation method of self-starting
CN103207771B (en) A kind of PLC program actuator IP kernel
CN103677885A (en) ARM FLASH simple program programming method
CN111124550A (en) Program dynamic loading method and device and storage medium
US10789192B2 (en) System and method for programming data transfer within a microcontroller
CN102520961B (en) Off-chip online programmable SOC (system on a chip) and control method for same
CN108415719A (en) The hot update method of code and device, storage medium, processor and terminal
RU2015121749A (en) COMPILATOR GENERATING NON-OPERATING CODE
CN104077204A (en) Reconfigurable 8-bit RSIC (reduced instruction set computer) SCM (Single Chip Microcomputer) simulator
CN108829465B (en) Local dynamic loading system and method based on direct read-write FLASH
CN100363906C (en) Method for testing software unit
CN106201636A (en) A kind of DSP off-chip code dynamic loading method and device
TW347517B (en) Programming of software into programmable memory
TW202403541A (en) System, method and device for introducing applet into third-party APP and medium
KR102128472B1 (en) Storage device for performing in-storage computing operations, method thereof, and system including same
CN103744331A (en) Education robot, controller thereof and programming method of controller
CN109144849B (en) Embedded software debugging method
CN105045624A (en) PowerPC mainboard and program writing method
CN104182264B (en) The start optimization method and its device of a kind of eMMC
CN113946481B (en) RISC-V kernel MCU debugging downloading program method and debugger
CN104765626A (en) Firmware program writing method and device

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110706

Termination date: 20210311