DSP (Digital Signal Processor) starting program loading method, device and equipment and storage medium
By moving from external memory when the DSP chip is powered on, comparing the target code, and rewriting it when inconsistent, the problem of low reliability of the FLASH loader of the existing DSP chip is solved, and higher loader reliability is achieved.
Patent Information
- Application Number
- CN202510007720.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2045-01-03
AI Technical Summary
The FLASH loader method of existing DSP chips is low in reliability, and it is easy to cause 64KB data copied by DMA from CE1 space due to changes in the external environment, resulting in DSP operation failure.
After the DSP chip is powered on, the target code is moved from the external memory to the internal program storage area, and the target code moved to the internal program storage area is compared with the target code in the external memory. When inconsistent, rewrite the inconsistent code segments in the target code of the internal program memory area according to the target code in the external memory until the target code is consistent, and then load other codes.
By ensuring that the target code loaded by the DSP chip is consistent, DSP operation failure caused by loading errors is avoided, and the reliability of the DSP chip loader is significantly improved.
Smart Images

Figure CN119806682A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of digital signal processing, and in particular to a DSP startup program loading method, device, equipment and storage medium. Background Art
[0002] Due to its advantages of high integration, fast operation speed and strong programmability, DSP (Digital Signal Processing) is increasingly used in electronic devices for digital signal processing. In many DSP application systems, the DSP chip needs to be able to automatically load programs from external devices after power-on. At present, the more common loading methods mainly include ROM loading and FLASH loading. ROM loading is the most common loading method in engineering. This method can save program code segments and data segments in non-volatile memories such as ROM and FLASH. The loading process is completely completed automatically by DSP, which is very convenient in practical applications. FLASH loading is to first move the code in the FLASH located in the external CE1 space to address 0 through DMA. The loading process starts after the reset signal is cancelled. At this time, the CPU remains in the reset state, and the DMA executes a single frame of data block transmission. For C620x / C670x, DMA copies 64KB data (the 64KB data mainly includes the configuration program for DSP) from the CE1 space to address 0. After the transmission is completed, the CPU exits the reset state and starts to execute the instructions at address 0. If an error occurs when loading the 64KB data, it may seriously affect the functions that the DSP needs to implement, resulting in the DSP not being configured and started according to the user's requirements.
[0003] However, the current FLASH loading method has high requirements for the initial state of the circuit when it is powered on. If the initial state of the circuit is affected by factors such as changes in the external environment, it is easy to cause errors in the 64KB data copied by DMA from the CE1 space, thereby causing DSP operation failure. Especially when the error rate is low and will not cause the program to stop feeding the dog and reset, it seriously affects the normal use of the DSP chip. Summary of the invention
[0004] In view of this, the present application provides a DSP startup program loading method, device, equipment and storage medium to solve the problem of low reliability of the existing DSP chip FLASH loading program method.
[0005] To solve the above technical problems, a technical solution adopted by the present application is: to provide a DSP startup program loading method, which includes: when the DSP chip is powered on, moving the target code from the external memory to the 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, rewriting the inconsistent code segments 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 codes and data in the external memory except the target code into the DSP chip.
[0006] As a further improvement of the present application, the target code includes migration code and configuration code; comparing the target code moved to the internal program storage area with the target code in the external memory includes: comparing 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, other codes and data include function codes and code data segments; after rewriting the inconsistent code segments in the target code in the internal program storage area according to the target code in the external memory, it also includes: executing migration code to move the function codes and code data segments from the external memory to the storage in the DSP chip.
[0008] As a further improvement of the present application, the function code and code data segments are moved from the external memory to the DSP chip for storage, including: moving the function code in the external memory to the DSP external SRAM for storage, and moving the code data segments in the external memory to the internal data storage area of the DSP chip for storage.
[0009] As a further improvement of the present application, moving the target code from the external memory to the internal program storage area of the DSP chip includes: 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 to a pre-specified second storage address in the internal program storage area.
[0010] As a further improvement of the present application, inconsistent code segments in the target code of the internal program storage area are rewritten according to the target code in the external memory, including: confirming the first target address of the inconsistent code segment in the external memory and the second target address in the internal program storage area; copying the target code segment stored at the first target address in the external memory, and rewriting the target code segment to the second target address in the internal program storage area.
[0011] As a further improvement of the present application, the external memory includes one of a ROM memory and a FLASH memory.
[0012] To solve the above technical problems, another technical solution adopted by the present application is: to provide a DSP startup program loading device, which includes: a moving module, used to move the target code from the external memory to the internal program storage area of the DSP chip after the DSP chip is powered on; a comparison module, used to compare the target code moved to the internal program storage area with the target code in the external memory; a rewriting module, used to rewrite the inconsistent code segments 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 into the DSP chip.
[0013] To solve the above technical problems, another technical solution adopted in the present application is: to provide a computer device, the computer device includes a processor and a memory coupled to the processor, the memory stores program instructions, and when the program instructions are executed by the processor, the processor executes the steps of the DSP startup program loading method as described in any one of the above items.
[0014] In order to solve the above technical problems, another technical solution adopted by the present application is: providing a storage medium storing program instructions capable of implementing any of the above DSP startup program loading methods.
[0015] The beneficial effect of the present application is as follows: 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, and 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. If they are consistent, the DSP chip is configured according to the target code. If they are inconsistent, the inconsistent code segments are rewritten according to the target code in the external memory to ensure that the core code for configuring the DSP is correct, and other codes are loaded subsequently, so that no failure occurs when the DSP chip is powered on and started, and the reliability of the program loaded by the DSP chip is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 1 is a flow chart of a DSP startup program loading method according to a first embodiment of the present invention;
[0017] Figure 2 is a flow chart of a DSP startup program loading method according to a second embodiment of the present invention;
[0018] Figure 3 is a flow chart of a DSP startup program loading method according to a third embodiment of the present invention;
[0019] Figure 4 It is a functional module diagram of a DSP startup program loading device according to an embodiment of the present invention;
[0020] Figure 5 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention;
[0021] Figure 6 It is a schematic diagram of the structure of the storage medium of an embodiment of the present invention. DETAILED DESCRIPTION
[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0023] The terms "first", "second", "third" in this application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In the embodiments of this application, all directional indications (such as up, down, left, right, front, back...) are only used to explain the relative position relationship, movement, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication also changes accordingly. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the steps or units listed, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0025] Figure 1FIG. 1 is a flow chart of a DSP startup program loading method according to a first embodiment of the present invention. It should be noted that the method of the present invention is not limited to the method of FIG. 1 if substantially the same results are achieved. Figure 1 The process sequence shown is limited. Figure 1 As shown, the DSP startup program loading method includes the steps of:
[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, taking the single-board computer as an example, 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, such as ftp, and then any terminal computer is used to send a DSP program burning command to the single-board 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 to the external memory of the target board (such as a signal processing board) through the CPCI bus. When all the data is written, the target board loads the DSP program from the external wall memory, and the system is reset and restarted, and the entire burning process is completed.
[0028] The external memory includes a ROM memory and a FLASH memory.
[0029] In this embodiment, the target code is contained in 64KB data pre-stored in the external memory, which is a section of InCode code, in which the interrupt vector table configured by the DSP is recorded. It should be understood that in addition to the target code, the external memory also stores other codes that the DSP chip needs to load, such as codes for implementing various functions. The codes for implementing various functions can confirm whether there is a problem with the loading according to the running status after the code is loaded, such as whether the function is implemented normally, etc., and when the target code is loaded with an 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 operation. 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: Compare 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 confirm whether there is any error in loading the code segment.
[0032] Furthermore, the target code includes migration code and configuration code, wherein the migration code is used to subsequently migrate other codes in the external memory. The configuration code is the code for configuring the DSP. In order to ensure the normal startup of the DSP, the configuration code must be kept correct. Therefore, 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 segments in the target code in the internal program storage area are rewritten according to the target code in the external memory until the target codes are consistent, and then the other codes and data in the external memory except the target code are loaded into 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 means that the target code loading is wrong. In order to ensure the stable startup 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, when the target code is consistent, the other codes and data in the external memory except the target code are loaded into 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 into the DSP chip.
[0036] The DSP startup program loading method of the first embodiment of the present invention loads the target code for configuring the DSP chip from the external memory when the DSP chip is powered on, and 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. If they are consistent, the DSP chip is configured according to the target code. If they are inconsistent, the inconsistent code segment is rewritten 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 no failure occurs when the DSP chip is powered on and started, and the reliability of the program loaded by the DSP chip is greatly improved.
[0037] Figure 2 FIG. 1 is a flow chart of a DSP startup program loading method according to a second embodiment of the present invention. It should be noted that the method of the present invention is not limited to the method of FIG. 1 if substantially the same results are achieved. Figure 2 The process sequence shown is limited. Figure 2 As shown, 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 and Figure 1 The process is similar to step S101 in , and for the sake of brevity, it will not be repeated here.
[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 and Figure 1 The process is similar to step S102 in , and will not be described again for the sake of brevity.
[0042] Step S203: When the target code in the internal program storage area is inconsistent with the target code in the external memory, the inconsistent code segments in the target code in the internal program storage area are rewritten according to the target code in the external memory until the target codes are consistent, and then the other codes and data in the external memory except the target code are loaded into the DSP chip.
[0043] In this embodiment, Figure 2 Step S203 and Figure 1 The process is similar to step S103 in , and will not be described again for the sake of brevity.
[0044] Furthermore, other codes and data include function codes and code data segments.
[0045] The function code refers to the code set by the user that the DSP chip runs to achieve a certain function, and the code data segment is the data that supports the running of the function code.
[0046] Step S204: Execute the migration code to move the function code and code data segment from the external memory to the DSP chip for storage.
[0047] Specifically, under the condition that 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 code data segment to be loaded into the DSP chip in the external memory into the DSP chip.
[0048] Furthermore, step S204 specifically includes:
[0049] The function code in the external memory is moved to the DSP external SRAM for storage, and the code data segment in the external memory is moved to the internal data storage area of the DSP chip for storage.
[0050] Specifically, it is necessary to pre-divide the external SRAM and internal data storage area. When loading function codes and code data segments, they are stored in the external SRAM and internal data storage area respectively, thereby realizing partitioned storage of codes and data and facilitating user management.
[0051] The DSP startup program loading method of the second embodiment of the present invention is based on the first embodiment. By executing the migration code, the function code and code data segment stored in the external memory are moved to the storage in the DSP chip, and the function code and code data segment are saved in different areas respectively to realize the partition management of code and data, which is convenient for management and maintenance.
[0052] Figure 3 FIG. 1 is a flow chart of a DSP startup program loading method according to a third embodiment of the present invention. It should be noted that the method of the present invention is not limited to the method of FIG. 1 if substantially the same results are achieved. Figure 3 The process sequence shown is limited. Figure 3 As shown, the DSP startup program loading method includes the steps of:
[0053] Step S301: copy the target code from the external memory and obtain 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. Usually, the target code is stored from the starting address of the external memory to the storage area of the first 64KB data size.
[0055] Step S302: writing the target code into a 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 where the target code is written is recorded.
[0057] Step S303: Compare the target code moved to the internal program storage area with the target code in the external memory.
[0058] In this embodiment, Figure 3 Step S303 and Figure 1 The process is similar to step S102 in , and will not be described again for the sake of brevity.
[0059] Step S304: When the target code in the internal program storage area is inconsistent with the target code in the external memory, confirm the first target address of the inconsistent code segment in the external memory and the second target address in the internal program storage area.
[0060] Specifically, the target code moved to the internal program storage area is compared with the target code in the external memory one by one according to the storage address. 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: copy the target code segment stored at the first target address in the external memory, and rewrite the target code segment to the second target address in the internal program storage area.
[0062] Specifically, the target code segment stored at the first target address in the external memory is rewritten to the second target address in the internal program storage area, overwriting the previously written code segment, thereby replacing the inconsistent code in the internal program storage area with the consistent code.
[0063] Step S306: Load the other codes and data in the external memory except the target code into the DSP chip.
[0064] Specifically, the loading of other codes and data in the external memory is achieved while keeping the target code consistent.
[0065] The DSP startup program loading method of the third embodiment of the present invention is based on the first embodiment. When loading the target code, the first storage address of the target code in the external memory before loading and the second storage address in the internal program storage area after loading are recorded. When the target code in the internal program storage area is inconsistent with the target code in the external memory, the first target address in the external memory and the second target address in the internal program storage area are confirmed, and then the code segment at the first target address is reloaded to the second target address for storage. It only needs to modify the inconsistent code part, and there is no need to reload all the codes. Under the premise of ensuring the reliability of the loaded program, the loading efficiency of the program is greatly improved.
[0066] Figure 4 Schematic diagram of the functional modules of the DSP startup program loading device according to an embodiment of the present invention. Figure 4 As shown, the DSP startup program loading device 20 includes a moving module 21 , a comparing module 22 and a rewriting module 23 .
[0067] The moving module 21 is used to move the target code from the external memory to the internal program storage area of the DSP chip when the DSP chip is powered on;
[0068] A comparison module 22, for comparing the target code moved to the internal program storage area with the target code in the external memory;
[0069] The rewriting module 23 is used to rewrite the inconsistent code segments in the target code of 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 the other codes and data in the external memory except the target code into the DSP chip.
[0070] Optionally, the target code includes migration code and configuration code; the comparison module 22 performs an operation of comparing the target code moved to the internal program storage area with the target code in the external memory, specifically including: comparing the configuration code moved to the internal program storage area with the configuration code in the external memory.
[0071] Optionally, other codes and data include function codes and code data segments; after the rewrite module 23 executes the operation of rewriting inconsistent code segments in the target code of the internal program storage area according to the target code in the external memory, it is also used to: execute migration code to move the function code and code data segments from the external memory to the storage in the DSP chip.
[0072] Optionally, the rewrite module 23 performs the operation of moving the function code and code data segment from the external memory to the storage in the DSP chip, specifically including: moving the function code in the external memory to the DSP external expansion SRAM 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 including: copying the target code from the external memory and obtaining the first storage address of the target code in the external memory; writing the target code to a pre-specified second storage address in the internal program storage area.
[0074] Optionally, the rewrite module 23 performs an operation of rewriting inconsistent code segments in the target code of the internal program storage area according to the target code in the external memory, specifically including: confirming the first target address of the inconsistent code segment in the external memory and the second target address in the internal program storage area; copying the target code segment stored at the first target address in the external memory, and rewriting the target code segment to the second target address in the internal program storage area.
[0075] Optionally, the external memory includes one of a ROM memory and a FLASH memory.
[0076] For other details of the technical solutions implemented by each module in the DSP startup program loading device in the above embodiment, reference may be made to the description of the DSP startup program loading method in the above embodiment, which will not be repeated here.
[0077] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0078] See also Figure 5 , Figure 5 FIG. 1 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 executes the steps of the DSP startup program loading method described in any of the above embodiments.
[0079] The processor 31 may also be referred to as a CPU (Central Processing Unit). The processor 31 may be an integrated circuit chip having signal processing capabilities. The processor 31 may 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, discrete hardware components. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0080] See also Figure 6 , Figure 6 It is a schematic diagram of the structure of the storage medium of the embodiment of the present invention. The storage medium of the embodiment of the present invention stores program instructions 41 that can implement the above-mentioned DSP startup program loading method, wherein the program instructions 41 can be stored in the above-mentioned storage medium in the form of a software product, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or a computer device such as a computer, a server, a mobile phone, and a tablet.
[0081] In the several embodiments provided in the present application, it should be understood that the disclosed computer equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0082] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units. The above is only an implementation method of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields, is also included in the patent protection scope of the present application.
Claims
1. A DSP startup program loading method, characterized in that: It includes: 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; 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, the inconsistent code segments in the target code in the internal program storage area are rewritten according to the target code in the external memory until the target codes are consistent, and then the other codes and data in the external memory except the target code are loaded into the DSP chip.
2. The DSP startup program loading method according to claim 1, characterized in that: The target code includes migration code and configuration code; The step of comparing the target code moved to the internal program storage area with the target code in the external memory includes: The configuration code moved to the internal program storage area is compared with the configuration code in the external memory.
3. The DSP startup program loading method according to claim 2, characterized in that: The other codes and data include function codes and code data segments; After rewriting the inconsistent code segments in the target code of the internal program storage area according to the target code in the external memory, the method further includes: The migration code is executed to move the function code and the code data segment from the external memory to the DSP chip.
4. The DSP startup program loading method according to claim 3, characterized in that: The step of moving the function code and the code data segment from the external memory to the DSP chip comprises: The function code in the external memory is moved to the DSP external SRAM for storage, and the code data segment in the external memory is moved to the internal data storage area of the DSP chip for storage.
5. The DSP startup program loading method according to claim 1, characterized in that: Moving the target code from the external memory to the internal program storage area of the DSP chip includes: Copying the object code from the external memory and obtaining a first storage address of the object code in the external memory; The object code is written into a second storage address pre-designated in the internal program storage area.
6. The DSP startup program loading method according to claim 5, characterized in that: The step of rewriting inconsistent code segments in the target code of the internal program storage area according to the target code in the external memory comprises: Identify a first target address of an inconsistent code segment in the external memory and a second target address in the internal program storage area; The target code segment stored at the first target address in the external memory is copied, and the target code segment is rewritten into the second target address in the internal program storage area.
7. The DSP startup program loading method according to claim 1, characterized in that: The external memory includes one of a ROM memory and a FLASH memory.
8. A DSP startup program loading device, characterized in that: It includes: A moving module, used for moving the target code from the external memory to the internal program storage area of the DSP chip when the DSP chip is powered on; A comparison module, used for comparing the target code moved to the internal program storage area with the target code in the external memory; A rewriting module is used to rewrite the inconsistent code segments in the target code of 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 codes are consistent, and then load other codes and data in the external memory except the target code into the DSP chip.
9. A computer device, characterized in that: The computer device includes a processor and a memory coupled to the processor, wherein program instructions are stored in the memory, and when the program instructions are executed by the processor, the processor executes the steps of the DSP startup program loading method as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: The device stores program instructions capable of implementing the DSP startup program loading method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method for detecting spatial single event upset of space-borne DSP (Digital Signal Processor) chip
CN102354294A
Method for DSP (Digital Signal Processor) self-start secondary demand loading
CN103955376A
DSP FLASH-based safe starting system
CN110750792A
Method for remotely programming and loading FPGA and DSP
CN112099877A
Segmented dual-redundancy boot loading method for DSP
CN112559071A