Dsp startup program loading method and device, equipment and storage medium

By comparing and rewriting the target code between the internal and external memory when the DSP chip is powered on, the data error problem under FLASH loading mode is solved, ensuring the stable startup and normal operation of the DSP chip.

CN119806682BActive Publication Date: 2026-02-17CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510007720.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-03
Publication Date
2026-02-17
Estimated Expiration
2045-01-03

AI Technical Summary

Technical Problem

The existing FLASH loading method of DSP chips is prone to errors when the external environment changes during the initial state, which can cause the 64KB data copied from the CE1 space by DMA to be incorrect, affecting the normal use of the DSP.

Method used

After the DSP chip is powered on, the target code is moved from the external memory to the internal program storage area and compared with the target code in the external memory to confirm consistency. If they are inconsistent, the internal storage area is rewritten according to the target code in the external memory until they are consistent, and then other code and data are loaded.

Benefits of technology

Ensuring the correctness of the core code loaded by the DSP chip avoids malfunctions and improves the reliability of the DSP chip loader.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119806682B_ABST
    Figure CN119806682B_ABST
Patent Text Reader

Abstract

The application discloses a DSP starting program loading method, device and equipment and a storage medium, wherein the method comprises the following steps: when a DSP chip is powered on, target codes are moved from an external memory to an internal program storage area of the DSP chip; the target codes moved to the internal program storage area are compared with the target codes in the external memory; when the target codes in the internal program storage area are inconsistent with the target codes in the external memory, the inconsistent code segments in the target codes in the internal program storage area are re-written according to the target codes in the external memory, and when the target codes are consistent, other codes and data except the target codes in the external memory are loaded to the DSP chip. The application guarantees that the loaded target codes for DSP configuration are consistent with the target codes in the external memory, and then other codes are loaded, so that the high reliability of the program is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of digital signal processing, and particularly relates to a DSP startup program loading method and device, equipment and a storage medium. BACKGROUND

[0002] Due to the advantages of high integration, fast operation speed and strong programmability, the DSP (Digital Signal Processing) is applied to more and more electronic devices for digital signal processing. In many DSP application systems, the DSP chip needs to automatically load a program from an external device after power-on. At present, the common loading methods mainly include ROM loading and FLASH loading. The ROM loading is the most common loading method in engineering, which can save the program code segment and data segment in the ROM, FLASH and other non-volatile memories, and the loading process is completely completed by the DSP automatically, which is very convenient in practical application. The FLASH loading is to copy the code in the FLASH in the external CE1 space to the address 0 through the DMA, and the loading process starts after the reset signal is removed, at this time, the CPU remains in the reset state, and the DMA performs a single frame of data block transmission. For the C620x / C670x, the DMA copies 64 KB data (mainly including the configuration program of the DSP) from the CE1 space to the address 0, and after the transmission is completed, the CPU exits the reset state and starts to execute the instruction at the address 0. If the 64 KB data is loaded incorrectly, it may seriously affect the function to be realized by the DSP, resulting in that the DSP is not configured and started according to the user's requirements.

[0003] However, the initial state of the circuit when the circuit is powered on has a high requirement in the FLASH loading method at present. If the initial state of the circuit is affected by the external environment change and other factors, the 64 KB data copied from the CE1 space by the DMA may be incorrect, thereby causing the DSP running failure. Especially in the case that the error rate is low and does not cause the program to stop feeding the dog and reset, the normal use of the DSP chip is seriously affected. SUMMARY

[0004] Therefore, the present application provides a DSP startup program loading method, device, equipment and storage medium to solve the problem of low reliability of the FLASH loading program of the existing DSP chip.

[0005] To solve the above technical problems, one technical solution adopted by the present application is to provide a DSP startup program loading method, which comprises: moving target code from an external memory to an internal program storage area of a DSP chip after the DSP chip is powered on; comparing the target code moved to the internal program storage area with the target code in the external memory; when the target code in the internal program storage area is inconsistent with the target code in the external memory, re-writing the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory, until the target code is consistent, and then loading other code and data in the external memory except the target code to the DSP chip.

[0006] As a further improvement of the present application, the target code comprises migration code and configuration code; the comparison of the target code moved to the internal program storage area with the target code in the external memory comprises: comparison of the configuration code moved to the internal program storage area with the configuration code in the external memory.

[0007] As a further improvement of the present application, the other code and data comprise function code and code data segment; after the re-writing of the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory, the method further comprises: executing the migration code to move the function code and the code data segment from the external memory to the internal storage of the DSP chip.

[0008] As a further improvement of the present application, the moving of the function code and the code data segment from the external memory to the internal storage of the DSP chip comprises: moving the function code in the external memory to a DSP external expansion SRAM for storage, and moving the code data segment in the external memory to an internal data storage area of the DSP chip for storage.

[0009] As a further improvement of the present application, the moving of the target code from the external memory to the internal program storage area of the DSP chip comprises: copying the target code from the external memory and obtaining a first storage address of the target code in the external memory; and writing the target code into a second storage address designated in advance in the internal program storage area.

[0010] As a further improvement of the present application, the re-writing of the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory comprises: confirming a first target address of the inconsistent code segment in the external memory and a second target address of the inconsistent code segment in the internal program storage area; copying the target code segment stored in the first target address in the external memory, and re-writing the target code segment into the second target address in the internal program storage area.

[0011] As a further improvement of the present application, the external memory comprises one of a ROM memory and a FLASH memory.

[0012] To solve the above technical problems, the present application adopts another technical solution: providing a DSP startup program loading device, comprising: a moving module, configured to move target code from an external memory to an internal program storage area of a DSP chip when the DSP chip is powered on; a comparison module, configured to compare the target code moved to the internal program storage area with the target code in the external memory; a rewriting module, configured to re-write the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory when the target code in the internal program storage area is inconsistent with the target code in the external memory, until the target code is consistent, and then load other codes and data in the external memory except the target code to the DSP chip.

[0013] To solve the above technical problems, the present application adopts another technical solution: providing a computer device, comprising a processor, a memory coupled with the processor, and program instructions stored in the memory, wherein the program instructions are executed by the processor to make the processor execute the steps of the DSP startup program loading method of any one of the above.

[0014] To solve the above technical problems, the present application adopts another technical solution: providing a storage medium, storing program instructions capable of implementing the DSP startup program loading method of any one of the above.

[0015] The beneficial effects of the present application are: the DSP startup program loading method of the present application loads the target code for configuring the DSP chip from the external memory when the DSP chip is powered on, then compares the loaded target code with the target code in the external memory to confirm whether the target code loaded by the DSP chip is consistent, and in the case of consistency, the DSP chip is configured according to the target code, and in the case of inconsistency, the inconsistent code segment is re-written according to the target code in the external memory, so as to ensure that the core code for configuring the DSP is correct, and other codes are loaded subsequently, so that the DSP chip will not malfunction when it is powered on and started, and the reliability of the program loaded by the DSP chip is greatly improved. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 is a flowchart of the DSP startup program loading method of the first embodiment of the present application;

[0017] Figure 2 is a flowchart of the DSP startup program loading method of the second embodiment of the present application;

[0018] Figure 3 is a flowchart of the DSP startup program loading method of the third embodiment of the present application;

[0019] Figure 4 Figure 1 is a functional module schematic diagram of a DSP startup program loading device according to an embodiment of the present application;

[0020] Figure 5 Figure 2 is a structural schematic diagram of a computer device according to an embodiment of the present application;

[0021] Figure 6 Figure 3 is a structural schematic diagram of a storage medium according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort fall within the scope of protection of the present application.

[0023] The terms "first", "second", "third" in the present application are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second", "third" can explicitly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise explicitly specified. All directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present application are only used to explain the relative positional relationship, movement condition, etc. between the components in a certain posture (as shown in the drawings), and if the certain posture changes, the directional indications also change accordingly. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to the process, method, product or device.

[0024] In this document, the term "embodiment" means that the specific features, structures or characteristics described in connection with the embodiment can be included in at least one embodiment of the present application. The phrase appears at various places in the specification does not necessarily all refer to the same embodiment, nor is it necessarily mutually exclusive or alternative embodiments to other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0025] Figure 1is a flowchart of a DSP startup program loading method according to the first embodiment of the present application. It should be noted that the method of the present application is not limited to the flow sequence shown Figure 1 as shown. As shown in the DSP startup program loading method, the method comprises the steps of: Figure 1

[0026] Step S101: When the DSP chip is powered on, the target code is moved from the external memory to the internal program storage area of the DSP chip.

[0027] It should be noted that in this embodiment, the program code stored in the external memory needs to be pre-burned, for example, in the case of a single board computer, the generated DSP program is stored as a.bix file (this format is also a common storage format for DSP programs), the.bix file is uploaded to the local file system of the single board computer operating system through the network, for example, ftp, and a DSP program burning command is sent to the single board computer from any terminal computer through the network, the embedded executable program embedded in the single board computer operating system reads the.bix file stored in the local file system in binary mode and writes it into the external memory of the target board card (such as a signal processing board card), when all the data is written, the target board card loads the DSP program from the external memory, the system is reset and restarted, and the entire burning process is completed.

[0028] Among them, the external memory includes one of ROM memory and FLASH memory.

[0029] In this embodiment, the target code is contained in 64KB data pre-stored in the external memory, which is an InCode code, in which the interrupt vector table of the DSP configuration is recorded. It should be understood that in addition to the target code, other codes required by the DSP chip to be loaded are also stored in the external memory, such as codes for implementing various functions, which can be confirmed whether there is a problem in loading according to the running status after the code is loaded, for example, whether the function is normally implemented, etc., and in the case of loading error, especially when the error rate is low and does not cause the program to stop feeding the dog and reset, the DSP chip may start normally, but it will cause the DSP chip to malfunction during running. Among them, the 64KB data is usually saved from the starting address of the external memory. Specifically, when the DSP chip is powered on, the DMA controller automatically moves the first 64KB data from the external memory to the internal program storage area of the DSP chip.

[0030] Step S102: Comparing the target code moved to the internal program storage area with the target code in the external memory.

[0031] ​Specifically, after the target code is loaded, the target code moved to the internal program storage area is compared with the target code in the external memory to determine whether there is a code segment loading error.

[0032] Further, the target code includes migration code and configuration code, wherein the migration code is used for subsequent migration of other codes in the external memory. The configuration code is the code for configuring the DSP. In order to ensure the normal start of the DSP, the configuration code must be kept correct, and therefore, the step S102 specifically includes: comparing the configuration code moved to the internal program storage area with the configuration code in the external memory.

[0033] Step S103: When the target code in the internal program storage area is inconsistent with the target code in the external memory, the inconsistent code segment in the target code in the internal program storage area is re-written according to the target code in the external memory, and until the target code is consistent, the other codes and data in the external memory except the target code are loaded to the DSP chip.

[0034] Specifically, when the target code in the internal program storage area is inconsistent with the target code in the external memory, it indicates that the target code is loaded with an error. In order to ensure the stable start and operation of the DSP chip, the inconsistent code segment in the target code in the internal program storage area needs to be modified to ensure the correct loading of the code segment. Then, in the case that the target code is consistent, the other codes and data in the external memory except the target code are loaded to the DSP chip.

[0035] It should be noted that when the target code in the internal program storage area is consistent with the target code in the external memory, the other codes and data in the external memory except the target code are directly loaded to the DSP chip.

[0036] The DSP start program loading method of the first embodiment of the present application loads the target code for configuring the DSP chip from the external memory when the DSP chip is powered on, then compares the loaded target code with the target code in the external memory to determine whether the target code loaded by the DSP chip is consistent, and in the case of consistency, the DSP chip is configured according to the target code, and in the case of inconsistency, the inconsistent code segment is re-written according to the target code in the external memory to ensure that the core code for configuring the DSP is correct, and then other codes are loaded, so that the DSP chip will not malfunction when powered on and started, and the reliability of the program loaded by the DSP chip is greatly improved.

[0037] Figure 2 is the flowchart of the DSP start program loading method of the second embodiment of the present application. It should be noted that the method of the present application does not necessarily have the same result as long as it has the same effect.Figure 2 The flow sequence shown is limited. As shown in Figure 2 The DSP startup program loading method includes the steps of:

[0038] Step S201: When the DSP chip is powered on, the target code is moved from the external memory to the internal program storage area of the DSP chip.

[0039] In this embodiment, Figure 2 Step S201 in the above and Figure 1 Step S101 in the above are similar, and will not be described here for brevity.

[0040] Step S202: Compare the target code moved to the internal program storage area with the target code in the external memory.

[0041] In this embodiment, Figure 2 Step S202 in the above and Figure 1 Step S102 in the above are similar, and will not be described here for brevity.

[0042] Step S203: When the target code in the internal program storage area is inconsistent with the target code in the external memory, re-write the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory, until the target code is consistent, and then load other code and data in the external memory except the target code to the DSP chip.

[0043] In this embodiment, Figure 2 Step S203 in the above and Figure 1 Step S103 in the above are similar, and will not be described here for brevity.

[0044] Further, the other code and data include function code and code data segment.

[0045] The function code refers to the code set by the user to realize a certain function by running the DSP chip, and the code data segment is the data supporting the running of the function code.

[0046] Step S204: Execute the migration code to move the function code and the code data segment from the external memory to the internal storage of the DSP chip.

[0047] Specifically, in the case where the configuration code loaded into the DSP chip is consistent with the configuration code in the external memory, the migration code is executed to load the function code and the code data segment in the external memory to be loaded into the DSP chip into the DSP chip.

[0048] Further, step S204 specifically includes:

[0049] The function code in the external memory is moved to the external expansion SRAM, and the code data section in the external memory is moved to the internal data storage area of the DSP chip.

[0050] Specifically, the external expansion SRAM and the internal data storage area are pre-divided, and when the function code and the code data section are loaded, the function code and the code data section are stored in the external expansion SRAM and the internal data storage area respectively, so that the partition storage of the code and the data is realized, and the user management is facilitated.

[0051] The DSP startup program loading method of the second embodiment of the present application is based on the first embodiment, and the function code and the code data section stored in the external memory are moved to the internal storage of the DSP chip by executing the migration code, and the function code and the code data section are stored in different areas respectively, so that the partition management of the code and the data is realized, and the management and maintenance are facilitated.

[0052] Figure 3 is a flowchart of the DSP startup program loading method of the third embodiment of the present application. It should be noted that the method of the present application is not limited to the flow order shown in Figure 3 . As shown in Figure 3 , the DSP startup program loading method comprises the following steps:

[0053] Step S301: copying the target code from the external memory and obtaining the first storage address of the target code in the external memory.

[0054] Specifically, when the target code is copied in the external memory, the first storage address of the target code in the external memory is recorded. Generally, the target code is stored from the starting address of the external memory to the storage area with a data size of 64KB.

[0055] Step S302: writing the target code into the second storage address pre-specified in the internal program storage area.

[0056] Specifically, when the target code is written into the internal program storage area, the second storage address of the writing is recorded.

[0057] Step S303: comparing the target code moved to the internal program storage area with the target code in the external memory.

[0058] In this embodiment, Figure 3 , the step S303 and Figure 1 , the step S102 are similar, and are not described here for brevity.

[0059] Step S304: When the target code in the internal program storage area is inconsistent with the target code in the external memory, the first target address of the inconsistent code segment in the external memory and the second target address in the internal program storage area are confirmed.

[0060] Specifically, the target code moved to the internal program storage area is compared with the target code in the external memory by storage address one by one, and when an inconsistent code segment appears, the first target address of the inconsistent code segment in the external memory and the second target address in the internal program storage area are confirmed.

[0061] Step S305: The target code segment stored in the first target address of the external memory is copied and re-written to the second target address of the internal program storage area.

[0062] Specifically, the target code segment stored in the first target address of the external memory is re-written to the second target address of the internal program storage area, covering the previously written code segment, so that the inconsistent code in the internal program storage area is replaced by consistent code.

[0063] Step S306: Other codes and data in the external memory except the target code are loaded to the DSP chip.

[0064] Specifically, the loading of other codes and data in the external memory is realized while maintaining the consistency of the target code.

[0065] The DSP startup program loading method of the third embodiment of the present application is based on the first embodiment, and by recording the first storage address in the external memory before loading the target code and the second storage address in the internal program storage area after loading the target code, when the target code in the internal program storage area is inconsistent with the target code in the external memory, the first target address of the inconsistent code segment in the external memory and the second target address in the internal program storage area are confirmed, and then the code segment of the first target address is re-loaded to the second target address for storage, which only needs to modify the inconsistent code part, without the need to re-load all the codes, greatly improving the program loading efficiency on the premise of ensuring the reliability of the loaded program.

[0066] Figure 4 is a functional module schematic diagram of the DSP startup program loading device of the embodiment of the present application. As shown in the figure, the DSP startup program loading device 20 comprises a moving module 21, a comparison module 22 and a rewriting module 23. Figure 4

[0067] The moving module 21 is used for moving the target code from the external memory to the internal program storage area of the DSP chip after the DSP chip is powered on.​

[0068] a comparison module 22, configured to compare the target code moved to the internal program storage area with the target code in the external memory;

[0069] a rewriting module 23, configured to rewrite the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory until the target code is consistent, and load other code and data in the external memory except the target code to the DSP chip.

[0070] Optionally, the target code comprises migration code and configuration code; the comparison module 22 performs the operation of comparing the target code moved to the internal program storage area with the target code in the external memory, specifically comprising: comparing the configuration code moved to the internal program storage area with the configuration code in the external memory.

[0071] Optionally, the other code and data comprise function code and code data segment; after the rewriting module 23 performs the operation of rewriting the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory, the rewriting module 23 is further configured to: perform migration code to move the function code and the code data segment from the external memory to the internal storage of the DSP chip.

[0072] Optionally, the rewriting module 23 performs the operation of moving the function code and the code data segment from the external memory to the internal storage of the DSP chip, specifically comprising: moving the function code in the external memory to the external SRAM of the DSP for storage, and moving the code data segment in the external memory to the internal data storage area of the DSP chip for storage.

[0073] Optionally, the moving module 21 performs the operation of moving the target code from the external memory to the internal program storage area of the DSP chip, specifically comprising: copying the target code from the external memory and obtaining a first storage address of the target code in the external memory; and writing the target code into a second storage address designated in the internal program storage area.

[0074] Optionally, the rewriting module 23 performs the operation of rewriting the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory, specifically comprising: confirming a first target address of the inconsistent code segment in the external memory and a second target address of the inconsistent code segment in the internal program storage area; copying the target code segment stored in the first target address of the external memory, and rewriting the target code segment into the second target address of the internal program storage area.

[0075] Optionally, the external memory comprises one of a ROM memory and a FLASH memory.

[0076] For other details regarding the implementation techniques of each module in the DSP bootloader loading device of the above embodiments, please refer to the description of the DSP bootloader loading method in the above embodiments, which will not be repeated here.

[0077] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0078] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. Figure 5 As shown, the computer device 30 includes a processor 31 and a memory 32 coupled to the processor 31. The memory 32 stores program instructions. When the program instructions are executed by the processor 31, the processor 31 performs the steps of the DSP startup program loading method described in any of the above embodiments.

[0079] The processor 31 can also be referred to as a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip with signal processing capabilities. The processor 31 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor can be a microprocessor or any conventional processor.

[0080] See Figure 6 , Figure 6 This is a schematic diagram of the structure of the storage medium according to an embodiment of the present invention. The storage medium of this embodiment stores program instructions 41 capable of implementing the above-described DSP boot program loading method. These program instructions 41 can be stored in the storage medium in the form of a software product, including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, or computer devices such as computers, servers, mobile phones, and tablets.

[0081] In several embodiments provided in the present application, it should be understood that the disclosed computer device, apparatus and method can be implemented in other manners. For example, the division of the apparatus embodiments is only a logical function division, and there can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different units, or the among different units, can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

[0082] In addition, each function unit in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist alone physically, or two or more units can be integrated into a unit. The above integrated unit can be implemented in the form of hardware, or can be implemented in the form of a software function unit. The above is only an implementation manner of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent flow transformation using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A DSP boot program loading method, characterized by, The method comprises the following steps: when the DSP chip is powered on, moving target code from an external memory to an internal program storage area of the DSP chip; comparing the target code moved to the internal program storage area with the target code in the external memory; when the target code in the internal program storage area is inconsistent with the target code in the external memory, re-writing the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory until the target code is consistent, and then loading other code and data in the external memory except the target code to the DSP chip; the target code comprises migration code and configuration code; the comparison of the target code moved to the internal program storage area with the target code in the external memory comprises: comparing the configuration code moved to the internal program storage area with the configuration code in the external memory; after the re-writing of the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory, the other code and data further comprise function code and code data segment; executing the migration code to move the function code and the code data segment from the external memory to the DSP chip; the moving of the function code and the code data segment from the external memory to the DSP chip comprises: moving the function code in the external memory to a DSP external expansion SRAM for storage, and moving the code data segment in the external memory to an internal data storage area of the DSP chip for storage.

2. The DSP boot program loading method of claim 1, wherein, the moving of the target code from the external memory to the internal program storage area of the DSP chip comprises: copying the target code from the external memory and obtaining a first storage address of the target code in the external memory; writing the target code into a second storage address in the internal program storage area.

3. The DSP startup procedure loading method of claim 2, wherein, the re-writing of the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory comprises: confirming a first target address of the inconsistent code segment in the external memory and a second target address of the inconsistent code segment in the internal program storage area; copying the target code segment stored in the first target address in the external memory and re-writing the target code segment into the second target address in the internal program storage area.

4. The DSP boot program loading method of claim 1, wherein, the external memory comprises one of a ROM memory and a FLASH memory.

5. A DSP startup program loading apparatus, characterized by comprising: a device for running the DSP startup program loading method according to any one of claims 1-4; the DSP startup program loading device comprises: a moving module for moving target code from an external memory to an internal program storage area of the DSP chip when the DSP chip is powered on; a comparing module for comparing the target code moved to the internal program storage area with the target code in the external memory; a re-writing module for re-writing the inconsistent code segment in the target code in the internal program storage area according to the target code in the external memory when the target code in the internal program storage area is inconsistent with the target code in the external memory. A rewriting module is configured to rewrite the inconsistent code segment in the target code of the internal program storage area according to the target code in the external memory when the target code of the internal program storage area is inconsistent with the target code in the external memory, and load the code and data in the external memory except the target code to the DSP chip until the target code is consistent.

6. A computer device, comprising: The computer device comprises a processor, a memory coupled to the processor, and the memory stores program instructions which are executed by the processor to make the processor perform the steps of the DSP startup program loading method according to any one of claims 1-4.

7. A storage medium, characterized by The memory stores program instructions capable of implementing the DSP startup program loading method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Method for DSP (Digital Signal Processor) self-start secondary demand loading

    CN103955376A

  • Segmented dual-redundancy boot loading method for DSP

    CN112559071A