CN103279061A - Interface extensible programming method based on DSP platform - Google Patents

Interface extensible programming method based on DSP platform Download PDF

Info

Publication number
CN103279061A
CN103279061A CN2013102233923A CN201310223392A CN103279061A CN 103279061 A CN103279061 A CN 103279061A CN 2013102233923 A CN2013102233923 A CN 2013102233923A CN 201310223392 A CN201310223392 A CN 201310223392A CN 103279061 A CN103279061 A CN 103279061A
Authority
CN
China
Prior art keywords
program
dsp
programming
interface
method based
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
CN2013102233923A
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.)
Sichuan Aerospace System Engineering Research Institute
Original Assignee
Sichuan Aerospace System Engineering Research Institute
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 Aerospace System Engineering Research Institute filed Critical Sichuan Aerospace System Engineering Research Institute
Priority to CN2013102233923A priority Critical patent/CN103279061A/en
Publication of CN103279061A publication Critical patent/CN103279061A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an interface extensible programming method based on a DSP platform, and belongs to a programming method. The interface extensible programming method is characterized by comprising the following steps that firstly, initialization is carried out again after a DSP program is loaded last time; secondly, an upper computer reads a program file needing to be programmed, and transmits the program file to a DSP program; thirdly, after receiving the program file from the upper computer, the DSP program stores the program file in an appointed FLASH chip address section. By the adoption of an extensible programming interface, custom-made selection can be carried out according to the demands of customers, programming can be finished only through the data interface of the DSP system, the DSP programming is effectively accelerated, the programming process can be controlled, meanwhile, problems occurring in the programming process can be fed back to the upper computer in time, the operation is easy, a programming result is reliable, the interface extensible programming method can be used for programming program file contents of various DSP devices in the process of updating, and the application range is wide.

Description

But the interface extender programming method based on the DSP platform
Technical field
The present invention relates to a kind of program burn writing method, in particular, but the present invention relates generally to a kind of interface extender programming method based on the DSP platform.
Background technology
At present, DSP embedded device upgrade method mainly is by traditional programme upgrade method, and the program burn writing instrument that provides by TI company utilizes the JTAG emulator to come the programming program.This kind method is general programming method, but for some special occasions, do not draw in ripe embedded product as the JTAG mouth, perhaps embedded device JTAG mouth in airtight casing is inconvenient to connect, the upgrading mode of aforementioned conventional has been brought great inconvenience, can not meet consumers' demand.In simple terms, mainly there is following problem in aforesaid program burn writing method; The one, the programming interface is single, can only carry out programming with the JTAG mouth; The 2nd, programming condition harshness can only be separated the DSP subsystem with total system, could realize programming after exposing jtag port; The 3rd, program burn writing speed is limited, and JTAG port communications speed is limited; The 4th, programming process complexity, the user need file conversion becomes the .hex file just can carry out programming according to .cmd by the file conversion instrument with the .out file, and for some FLASH, needs change programming plug-in unit source code.And problems such as preceding method also exists the programming process uncontrollable, and the programming result is unreliable.So based on foregoing problems, but be necessary to do further improvement at the method for the required extender programming of carrying out of DSP embedded device upgrading.
Summary of the invention
One of purpose of the present invention is to solve above-mentioned deficiency, but provide a kind of interface extender programming method based on the DSP platform, but the single and programming condition harshness of extender programming interface when solving in the prior art the DSP device upgrade with expectation, and programming program complexity, technical matters such as efficient is lower.
For solving above-mentioned technical matters, the present invention by the following technical solutions:
But a kind of interface extender programming method based on the DSP platform provided by the present invention, described method comprises the steps:
After step S1, DSP program last time loaded end, carry out initialization again;
Step S2, host computer read the program file that needs programming, and described program file is transferred to the DSP program;
After step S3, DSP program receive the program file that comes from host computer, it is deposited FLASH chip address interval to appointment, and then the program file content of the need programming in the FLASH chip is copied in the internal memory, and utilize the program jump instruction with the cin00 program entry address in the PC pointed program file, thereby finish the loading again of DSP program.
As preferably, further technical scheme is: host computer at first carries out the selection of transmission interface among the described step S2 before needing the program file of programming to the transmission of DSP program.
Further technical scheme is: the transmission interface among the described step S2 between host computer and the DSP program is any one in the middle of serial communication interface, CAN bus communication interface, ethernet interface and the wireless network communications interface.
Further technical scheme is: the DSP program is last time loading end among the described step S1, after carrying out initialization again, at first carry out the whether operation of programming program file, when the result when being, then continue execution in step S2, otherwise then directly just in the FLASH chip existing program file content be copied in the internal memory, and utilize the program jump instruction with the cin00 program entry address in the PC pointed program file.
Further technical scheme is: being loaded as for the second time that the DSP program finishes among the described step S1 loads.
Further technical scheme is: what finish among the described step S3 is the loading for the third time of DSP program.
Further technical scheme is: program loads the interior 1K program of FLASH automatically to the DSP program after being loaded as chip power the second time of described DSP program, place, program pointer sensing 0x00000000 address this moment brings into operation, the DSP program is utilized described 1K program to finish user program is copied in the internal memory by FLASH, utilize the program jump instruction with PC pointed to the cin00 address field of the user program user program that brings into operation, thereby the secondary of finishing the DSP program load.
Compared with prior art, one of beneficial effect of the present invention is: by extendible program burn writing interface, can customize selection according to user's needs, and only need the data-interface of dsp system just can finish programming, effectively improved the speed of DSP program burn writing, the programming process can be controlled, the problem that occurs in the program burn writing process simultaneously can in time be fed back to host computer, simple to operate, the programming result is safe reliable, can be used for the program file content programming of multiple DSP equipment in escalation process, range of application is wide.
Description of drawings
Fig. 1 is for being used for the module frame chart of explanation one embodiment of the invention program transmission course;
Fig. 2 is for being used for the operating process synoptic diagram of explanation another embodiment of the present invention.
Embodiment
The present invention is further elaborated below in conjunction with accompanying drawing.
With reference to shown in Figure 1, but one embodiment of the present of invention are a kind of interface extender programming methods based on the DSP platform, and described method comprises and preferably operates according to following steps:
After step S1, DSP program last time loaded end, carry out initialization again;
Step S2, host computer read the program file that needs programming, and described program file is transferred to the DSP program;
After step S3, DSP program receive the program file that comes from host computer, it is deposited FLASH chip address interval to appointment, and then the program file content of the need programming in the FLASH chip is copied in the internal memory, and utilize the program jump instruction with the cin00 program entry address in the PC pointed program file, thereby finish the loading again of DSP program.
Simultaneously with reference to Figure 1 and Figure 2, in another embodiment of the present invention, for further expanding the interface quantity of program burn writing, host computer is before needing the program file of programming to the transmission of DSP program in above-mentioned steps S2, at first carry out the selection of a plurality of transmission interfaces, select according to user's customization with convenient.
And go out as Figure 1 and Figure 2, be used for the embodiment that the technical solution problem is more preferably in the present invention, the inventor is with reference to several data transmission interface conventional in the prior art, between host computer and DSP program, be provided with multiple concrete data transmission interface, serial communication interface for example, the CAN bus communication interface, ethernet interface and wireless network communications interface etc., and in actual the transmission after selecting to have determined aforementioned any one data transmission interface, host computer is planted data transmission interface thus program file is transferred to the DSP program, makes it carry out follow-up program burn writing operation.
According to another embodiment of the present invention, the DSP program is last time loading end among the above-mentioned steps S1, after carrying out initialization again, at first carry out the whether operation of programming program file, when the result when being, then continue execution in step S2, on the contrary then directly just in the FLASH chip existing program file content be copied in the internal memory, and utilize the program jump instruction with the cin00 program entry address in the PC pointed program file.
Further, the program burn writing method of above-described embodiment is fully based on the conventional load mode of DSP program, and in other words the loading that finishes among the above-mentioned steps S1 is to load for the second time of DSP program, and what finish among the step S3 is the loading for the third time of DSP program.
Program loaded the interior 1K program of FLASH automatically to the DSP program after the loading second time of above-mentioned DSP program referred to chip power, place, program pointer sensing 0x00000000 address this moment brings into operation, the DSP program is utilized described 1K program to finish user program is copied in the internal memory by FLASH, utilize the program jump instruction with PC pointed to the cin00 address field of the user program user program that brings into operation, thereby the secondary of finishing the DSP program load.Because the loading method second time of DSP program has been prior art in the art, and purpose of the present invention does not lie in this yet, so the present invention no longer describes in detail this, if necessary, those skilled in the art can be directly with reference to rolling up the corresponding contents that discloses in the 4th interim " two secondary programs of DSP+FLASH load implementation method " " theory and method " April the 27th in 2008, in order to auxiliary realization the present invention.
Mention as above-described embodiment, program burn writing method of the present invention is exactly on the basis that DSP program secondary loads, and according to the ultimate principle of DSP program operation, realizes three load operatings of DSP program; Specifically be divided into epigynous computer section and DSP program part; Epigynous computer section is mainly finished the programming file and is read, and by reliable communication protocol and data communication interface, gives the DSP program with the programming file transfer.The DSP program part is mainly finished the programming file of reception host computer procedure and is left it in appointment FLASH chip address interval; Then programming file content in the FLASH chip is copied in the internal memory, last service routine jump instruction is finished the guiding for the third time of program with the cin00 program entry address of PC pointed programming file.
To sum up, the invention provides a kind of fast, method general, extendible, the reliable DSP program burn writing of data-interface method, simple to operate in actual use, the programming result is safe reliable.
Except above-mentioned, also need to prove " embodiment ", " another embodiment " that speak of in this manual, " embodiment " etc., refer to concrete feature, structure or the characteristics described in conjunction with this embodiment and be included among at least one embodiment that the application's generality describes.A plurality of local appearance statement of the same race is not necessarily to refer to same embodiment in instructions.Furthermore, when describing a concrete feature, structure or characteristics in conjunction with arbitrary embodiment, what advocate is to realize that in conjunction with other embodiment this feature, structure or characteristics also fall within the scope of the invention.
Although invention has been described with reference to a plurality of explanatory embodiment of the present invention here, but, should be appreciated that those skilled in the art can design a lot of other modification and embodiments, these are revised and embodiment will drop within the disclosed principle scope and spirit of the application.More particularly, in the scope of, accompanying drawing open in the application and claim, can carry out multiple modification and improvement to building block and/or the layout of subject combination layout.Except modification that building block and/or layout are carried out with improving, to those skilled in the art, other purposes also will be tangible.

Claims (7)

1. but the interface extender programming method based on the DSP platform is characterized in that described method comprises
Following steps:
After steps A, DSP program last time loaded end, carry out initialization again;
Step B, host computer read the program file that needs programming, and described program file is transferred to the DSP program;
After step C, DSP program receive the program file that comes from host computer, it is deposited FLASH chip address interval to appointment, and then the program file content of the need programming in the FLASH chip is copied in the internal memory, and utilize the program jump instruction with the cin00 program entry address in the PC pointed program file, thereby finish the loading again of DSP program.
2. but the interface extender programming method based on the DSP platform according to claim 1 is characterized in that: host computer at first carries out the selection of transmission interface among the described step B before needing the program file of programming to the transmission of DSP program.
3. but the interface extender programming method based on the DSP platform according to claim 1 and 2 is characterized in that: the transmission interface among the described step B between host computer and the DSP program is any one in the middle of serial communication interface, CAN bus communication interface, ethernet interface and the wireless network communications interface.
4. but the interface extender programming method based on the DSP platform according to claim 1, it is characterized in that: the DSP program is last time loading end in the described steps A, after carrying out initialization again, at first carry out the whether operation of programming program file, when the result when being, then continue execution in step B, on the contrary then directly just in the FLASH chip existing program file content be copied in the internal memory, and utilize the program jump instruction with the cin00 program entry address in the PC pointed program file.
5. but the interface extender programming method based on the DSP platform according to claim 1 is characterized in that: being loaded as for the second time that the DSP program finishes in the described steps A loads.
6. but the interface extender programming method based on the DSP platform according to claim 1 and 2, it is characterized in that: what finish among the described step C is the loading for the third time of DSP program.
7. but the interface extender programming method based on the DSP platform according to claim 5, it is characterized in that: program loads the interior 1K program of FLASH automatically to the DSP program after being loaded as chip power the second time of described DSP program, place, program pointer sensing 0x00000000 address this moment brings into operation, the DSP program is utilized described 1K program to finish user program is copied in the internal memory by FLASH, utilize the program jump instruction with PC pointed to the cin00 address field of the user program user program that brings into operation, thereby the secondary of finishing the DSP program load.
CN2013102233923A 2013-06-06 2013-06-06 Interface extensible programming method based on DSP platform Pending CN103279061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013102233923A CN103279061A (en) 2013-06-06 2013-06-06 Interface extensible programming method based on DSP platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013102233923A CN103279061A (en) 2013-06-06 2013-06-06 Interface extensible programming method based on DSP platform

Publications (1)

Publication Number Publication Date
CN103279061A true CN103279061A (en) 2013-09-04

Family

ID=49061625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013102233923A Pending CN103279061A (en) 2013-06-06 2013-06-06 Interface extensible programming method based on DSP platform

Country Status (1)

Country Link
CN (1) CN103279061A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106249666A (en) * 2016-09-23 2016-12-21 北京机械设备研究所 A kind of online tune based on digital communication joins system and method
CN106528203A (en) * 2016-10-10 2017-03-22 上海无线电设备研究所 Method for automatic program programming of multiple DSP chips
CN109408924A (en) * 2018-10-12 2019-03-01 北京特种机械研究所 FPGA configuration method based on dsp chip
CN109460248A (en) * 2018-10-30 2019-03-12 北京航天时代激光导航技术有限责任公司 A kind of user program method for uploading and system based on DSP
CN109471822A (en) * 2018-10-24 2019-03-15 中国空空导弹研究院 A kind of DSP common software programming device based on polymorphic type bus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1998239A1 (en) * 2005-01-26 2008-12-03 Somfy SAS Method of configuring a control unit for a domestic control system
CN102820061A (en) * 2012-08-31 2012-12-12 东北大学 Embedded remote device program programmer device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1998239A1 (en) * 2005-01-26 2008-12-03 Somfy SAS Method of configuring a control unit for a domestic control system
CN102820061A (en) * 2012-08-31 2012-12-12 东北大学 Embedded remote device program programmer device and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴海燕,等: "一种基于TMS320C6000系列芯片的多DSP程序动态加载方案", 《电子元器件应用》 *
朱望纯,等: "DSP+FLASH的二次程序加载实现方法", 《理论与方法》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106249666A (en) * 2016-09-23 2016-12-21 北京机械设备研究所 A kind of online tune based on digital communication joins system and method
CN106249666B (en) * 2016-09-23 2020-01-24 北京机械设备研究所 Online parameter adjusting system and method based on digital communication
CN106528203A (en) * 2016-10-10 2017-03-22 上海无线电设备研究所 Method for automatic program programming of multiple DSP chips
CN106528203B (en) * 2016-10-10 2019-10-18 上海无线电设备研究所 A kind of automated procedures programming method of multi-DSP chip
CN109408924A (en) * 2018-10-12 2019-03-01 北京特种机械研究所 FPGA configuration method based on dsp chip
CN109408924B (en) * 2018-10-12 2022-11-04 北京特种机械研究所 FPGA configuration method based on DSP chip
CN109471822A (en) * 2018-10-24 2019-03-15 中国空空导弹研究院 A kind of DSP common software programming device based on polymorphic type bus
CN109460248A (en) * 2018-10-30 2019-03-12 北京航天时代激光导航技术有限责任公司 A kind of user program method for uploading and system based on DSP

Similar Documents

Publication Publication Date Title
CN108023952B (en) Cloud and mist combination-based modularized Internet of things application rapid construction platform
CN102651785B (en) Remote wakeup of application processor of mobile device
CN103279061A (en) Interface extensible programming method based on DSP platform
CN109656807A (en) Interface mock test method, device, equipment and storage medium based on information security
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN103473141A (en) Method for out-of-band check and modification of BIOS (basic input/output system) setting options
CN104375855A (en) Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs
EP3336627A1 (en) Support device, method, and recording medium whereon support program is stored
CN103198042A (en) PCI (programmable communications interface) aviation serial bus board and dynamic data loading processing method
CN104991806A (en) Remote firmware upgrading system and method for single-chip microcomputer program
CN104516709A (en) Voice assisting method and system based on software operation scene and voice assistant
CN108345449A (en) A kind of information processing method, device, storage medium and computer equipment
CN110045982A (en) A kind of embedded system configuration method based on source code polymerization
CN103838588A (en) Method for conducting online program updating on AT90 single-chip microcomputer through CAN interface
CN104461446A (en) Software running method and system based on voice interaction
CN103701471B (en) A kind of frequency converter keyboard and read method
CN106293797A (en) A kind of method and system of online updating Single Chip Microcomputer (SCM) program
CN104965745B (en) Air-conditioner system program renewing device and method
WO2017107429A1 (en) Operation processing method, apparatus and device for interconnection application, and non-volatile computer storage medium
CN104063227A (en) Command learning method based on internet of things
CN203838596U (en) Card computer system and device
CN102981858A (en) Integrated circuit programming system and method based on mobile device
CN115525323A (en) Distributed relay protection system generation method and device, electronic equipment and medium
CN202267950U (en) Remote upgrading device of embedded devices
CN103777702A (en) Card computer system and card computer

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: 20130904