CN114296700A - DSP engineering transplanting method - Google Patents

DSP engineering transplanting method Download PDF

Info

Publication number
CN114296700A
CN114296700A CN202111490346.0A CN202111490346A CN114296700A CN 114296700 A CN114296700 A CN 114296700A CN 202111490346 A CN202111490346 A CN 202111490346A CN 114296700 A CN114296700 A CN 114296700A
Authority
CN
China
Prior art keywords
ccs
dsp
source
target
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
Application number
CN202111490346.0A
Other languages
Chinese (zh)
Other versions
CN114296700B (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.)
Chengdu Enfit Technology Co ltd
Original Assignee
Chengdu Enfit 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 Chengdu Enfit Technology Co ltd filed Critical Chengdu Enfit Technology Co ltd
Priority to CN202111490346.0A priority Critical patent/CN114296700B/en
Publication of CN114296700A publication Critical patent/CN114296700A/en
Application granted granted Critical
Publication of CN114296700B publication Critical patent/CN114296700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a DSP engineering transplanting method and relates to the technical field of computers; the method comprises the following steps: respectively installing a transition CCS and a target CCS in an operating system where a source CCS is located, wherein the versions of the source CCS, the transition CCS and the target CCS are sequentially increased; opening a compiler of the target CCS, and selecting a source DSP project compiled by the source CCS through the transition CCS import directory; after the engineering import of the source DSP is finished, the engineering parameters are configured in the target CCS and then compiled again, and debug parameters are configured; after debug parameters are configured, programming FLASH to complete the transplantation of DSP project. The invention can transplant the DSP project edited by the low-version CCS into the high-version CCS by importing the catalog through the transitional CCS and selecting the source DSP project edited by the source CCS, so that the DSP project edited by the low-version CCS can run on a new debugging machine.

Description

DSP engineering transplanting method
Technical Field
The invention relates to the technical field of computers, in particular to a DSP engineering transplanting method.
Background
The DSP development usually requires a software development environment and a hardware platform, the software development environment for the DSP development is ccs (code Composer studio), and the hardware platform consists of an emulator and a target board. Among the common CCS versions, CCS2.2, CCS3.3, CCS5.5, CCS6.1 and CCS10.0 are available; the simulator is used for connecting the target board and the PC to program, burn, debug and the like the DSP on the target board in the CCS; the target board is a circuit board which is provided with a DSP chip and can ensure that the DSP chip can independently run after being electrified.
Early DSP engineering was mostly written by CCS2.2, and with the Development of PC machines and the upgrade of operating systems, most operating systems of debug machines (PC machines) have been upgraded to win10, and with the DSP engineering written by CCS2.2, based on the existing operating systems, IDE (Integrated Development Environment, application program for providing a program Development Environment, including tools such as code editor, compiler, debugger, and graphical user interface) (IDE, Integrated Development Environment) of CCS2.2 is difficult to adapt to a new system, so that it is necessary to migrate low-version DSP engineering to high-version.
Disclosure of Invention
The invention provides a DSP project transplanting method which can transplant DSP projects edited by a low-version CCS into a high-version CCS.
The invention is realized by the following technical scheme:
a DSP engineering transplanting method comprises the following steps:
respectively installing a transition CCS and a target CCS in an operating system where a source CCS is located, wherein the versions of the source CCS, the transition CCS and the target CCS are sequentially increased;
opening a compiler of the target CCS, and selecting a source DSP project compiled by the source CCS through the transition CCS import directory;
after the engineering import of the source DSP is finished, the engineering parameters are configured in the target CCS and then compiled again, and debug parameters are configured;
after debug parameters are configured, programming FLASH to complete the transplantation of DSP project.
In the prior art, DSP projects edited by CCS with a lower version cannot be directly transplanted to CCS with a higher version, CCS with a lower version has stable functions, and CCS with a lower version is usually adopted in early DSP project editing. The invention respectively installs the transition CCS and the target CCS in the operating system where the source CCS is located, and selects the source DSP project compiled by the source CCS through the transition CCS import directory, so that the DSP project edited by the low-version CCS can be transplanted to the high-version CCS. Therefore, the invention can transplant the DSP project edited by the low-version CCS into the high-version CCS, so that the DSP project edited by the low-version CCS can be operated on a new debugging machine.
Specifically, the transitional CCS is CCS3.3, and CCS3.3 is an integrated version that can support a full-line CCS, so that DSP projects edited by a source CCS lower than the CCS3.3 can be migrated to a source target CCS higher than the CCS 3.3.
Specifically, the step of opening the compiler of the target CCS and selecting the source DSP project written by the source CCS through the transition CCS import directory includes: opening the compiler of the target CCS, and selecting CCS3.3 and the following versions under a target path to find the source DSP project in the compiler of the target CCS and import the source DSP project.
Specifically, the BIOS is configured after the compiler of the target CCS imports the source DSP project.
Specifically, the target CCS is CCS5.5, so as to edit the post-migration DSP engineering and ensure the stability of the post-migration DSP.
Specifically, the default compiler version is modified to tiv6.0.8, and if a compiler with a version of tiv6.0.8 is not found, a compiler of CCS3.3 is selected.
Specifically, the step of configuring the engineering parameters in the target CCS includes: finding 5.31.2 version of DSP/BIOS in the compiler of the target CCS and loading, if 5.31.2 version of DSP/BIOS is not found, loading BIOS in the CCS3.3 installation file to ensure that the target CCS can access the underlying library function.
Specifically, the step of configuring the debug parameter is as follows: out file configuration is found and loaded in the target CCS compiler, and then debugging is started and main function is entered.
Specifically, the step of programming the FLASH comprises the following steps:
annotating the SDRAMTOFLASH statements;
compiling and running debug, and stopping the main function in the DSP;
after the main function is stopped, selecting a data storage path and modifying storage parameters;
after the storage parameters are modified, releasing the SDRAMTOFLASH statements and recompiling;
after recompiling, setting a breakpoint at the SDRAMTOFLASH statement, and rebutting and loading the program;
the SDRAMTOFLASH statement is skipped by a single step and then the FLASH is programmed.
Specifically, the source CCS is CCS 2.2.
The invention has the following beneficial effects:
1. the DSP project transplanting method provided by the invention respectively installs the transition CCS and the target CCS in the operating system where the source CCS is located, and selects the source DSP project compiled by the source CCS through the transition CCS import directory, so that the DSP project edited by the low-version CCS can be transplanted to the high-version CCS, and further the DSP project edited by the low-version CCS can be operated on a new debugging machine.
2. The DSP project transplanting method provided by the invention is characterized in that the BIOS is configured after the compiler of the target CCS imports the source DSP project, the DSP/BIOS with 5.31.2 version is found in the compiler of the target CCS and loaded, if the DSP/BIOS with 5.31.2 version is not found, the BIOS in the CCS3.3 installation file is loaded, so as to ensure that the target CCS can access the bottom library function.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flow chart of a DSP engineering transplanting method according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
Examples
The embodiment provides a DSP engineering transplanting method, wherein during the transplanting, the environment is set as:
the system comprises the following steps: win7 x 64;
installing and driving: SEED-XDS510Plus emulsifier for ccs4.x & above. exe;
using a simulator: SEED-XDS510 PLUS;
auxiliary tools: xdctols _ setupwin32_3_25_06_96. exe.
The DSP engineering transplanting method comprises the following steps:
s1, respectively installing a transition CCS and a target CCS in an operating system where the source CCS is located, wherein the versions of the source CCS, the transition CCS and the target CCS are sequentially increased; that is win7 x64, and at the same time, install source CCS, transition CCS, and target CCS, in this embodiment source CCS is CCS2.2, transition CCS is CCS3.3, and target CCS is CCS 5.5.
Most of early DSP projects are written by CCS2.2, and the CCS2.2 is taken as a source CCS, so that the early DSP projects can be transplanted to a high-version CCS; CCS3.3 is an integrated version and can support the complete CCS, so that DSP projects edited by source CCS lower than the CCS3.3 version can be transplanted to source target CCS higher than the CCS3.3 version; and taking the CCS5.5 as a target CCS so as to edit the DSP project after the migration and ensure the stability of the DSP after the migration.
Respectively installing a transition CCS and a target CCS in an operating system where a source CCS is located, wherein the steps S11-S13 specifically comprise the following steps:
and S11, installing CCS2.2, wherein the installation of the CCS2.2 has no requirement, and after the installation is finished, the CCS2.2 is used for decompressing the early DSP project into a corresponding folder, such as decompressing DSP6276C.
S12, installing CCS3.3, and installing CCS3.3 into the folder corresponding to the set installation disk, such as D: \ CCStaudio _ v3.3 or C: \ CCStaudio _ v 3.3.
S13, installing CCS5.5, and installing the CCS5.5 into a folder corresponding to the set installation disk, wherein the folder comprises the following steps: d: \ ti or C: \ ti, and installing a drive (SEED-XDS510Plus Emulator for CCS4.x & above. exe) into a CCS5.5 installation directory, wherein the corresponding installation directory is D: \ ti \ ccsv5\ CCS _ base or C: \ ti \ ccsv5\ CCS _ base.
S2, opening a compiler of the target CCS, and selecting a source DSP project compiled by the source CCS through the transition CCS import directory; and selecting the source DSP project written by the source CCS through the transition CCS import directory, so that the DSP project edited by the low-version CCS can be transplanted to the high-version CCS.
The step of importing the source DSP project includes steps S21-S23, specifically:
s21, opening a CCS5.5 compiler, and selecting E: \ prj \ DSP \ CCS5\ hdlc3 in an engineering catalog;
s22, importing CCS early version engineering, selecting Legacy CCSv3.3 Projects from a filter, selecting E \ prj \ DSP \ CCS5\ hdlc3\ DSP6276C from project files, and selecting the popped files;
and S23, configuring the BIOS, namely configuring the BIOS after the compiler of the target CCS imports the source DSP project.
The step of configuring the BIOS includes S231-S233:
s231, selecting a compiler version, modifying a default compiler version (Ti v7.4.4) into TI v6.0.8, if a compiler with a version of TI v6.0.8 is not found, selecting a compiler of CCS3.3, wherein the path of the compiler of CCS3.3 is D: \ CCSudio _ v3.3\ C6000\ cgtools;
s232, entering a compiling environment after the selection of the compiler is completed;
and S233, configuring the engineering environment, finding and loading 5.31.2 versions of DSP/BIOS in a compiler of the target CCS, and loading BIOS in a CCS3.3 installation file if 5.31.2 versions of DSP/BIOS are not found, so as to add lib libraries to ensure that the target CCS can access underlying library functions, such as IRQ _ globaleEnable (), IRQ _ enable (), IRQ _ disable ().
And S3, after the engineering import of the source DSP is finished, recompiling after the engineering parameters are configured in the target CCS, and configuring debug parameters.
Specifically, the step of configuring the debug parameter includes S31-S32:
s31, finding out file (dsp6276c.out) configuration in the target CCS compiler and loading;
s32, starting debugging from the menu Run- > Debug (F11), waiting for downloading the program, and entering the main function.
And S4, after debug parameters are configured, programming the FLASH to complete the transplantation of the DSP project.
The specification to be described is migrated to CCS5.5, and the procedure of writing FLASH is as consistent as possible with the procedure of CCS3.3, and specifically includes steps S41 to S46:
s41, annotating the SDRAMTOFLASH statement, and releasing the SDRAMTOFLASH statement when the program is downloaded into the FLASH;
s42, compiling, running debug and stopping the main function in the DSP;
s43, after the operation is finished, selecting Tools- > Save Memory in the menu bar, selecting a storage path (E: \ prj \ DSP \ ccs5\ hdlc4\ DSP6276c \ Dedug \20210201.dat) in a pop-up file dialog box, and modifying storage parameters including a starting address and a length, wherein the starting address is 0 and the length is 0xC 000.
S44, releasing the SDRAMTOFLASH statement after modifying the storage parameters, and recompiling;
s45, after recompilation, setting a breakpoint at the SDRAMTOFLASH statement, rebutting and loading the program of about, when the debug runs to the breakpoint SDRAMTOFLASH, loading 20210201.dat through Tools-Load Memory, wherein the starting address is 0x8000000 and the length is 0xC 000;
s46, single step skip the SDRAMToFLASH statement, then start programming FLASH to migrate the DSP project into CCS 5.5.
It can be understood that, in the prior art, a DSP project edited by a CCS with a lower version cannot be directly migrated to a CCS with a higher version, but the DSP project migration method provided in this embodiment separately installs a transition CCS and a target CCS in an operating system where a source CCS is located, and selects a source DSP project edited by the source CCS through the transition CCS import directory, so that the DSP project edited by the CCS with a lower version can be migrated to the CCS with a higher version, and further the DSP project edited by the CCS with a lower version can be run on a new debug machine.
And meanwhile, after the compiler of the target CCS imports the source DSP project, configuring a BIOS, finding out and loading 5.31.2-version DSP/BIOS in the compiler of the target CCS, and loading the BIOS in a CCS3.3 installation file if 5.31.2-version DSP/BIOS is not found, so that the target CCS can access the underlying library function.
The foregoing is only a preferred embodiment of the present invention, and the present invention is not limited thereto in any way, and any simple modification, equivalent replacement and improvement made to the above embodiment within the spirit and principle of the present invention still fall within the protection scope of the present invention.

Claims (10)

1. A DSP engineering transplanting method is characterized by comprising the following steps:
respectively installing a transition CCS and a target CCS in an operating system where a source CCS is located, wherein the versions of the source CCS, the transition CCS and the target CCS are sequentially increased;
opening a compiler of the target CCS, and selecting a source DSP project compiled by the source CCS through the transition CCS import directory;
after the engineering import of the source DSP is finished, the engineering parameters are configured in the target CCS and then compiled again, and debug parameters are configured;
after debug parameters are configured, programming FLASH to complete the transplantation of DSP project.
2. The DSP engineering migration method of claim 1, wherein said transition CCS is CCS 3.3.
3. The method of claim 2, wherein the step of opening the compiler of the target CCS and selecting the source DSP project written by the source CCS via the transition CCS import directory comprises:
opening the compiler of the target CCS, and selecting CCS3.3 and the following versions under a target path to find the source DSP project in the compiler of the target CCS and import the source DSP project.
4. The DSP engineering migration method of claim 3, wherein the BIOS is configured after the compiler of said target CCS imports said source DSP engineering.
5. The DSP engineering migration method of claim 4, wherein said target CCS is CCS 5.5.
6. The DSP engineering migration method of claim 5, wherein the step of configuring the BIOS is: and modifying the default compiler version to TIv6.0.8, and if a compiler with the version of TIv6.0.8 is not found, selecting a compiler of CCS 3.3.
7. The DSP engineering migration method of claim 6, wherein the step of configuring engineering parameters in said target CCS is: finding 5.31.2 version of DSP/BIOS in the compiler of the target CCS and loading, if 5.31.2 version of DSP/BIOS is not found, loading BIOS in CCS3.3 installation files.
8. The DSP engineering migration method according to claim 7, wherein the step of configuring debug parameters comprises:
out file configuration is found and loaded in the target CCS compiler, and then debugging is started and main function is entered.
9. The DSP engineering transplanting method of claim 8, wherein the step of programming FLASH comprises:
annotating the SDRAMTOFLASH statements;
compiling and running debug, and stopping the main function in the DSP;
after the main function is stopped, selecting a data storage path and modifying storage parameters;
after the storage parameters are modified, releasing the SDRAMTOFLASH statements and recompiling;
after recompiling, setting a breakpoint at the SDRAMTOFLASH statement, and rebutting and loading the program;
the SDRAMTOFLASH statement is skipped by a single step and then the FLASH is programmed.
10. The DSP engineering migration method of claim 2, wherein said source CCS is CCS 2.2.
CN202111490346.0A 2021-12-08 2021-12-08 DSP engineering transplanting method Active CN114296700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111490346.0A CN114296700B (en) 2021-12-08 2021-12-08 DSP engineering transplanting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111490346.0A CN114296700B (en) 2021-12-08 2021-12-08 DSP engineering transplanting method

Publications (2)

Publication Number Publication Date
CN114296700A true CN114296700A (en) 2022-04-08
CN114296700B CN114296700B (en) 2024-07-19

Family

ID=80965450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111490346.0A Active CN114296700B (en) 2021-12-08 2021-12-08 DSP engineering transplanting method

Country Status (1)

Country Link
CN (1) CN114296700B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040233237A1 (en) * 2003-01-24 2004-11-25 Andreas Randow Development environment for DSP
CN102207887A (en) * 2011-05-04 2011-10-05 中兴通讯股份有限公司 Method and device for rapidly transplanting embedded operation system
CN102520976A (en) * 2011-11-17 2012-06-27 四川九洲电器集团有限责任公司 Solidifying method of DSP (digital signal processor) program
CN102903366A (en) * 2012-09-18 2013-01-30 重庆大学 Digital signal processor (DSP) optimization method based on G729 speech compression coding algorithm
CN103729202A (en) * 2012-10-12 2014-04-16 成都飞机设计研究所 DSP reliable on-line FLASH programming method based on GEL script
CN104536779A (en) * 2014-12-08 2015-04-22 河北汉光重工有限责任公司 DSP serial port programming method easy to operate in project and based on CPLD
CN108829465A (en) * 2018-06-27 2018-11-16 北京计算机技术及应用研究所 A kind of local dynamic loading system and method based on direct read/write FLASH
CN109445846A (en) * 2018-10-30 2019-03-08 中国船舶重工集团公司第七0七研究所 A kind of NDK adaptation layer transplantation method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040233237A1 (en) * 2003-01-24 2004-11-25 Andreas Randow Development environment for DSP
CN102207887A (en) * 2011-05-04 2011-10-05 中兴通讯股份有限公司 Method and device for rapidly transplanting embedded operation system
CN102520976A (en) * 2011-11-17 2012-06-27 四川九洲电器集团有限责任公司 Solidifying method of DSP (digital signal processor) program
CN102903366A (en) * 2012-09-18 2013-01-30 重庆大学 Digital signal processor (DSP) optimization method based on G729 speech compression coding algorithm
CN103729202A (en) * 2012-10-12 2014-04-16 成都飞机设计研究所 DSP reliable on-line FLASH programming method based on GEL script
CN104536779A (en) * 2014-12-08 2015-04-22 河北汉光重工有限责任公司 DSP serial port programming method easy to operate in project and based on CPLD
CN108829465A (en) * 2018-06-27 2018-11-16 北京计算机技术及应用研究所 A kind of local dynamic loading system and method based on direct read/write FLASH
CN109445846A (en) * 2018-10-30 2019-03-08 中国船舶重工集团公司第七0七研究所 A kind of NDK adaptation layer transplantation method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
翟丽杰;: "基于TMS320C5509的UC/OS-Ⅱ移植研究", 河南科学, no. 11, 15 November 2011 (2011-11-15), pages 1 - 5 *

Also Published As

Publication number Publication date
CN114296700B (en) 2024-07-19

Similar Documents

Publication Publication Date Title
US6795963B1 (en) Method and system for optimizing systems with enhanced debugging information
CN1329836C (en) Method for locating program abnormity
CN108829465B (en) Local dynamic loading system and method based on direct read-write FLASH
US6374401B1 (en) System, method, and program for updating registry objects with a cross-platform installation program
US20040025083A1 (en) Generating test code for software
JP2000181725A (en) Method and system for altering executable code and giving addition function
US6507948B1 (en) Method, system, and program for generating batch files
US20040083467A1 (en) System and method for executing intermediate code
US20030182460A1 (en) Managed code modules dynamically invoking unmanaged code modules at arbitrary locations
CN112882718A (en) Compiling processing method, device, equipment and storage medium
CN101334737A (en) Embedded equipment start-up or reset method
MacKenzie et al. Gnu automake
CN117435512B (en) Unit test method for automatically switching different database types based on Junit5
US20050114847A1 (en) Method, apparatus and computer program for automatically determining compile-time module dependencies
CN112905173B (en) Engineering multiplexing implementation method based on Eclipse and integrated development environment thereof
CN111061486A (en) Android application program increment method
CN114296700B (en) DSP engineering transplanting method
CN111722875A (en) Method for rapidly transplanting and compiling open source program by Shenwei platform
CN115827056A (en) Method for configuring multiple compiling environment transformation
CN110806891A (en) Method and device for generating software version of embedded equipment
CN115437639A (en) Automatic generation method and device of compiling configuration file, electronic equipment and storage medium
CN109298883A (en) A kind of automatically generate component file method and electronic equipment under teaching platform
CN111831314B (en) Method and device for patching non-writable partition
KR100478463B1 (en) Dynamic Linking Method for Application Program
JP2001022560A (en) Method for revising library function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant