Method for realizing on-line programming of DSP (Digital Signal Processor) system

A programming method and user program technology, applied in the direction of program control device, program loading/starting, etc., can solve the problems of many interface signals, difficult to apply to small-sized equipment, JTAG interface can not meet the requirements of long-distance transmission, etc., to avoid damage, Simple operation, stable programming effect

Inactive Publication Date: 2017-02-22
徐川
0 Cites 2 Cited by

AI-Extracted Technical Summary

Problems solved by technology

This method of JTAG interface cannot meet the requirements of long-distance transmission, and it is difficult to realize online programming of remote systems; and it canno...
View more

Abstract

The invention discloses a method for realizing the on-line programming of a DSP (Digital Signal Processor) system, and belongs to the field of data communication and data processing. Particularly, the method comprises program design that a DSP terminal is updated, and design that a PC (Personal Computer) upper computer updates software. When the DSP needs to be updated, a serial port is adopted to carry out data interaction on the DSP and the PC, the data which needs to be updated is received, the correctness of the data is judged, then, the data is stored into FLASH, and the updated grogram is executed to finish final DSP system update. The method has the advantages of being simple in operation, stable in flashing and the like, and can be widely applied to the update configuration of embedded equipment software.

Application Domain

Program loading/initiating

Technology Topic

Computer programmingSerial port +8

Image

  • Method for realizing on-line programming of DSP (Digital Signal Processor) system
  • Method for realizing on-line programming of DSP (Digital Signal Processor) system
  • Method for realizing on-line programming of DSP (Digital Signal Processor) system

Examples

  • Experimental program(1)

Example Embodiment

[0016] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0017] figure 1 It is a hardware connection diagram of a system using this software, including DSP, FLASH, MAX232EUE, and PC.
[0018] DSP: For objects that need to be updated configuration, the DSP that needs to be updated must support self-starting and serial communication, and start executing the Control program segment to update after self-starting.
[0019] FLASH: A total of 3 sections of programs are stored in FLASH. The first section is the DSP boot program, which is used for DSP startup; the second section is the Cnotrol program, which is used to update the DSP; the third section is the user program, which is the program that the DSP runs normally. Replace this section of the program when you need to update the DSP.
[0020] MAX3232: This chip converts the level format of the data, converts the digital signal of DSP into the physical level signal corresponding to RS232, and converts the RS232 of the computer into digital signal of DSP.
[0021] PC: The PC terminal is used for data interaction with the DSP. The present invention designs a special upper computer software to exchange data with the DSP through RS232. The upper computer software needs to load the user program that needs to be updated, configure the RS232 serial port, and at the same time update Need to receive the feedback information from the judgment DSP and send the loaded user program.
[0022] figure 2 for figure 1 In the DSP self-starting flowchart, after the DSP chip is powered on and reset, EDMA automatically copies 1KB of data from FLASH to DSP memory address 0, and then DSP starts to execute the 1KB program code copied to address 0. However, the present invention does not limit the self-starting method, and it only needs to execute the Contral program segment after starting. Specific steps are as follows:
[0023] Step 1: System reset, initialize EDMA, on-chip bootloader copies the first 1KB code from FLASH space to address 0 in DSP internal RAM;
[0024] Step 2: CPU reset, the boot program copies the complete application program to its running address, and jumps to the entry address of the application program after the copy is completed, namely c_int00;
[0025] Step 3: Jump to c_int00, initialize the C language operating environment, jump to the main function main(), and execute the application;
[0026] image 3 The flow chart of online configuration for DSP includes the following steps:
[0027] Step 1: After power on, automatically copy the first 1k program in FLASH to the DSP internal RAM, and execute the boot program;
[0028] Step 2: The boot program copies the Control program segment in FLASH to the internal RAM of the DSP and starts to execute the Control program segment;
[0029] Step 3: Read the external configuration of the DSP and determine whether the user program of the DSP needs to be updated;
[0030] Step 4: If there is no need to update, copy the original user program segment to the DSP internal RAM, and start to execute the user program;
[0031] Step 5: If you need to update and clear the data of the original user program segment in FLASH, receive the data from the PC through RS232, and write the new program segment into FLASH;
[0032] Step 6: Copy the new user program segment to the internal RAM of the DSP, and start executing the user program;
[0033] Figure 4 The flow chart of executing the Control program for DSP includes the following steps:
[0034] Step 1: Initialize the RS232 serial port and send 0xFF to the PC, indicating that the user program is requested to be updated;
[0035] Step 2: Receive the data from the PC, store it in the array, and wait for the time for the PC to send a group of data;
[0036] Step 3: Determine whether there is a parity error in this group of data, if there is no error, return 0xFF to the PC, indicating that the reception is successful, and at the same time store the received data in FLASH, and continue to receive the next set of data;
[0037] Step 4: If an error occurs, clear this group of data, and return 0x00 to the PC at the same time, indicating that there is a problem in receiving, and wait for the PC to resend the last group of data;
[0038] Step 5: If the data is not received after waiting for the PC to send a group of data, it is considered that the update is complete. At this time, copy the updated program to RAM and execute the user program;
[0039] Figure 5 The flowchart of the update process performed by the upper computer software on the PC side, including the following steps:
[0040] Step 1: Open the hex file corresponding to the user program that needs to be updated, and group the hexadecimal data in it;
[0041] Step 2: Initialize RS232, read the data sent by DSP;
[0042] Step 3: Determine whether the data sent by DSP is 0xFF, if it is, then start to update, send the first group of data through the serial port, if it is not 0xFF, terminate this program;
[0043] Step 4: After sending the first group, read the DSP sending data and judge whether it is 0xFF, if it is, send the next group, if it is 0x00, then resend the previous group of data, if it is other data, terminate this program;
[0044] Step 5: After sending the last group and receiving 0xFF from the DSP, terminate this program, and the update is complete.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Efficient mosaic tile pressing device

ActiveCN106272903Aavoid damagesave material
Owner:佛山市南海风靡建材有限公司

Efficient drying device for textile processing

InactiveCN107655294AIncrease the drying areaavoid damage
Owner:薛帅龙

Classification and recommendation of technical efficacy words

  • avoid damage
  • easy to operate

Electronic scale

InactiveCN104838243Aavoid damagelow cost
Owner:SUZHOU VOCATIONAL UNIV

Detection and protection method of lack of fluorine of air-conditioners

InactiveCN101526259ASolve operational difficultiesavoid damage
Owner:宁波海诚电器有限公司

Nanocomposites based on polyurethane or polyurethane-epoxy hybrid resins prepared avoiding isocyanates

ActiveUS20070135588A1beneficial physicochemical and mechanical propertyavoid damage
Owner:HUNTSMAN ADVANCED MATERIALS AMERICAS INC

Method and apparatus for increasing angiogenic, growth factor in heart muscle

InactiveUS7107997B1exposure be continuousavoid damage
Owner:MOSES JEFFREY WARREN +3

Packaging sensors for long term implant

InactiveUS7347826B1avoid damage
Owner:PACESETTER INC

Lancet device

InactiveUS7303573B2inexpensively mass-producedeasy to operate
Owner:ABBOTT DIABETES CARE INC

Rapid and non-invasive optical detection of internal bleeding

InactiveUS20050065436A1easy to operaterapid and accurate result
Owner:HO WINSTON ZONH +2
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products