CN102043654A - DSP simple development method based on TMS320VC55xx - Google Patents

DSP simple development method based on TMS320VC55xx Download PDF

Info

Publication number
CN102043654A
CN102043654A CN201010619011XA CN201010619011A CN102043654A CN 102043654 A CN102043654 A CN 102043654A CN 201010619011X A CN201010619011X A CN 201010619011XA CN 201010619011 A CN201010619011 A CN 201010619011A CN 102043654 A CN102043654 A CN 102043654A
Authority
CN
China
Prior art keywords
program
parameter
development method
dsp
module
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
CN201010619011XA
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.)
DONGGUAN CHI LOK BO TOYS Co Ltd
Institute of Electronic and Information Engineering of Dongguan UESTC
Original Assignee
DONGGUAN CHI LOK BO TOYS Co Ltd
Institute of Electronic and Information Engineering of Dongguan UESTC
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 DONGGUAN CHI LOK BO TOYS Co Ltd, Institute of Electronic and Information Engineering of Dongguan UESTC filed Critical DONGGUAN CHI LOK BO TOYS Co Ltd
Priority to CN201010619011XA priority Critical patent/CN102043654A/en
Publication of CN102043654A publication Critical patent/CN102043654A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a DSP simple development method based on TMS320VC55xx, which is used for simple debugging and system upgrading for an embedded system program based on DSP, and comprises the following steps: finishing autonomous running of the program through a start loading mode of a Bootloader; and finishing works of debugging and updating the program through a download mode of the Bootloader. The DSP simple development method based on TMS320VC55xx implements simple debugging and fast upgrading of the DSP program, and can perform simply debug the program and update the system without using a simulator, so that cost on development is effectively reduced, labor cost in later stage is saved, and a convenient and cheap implementing method for DSP embedded development is provided.

Description

A kind of DSP easy development method based on TMS320VC55xx
Technical field
The present invention relates to a kind of DSP program easy development method, particularly a kind ofly can break away from emulator and debug, upgrade and the easy development method of autonomous load operating DSP program.
Background technology
At current embedded dsp development field, ubiquity long, problems such as development difficulty is big, development cost height of construction cycle.Tracing it to its cause is that embedded development is different from common pc program development, and cross development environment is adopted in the exploitation of embedded software usually.So-called cross development environment is meant the set of all tool software that are used for embedded software developing, generally comprises instruments such as text editor, cross-compiler, intersection debugger, emulator and downloader.The embedded system development flow process is generally as follows at present: generating on host can be for debugging or the target program that solidifies; Finish the debugging work of software by the intersection debugger; Program Solidification to target machine, is realized the Automatic Program operation when target machine powers on or reset.
In the embedded-type ARM exploitation,, the debugging and the renewal of program also often existed more flexible solution because the support of operating system is arranged.Such as the easy development that can realize breaking away from emulator by softwares such as u-boot, vivi substantially.And in the DSP embedded exploitation, the debug phase developer adopts the form of jtag emulator to finish relevant work usually.In the support that when FLASH solidifies refresh routine, also often needs emulator.This has increased cost of development undoubtedly, has reduced the simplicity of safeguarding.
Therefore, at deficiency of the prior art, needing badly provides a kind of convenient, DSP development approach cheaply.
Summary of the invention
The objective of the invention is to avoid weak point of the prior art and a kind of DSP program easy development method based on TMS320VC55xx is provided, make the debugging of DSP program, renewal can break away from emulator, reduced cost of development and manual service cost.
Purpose of the present invention realizes by following technical measures:
A kind of DSP program easy development method based on TMS320VC55xx is provided, finish simple and easy debugging and renewal work by the Bootloader program to user program, described Bootloader program includes start-up loading pattern and downloading mode, described start-up loading pattern is finished the autonomous operation of program, and described downloading mode is finished the debugging and the renewal work of program; Behind system power-on reset, the boot program that is solidificated in the dsp chip can load the Bootloader program, and do not have button then can enter the start-up loading pattern this moment in 5 seconds, otherwise enter downloading mode.
Wherein, the generation of described user program includes following steps:
Steps A: the compiling link source program generates file destination on host;
Step B: use the hex crossover tool that the file destination of steps A is converted to boottable sheet format file;
Step C: the boottable sheet format file of step B is handled the generation image file.
Wherein, described start-up loading pattern loads user program according to the form of boottable.
Wherein, whenever read 16KB in the process of described loading user program and will carry out page turning, described page turning is to control Flash high address line by cpld.
Wherein, described downloading mode includes:
Load module is used to receive order and parameter from the terminal input;
Check module, be used for the legitimacy of sense command and parameter;
Processing module is used for according to the corresponding handling procedure of different command execution;
Output module is used for to terminal output for information about.
Concrete, described load module is according to the universal asynchronous serial host-host protocol, to store among the buffer that applies for the internal memory from the order and the parameter of terminal input, baud rate adopts 11520, one start bits, 8 data bit, no parity position, a position of rest.
Concrete, described inspection module is by reading order and the parameter among the buffer, and distinguish according to the space, according to the character string constant that pre-defines order is mated then, if do not match then directly enter described output module, show error message,, under the errorless situation of parameter, enter described processing module if the match is successful then checks parameter according to specific instructions.
Concrete, described processing module is finished processing according to the corresponding function of command calls, the corresponding subfunction of each described order, and described function parameters is the parameter of the corresponding command.
Concrete, described output module prints to relevant information on the terminal according to the state of prior module.
Wherein, described order and parameter are: command arg1 arg2 arg3 ..., the wherein corresponding order of command representative, argn is an optional parameter, relevant with specific instructions, separate with the space between command and the arg, also separate between the described parameter with the space.
Beneficial effect of the present invention:
A kind of DSP program easy development method of the present invention based on TMS320VC55xx, finish simple and easy debugging and renewal work by the Bootloader program to user program, described Bootloader program includes start-up loading pattern and downloading mode, behind system power-on reset, the boot program that is solidificated in the dsp chip can load the Bootloader program, do not have button then can enter start-up loading pattern as if in the 5s this moment, otherwise enter downloading mode.The present invention has realized the simple and easy debugging of dsp program and upgrading fast, make the curing of program can break away from emulator, avoid plugging in the code solidification process emulator and unloaded the damage that DSP equipment causes, making does not have DSP development Experience personnel can finish the curing of program yet, thereby effectively reduce cost of development, save the cost of labor in later stage, for the DSP embedded development provides convenient, cheap implementation method.
Description of drawings
The present invention will be further described to utilize accompanying drawing, but the content in the accompanying drawing does not constitute any limitation of the invention.
Fig. 1 is the entire system software and hardware structure block diagram of embodiments of the invention 2;
Fig. 2 is the workflow diagram of the Bootloader of embodiments of the invention 2;
Fig. 3 is the Bootloader start-up loading model process figure of embodiments of the invention 2.
Embodiment
Embodiment 1
A kind of DSP program easy development method based on TMS320VC55xx of the present invention is to finish simple and easy debugging and renewal work to user program by the Bootloader program, the Bootloader program includes start-up loading pattern and downloading mode, the start-up loading pattern is finished the autonomous operation of program, and downloading mode is finished the debugging and the renewal work of program.
Development environment comprises: a host, a Target Board.Host is that a pc machine comprises operating system, Integrated Development Environment, terminal program; Target machine is a veneer, comprises hardware and bootloader and debugged programs such as dsp processor, Flash, SDRARM, FPGA, UART, button, pilot lamp.Host and Target Board communicate by serial ports.
In the present embodiment, bootloader program and debugged program will generate according to the boottable sheet format, specifically realize by following steps:
Steps A: the compiling link source program generates file destination on host;
Step B: use the hex crossover tool that file destination is converted to the tabular file of boottable;
Step C: this document is handled the .dat file that generation ccs Integrated Development Environment is supported, the .dat file is the file that needs.
The Bootloader program is placed on the 0th page of Flash, and user program begins to deposit for the 1st page from Flash.
In the present embodiment, the bootloader program comprises two kinds of mode of operations: Bootloader start-up loading pattern and Bootloader downloading mode.
Behind system power-on reset, the boot program that is solidificated in the dsp chip can load the Bootloader program, and do not have button then can enter start-up loading pattern as if in the 5s this moment, otherwise enter downloading mode.
Concrete, Bootloader start-up loading pattern mainly realizes the electrification reset self-starting of program, is the groundwork pattern after the product issue.
Concrete, the Bootloader downloading mode is mainly realized the debugging and the update functions of program.
More specifically, the concrete steps of Bootloader start-up loading pattern are: the entry address of at first reading user program from the 0th page of Flash according to the boottable tableau format; Then read register configuration and time-delay; In fetch program each section then; When running through whole file, jump to the entry address at last and begin to carry out user program.
One page in said process in running through Flash will carry out page turn over operation, and Flash is connected with dsp by cpld, and every 16KB is one page.
In the present embodiment, the Bootloader downloading mode can provide a simple command line interface to its terminal user by serial communication, to realize functions such as program debug, internal memory, register are checked, file download, and can be at the output statement in the hyper terminal explicit user program, to reach simple debug function.Basic format at the command line interface input command is: command arg1 arg2 arg3 ..., the wherein corresponding order of command representative, argn is an optional parameter, and is relevant with specific instructions.Separate with the space between command and the arg, also separate between the parameter with the space.Basic order has:
Go addr: the initial program of operation addr;
Boot: enter bootloader start-up loading pattern;
Loadb addr: use the kermit agreement to download binary file to the addr section start by serial ports;
Cmp addr1 addr2 count: relatively whether identical with the region of memory of the initial count size of addr1 and addr2;
Cp source target count: the internal storage data that source is initial is copied to the target place, and count represents size;
Md addr [count]: show that count represents size, is defaulted as 1 with the initial internal storage data of addr;
Rd reg: the content of display register reg, reg is the address of register;
Era start end: Flash is wiped from start to end, the corresponding sector start address of start, the corresponding sector of end end address, full wafer flash is wiped in era all representatives especially.
In the present embodiment, as embodiment preferred, the Bootloader downloading mode includes load module, checks module, processing module and output module.Wherein, load module is used for receiving from the order and the parameter of terminal input, checks that module is used for the legitimacy of sense command and parameter, if non-rule enters output module, to the terminal output error message.After guaranteeing that the input of order and parameter is errorless, enter processing module, according to the corresponding handling procedure of different command execution, after disposing, enter output module, for information about to terminal output.
Further, load module according to the universal asynchronous serial host-host protocol, will store among the buffer that applies for the internal memory from the order and the parameter of terminal input, and baud rate adopts 11520, one start bits, 8 data bit, no parity position, a position of rest.
Further, check module, read order and parameter among the buffer, and distinguish according to the space, according to the character string constant that pre-defines order is mated then,, show error message if do not match then directly enter output module, if the match is successful then checks parameter according to specific instructions, under the errorless situation of parameter, enter processing module.
Further, processing module, the corresponding subfunction of each order, function parameters is the parameter of the corresponding command.Finish processing according to the corresponding function of command calls.
Further, output module, the state according to prior module prints to relevant information on the terminal.
Embodiment 2
Embodiments of the invention 2 as shown in Figure 1 to Figure 3, debugging by an example program and upgrading come that the present invention will be further described.
In experiment, adopt 16 fixed-point DSP chip TMS320VC5509A of Texas Instruments, hereinafter to be referred as 5509a.Its PGE packing forms has only 14 address buss (A0~A13), the Flash storer that maximum can only addressing 16 KB.If want the bigger address space of addressing, will control the high address line of Flash storer.For this reason by CPLD at the CE2 of DSP spatial simulation Flash register FPR that skips.Flash adopts the AM29LV320DB120 of AMD.
(1) debugging of program
As shown in Figure 1, wherein shown entire system software and hardware structure block diagram, finished simple and easy debugging by Bootloader and hyper terminal as we know from the figure, finished communicating by letter of host and target machine by Serial Port Line to debugged program.The program that at first will need to debug generates according to the boottable tableau format, concrete steps are: the .out file that generates the debugged program of wanting in the ccs Integrated Development Environment, because the .out form can not be discerned by Bootloader, therefore need change by the data-switching instrument hex55 that TI provides.Then the target machine electrification reset starts, and then is solidificated in the interior boot program of dsp chip and can loads our Bootloader program, and any button of pressing then on the target machine enters the Bootloader downloading mode.Input loadb 0x4000 transmits debugged file in hyper terminal by the kermit agreement then.Treat that debugged file transfer finishes, input go 0x4000 moves debugged program, according to the running status of the output information determining program of program, wait by internal memory operation order such as cmp, md in the zone that may go wrong and to check internal storage data, to determine the potential mistake of program.Get back to then among the ccs and to revise source code and re-execute said process.
(2) upgrading of program
When program need be upgraded, the program that at first will need to upgrade downloaded in the target machine internal memory method described in the debugging of the visible program of concrete steps.Use the era command erases will deposit the Flash sector of refresh routine then,, then wipe the sector from 0x040000 to 0x047FFF as era 0x040000 0x047FFF.Use then cp order with file from memory copying to the flash respective bins.Last restarting systems enters bootloader start-up loading pattern, loads program after the renewal according to Fig. 3 and Fig. 4.

Claims (10)

1. DSP easy development method based on TMS320VC55xx, it is characterized in that: finish simple and easy debugging and renewal work user program by the Bootloader program, described Bootloader program includes start-up loading pattern and downloading mode, described start-up loading pattern is finished the autonomous operation of program, and described downloading mode is finished the debugging and the renewal work of program; Behind system power-on reset, the boot program that is solidificated in the dsp chip can load the Bootloader program, and do not have button then can enter the start-up loading pattern this moment in 5 seconds, otherwise enter downloading mode.
2. easy development method according to claim 1 is characterized in that, the generation of described user program includes following steps:
Steps A: the compiling link source program generates file destination on host;
Step B: use the hex crossover tool that the file destination of steps A is converted to boottable sheet format file;
Step C: the boottable sheet format file of step B is handled the generation image file.
3. easy development method according to claim 2 is characterized in that, described start-up loading pattern loads user program according to the form of boottable.
4. easy development method according to claim 3 is characterized in that, whenever reads 16KB in the process of described loading user program and will carry out page turning, and described page turning is to control Flash high address line by cpld.
5. easy development method according to claim 1 is characterized in that, described downloading mode includes:
Load module is used to receive order and parameter from the terminal input;
Check module, be used for the legitimacy of sense command and parameter;
Processing module is used for according to the corresponding handling procedure of different command execution;
Output module is used for to terminal output for information about.
6. easy development method according to claim 5, it is characterized in that, described load module, according to the universal asynchronous serial host-host protocol, will store among the buffer that applies for the internal memory from the order and the parameter of terminal input, baud rate adopts 11520, a start bit, 8 data bit, no parity position, a position of rest.
7. easy development method according to claim 6, it is characterized in that, described inspection module is by reading order and the parameter among the buffer, and distinguish according to the space, according to the character string constant that pre-defines order is mated then,, show error message if do not match then directly enter described output module, if the match is successful then checks parameter according to specific instructions, under the errorless situation of parameter, enter described processing module.
8. easy development method according to claim 7 is characterized in that, described processing module is finished processing according to the corresponding function of command calls, the corresponding subfunction of each described order, and described function parameters is the parameter of the corresponding command.
9. easy development method according to claim 8 is characterized in that described output module prints to relevant information on the terminal according to the state of prior module.
10. according to any described easy development method of claim 6 to 8, it is characterized in that, described order and parameter are: command arg1 arg2 arg3 ... the wherein corresponding order of command representative, argn is an optional parameter, relevant with specific instructions, separate with the space between command and the arg, also separate between the described parameter with the space.
CN201010619011XA 2010-12-31 2010-12-31 DSP simple development method based on TMS320VC55xx Pending CN102043654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010619011XA CN102043654A (en) 2010-12-31 2010-12-31 DSP simple development method based on TMS320VC55xx

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010619011XA CN102043654A (en) 2010-12-31 2010-12-31 DSP simple development method based on TMS320VC55xx

Publications (1)

Publication Number Publication Date
CN102043654A true CN102043654A (en) 2011-05-04

Family

ID=43909811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010619011XA Pending CN102043654A (en) 2010-12-31 2010-12-31 DSP simple development method based on TMS320VC55xx

Country Status (1)

Country Link
CN (1) CN102043654A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521005A (en) * 2011-12-31 2012-06-27 南京航空航天大学 Simple and convenient method for software loading and debugging of embedded system software
CN103309711A (en) * 2013-06-18 2013-09-18 天津七一二通信广播有限公司 Bootstrap loader circuit based on USB interface
CN105183523A (en) * 2015-09-29 2015-12-23 国网智能电网研究院 Method for remote upgrade of digital signal processor (DSP) program
CN105955799A (en) * 2016-05-05 2016-09-21 青岛海信电器股份有限公司 Software upgrading system and method, and emulator
CN107832223A (en) * 2017-11-18 2018-03-23 上海华虹集成电路有限责任公司 A kind of effective ways for debugging utility

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1776619A (en) * 2005-12-15 2006-05-24 北京中星微电子有限公司 Method for realizing embedded system run based on start loading programme
US20060136706A1 (en) * 2004-12-22 2006-06-22 Montgomery Michael S Product configuration during boot process
CN101281469A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Embedded type system and start-up load application method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136706A1 (en) * 2004-12-22 2006-06-22 Montgomery Michael S Product configuration during boot process
CN1776619A (en) * 2005-12-15 2006-05-24 北京中星微电子有限公司 Method for realizing embedded system run based on start loading programme
CN101281469A (en) * 2008-04-11 2008-10-08 青岛海信电器股份有限公司 Embedded type system and start-up load application method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张娟等: "基于多处理器的高速RapidIO", 《计算机工程》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521005A (en) * 2011-12-31 2012-06-27 南京航空航天大学 Simple and convenient method for software loading and debugging of embedded system software
CN103309711A (en) * 2013-06-18 2013-09-18 天津七一二通信广播有限公司 Bootstrap loader circuit based on USB interface
CN105183523A (en) * 2015-09-29 2015-12-23 国网智能电网研究院 Method for remote upgrade of digital signal processor (DSP) program
CN105955799A (en) * 2016-05-05 2016-09-21 青岛海信电器股份有限公司 Software upgrading system and method, and emulator
CN107832223A (en) * 2017-11-18 2018-03-23 上海华虹集成电路有限责任公司 A kind of effective ways for debugging utility

Similar Documents

Publication Publication Date Title
CN107577609B (en) Embedded system dynamic module debugging system based on host end dynamic link
CN102402427B (en) A kind of update method of java application and device
CN104077204B (en) Reconfigurable 8 RSIC singlechip emulators
CN102043654A (en) DSP simple development method based on TMS320VC55xx
CN101957766B (en) Method, device and system for weaving byte code
CN113900693B (en) Firmware upgrading method, device and system, electronic equipment and storage medium
CN106648762B (en) Method and device for building development environment
CN108614767A (en) A kind of remote debugging method and device
CN113360440A (en) Processor communication control method and related product
CN113360161B (en) Resource upgrading method and related products
KR20110037140A (en) System for providing virtual development environment for embedded software
CN115495136B (en) BMC quick online upgrading method based on domestic Feiteng platform
CN112559336A (en) Method, device and system for adaptively debugging heterogeneous computing chip and mainboard chip
CN114356383A (en) Firmware upgrading method and system of Bootloader architecture
CN113157329A (en) Method, system, server and storage medium for starting application
JP2013041546A (en) Debug support program, debug support method and debug support system
CN106445574A (en) Method for realizing on-line programming of DSP (Digital Signal Processor) system
CN114036080B (en) Method and device for upgrading program by using communication serial port of display terminal
CN113672238B (en) Operation method, device and equipment based on real-time operating system modularized management
CN117827237A (en) Method and system for developing equipment system program and OTA upgrading
JP2012043215A (en) Debugging method
CN107229494A (en) A kind of method for realizing DSP online programmings
KR20110110509A (en) System and method for remote programming
CN117667033A (en) Hot patching method and related equipment
CN117149246A (en) Method and device for upgrading application program of embedded system, excavator and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110504