Multi-level program guide jump method and device based on DSP off-chip FLASH

By connecting the DSP processor and off-chip FLASH memory, the BootLoader program is used to realize the automatic boot jump of multi-level programs, which solves the problem of insufficient on-chip storage space of the DSP processor and realizes the loading of multiple programs under a single power-up operation. and execution reduces hardware transformation costs and improves the convenience of program debugging.

CN118916080APending Publication Date: 2024-11-08SHANGHAI AEROSPACE COMP TECH INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410971640.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

Existing DSP processors cannot realize multi-level program loading and boot jumping under a single power-up operation, mainly due to insufficient on-chip storage space, and cannot save data from multiple programs at the same time.

Method used

By connecting the off-chip FLASH memory, the EMIF interface is used to realize multi-level program copying and data jumping, and the BootLoader program is used to automatically boot and jump between the DSP processor and the FLASH memory, ensuring that the program does not need to be reloaded when powering up and down multiple times.

Benefits of technology

It realizes the smooth loading and execution of multiple programs under a single power-up operation, reduces the hardware transformation cost, is suitable for application scenarios where power-off is not arbitrary, and improves the convenience of program debugging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118916080A_ABST
    Figure CN118916080A_ABST
Patent Text Reader

Abstract

The invention provides a multi-level program guide jump method and device based on a DSP off-chip FLASH, and the method comprises the following steps: carrying out the power-on reset of a DSP processor, executing a BootLoader program for the first time, copying the content of a first-level program in a FLASH memory into the DSP processor, and after executing a vecs1 program in the DSP processor, automatically jumping to a bootload program of the first-level program in the FLASH memory, and executing the bootload program; the method comprises the following steps of: copying a code part of a first-level program in a FLASH memory into a DSP (Digital Signal Processor), executing a second BootLoader program, automatically skipping to the code part of the first-level program in the DSP and executing, copying a vecs2 program and a code part of a second-level program in the FLASH memory into the DSP, executing a third BootLoader program, and automatically skipping to and executing the code part of the first-level program in the DSP; and in the DSP processor, the primary program automatically jumps to the secondary program, and the vecs2 program and the code part of the secondary program are executed in sequence. According to the invention, the DSP processor can realize the automatic bootstrap jump function of the multi-level program under the condition of single power-on and power-off.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of DSP application, and in particular relates to a multi-level program boot jump method and device based on DSP off-chip FLASH. Background Art

[0002] In the process of project development and application based on DSP technology, hardware development and software design are often participated by multiple groups of designers. There are confidentiality restrictions between different hardware development modules and software program parts. For example, Party A has designed a primary program for the DSP processor, and Party B has also designed a secondary program for the DSP processor. Since the TMS320C6713 DSP processor has only 256KB of SRAM storage space on the chip, but no on-chip FLASH, it is impossible to verify multiple programs in one power-on and power-off operation by relying solely on the DSP processor. Therefore, for DSP processors with only on-chip SRAM storage space, a solution is proposed to connect the DSP processor to the off-chip FLASH memory to realize the automatic boot jump function of the primary program and the secondary program in a single power-on and power-off operation. Summary of the invention

[0003] The present invention provides a multi-level program boot jump method and device based on DSP off-chip FLASH, so as to solve the technical problem that in the program development process of the existing DSP processor, the loading and boot jump of the multi-level program cannot be realized under a single power-on and power-off operation.

[0004] To solve the above problems, the technical solution of the present invention is: a multi-level program boot jump method based on DSP off-chip FLASH, comprising the following steps:

[0005] S1: The DSP processor is powered on and reset, triggering a RESET interrupt. The RESET interrupt points to the BootLoader code solidified in the off-chip FLASH memory, executes the first BootLoader program boot jump, copies the vecs1 program content of the first-level program in the off-chip FLASH memory to the DSP processor, and executes the vecs1 program in the DSP processor. After the vecs1 program is executed, the vecs1 program of the DSP processor automatically jumps to the boot_load program of the first-level program in the off-chip FLASH memory, and executes the boot_load program.

[0006] S2: During the execution of the boot_load program, the code portion of the first-level program in the off-chip FLASH memory is copied to the DSP processor, and after the execution of the boot_load program in the off-chip FLASH memory is completed, the second BootLoader program boot jump is executed, and the boot_load program in the off-chip FLASH memory automatically jumps to the code portion of the first-level program in the DSP processor, and executes the code portion of the first-level program;

[0007] S3: After the code portion of the first-level program is executed, the vecs2 program and the code portion of the second-level program in the off-chip FLASH memory are copied to the DSP processor, and the third BootLoader program boot jump is executed. In the DSP processor, the first-level program automatically jumps to the second-level program and executes the vecs2 program and the code portion of the second-level program in sequence.

[0008] Preferably, before executing the power-on reset of the DSP processor in S1, the following steps are further included: a first-level program with a size exceeding 1KB and in hex format is fixedly written into the off-chip FLASH memory through a 1553B communication method, wherein the first-level program content includes a vecs1 program, a boot_load program and a code part.

[0009] Preferably, before executing the third BootLoader program boot jump in S3, the following steps are further included: judging whether the secondary program has been bound in the external FLASH memory; if the secondary program has not been bound in the external FLASH memory, binding and writing the secondary program in hex format into the external FLASH memory through the 1553B communication method; if the secondary program has been bound in the external FLASH memory, directly calling the existing secondary program in the external FLASH memory when executing the third BootLoader program boot jump; the secondary program content includes the vecs2 program and the code part.

[0010] Preferably, when executing the code parts of the primary program and the secondary program in S2 and S3, the following steps are further included: after the primary program in the off-chip FLASH memory completes executing its boot_load program, the second BootLoader program is used to guide the jump, and the boot_load program in the off-chip FLASH memory directly jumps to the c_int00 entry of the primary program code part in the DSP processor, and the DSP processor further calls the main function to execute the code part of the primary program;

[0011] After the secondary program in the DSP processor completes executing its vecs2 program, it is guided by the third BootLoader program to jump directly to the c_int00 entry of the secondary program code part, and the DSP processor further calls the main function to execute the code part of the secondary program.

[0012] Based on the same concept, the present invention also provides a multi-level program boot jump device based on DSP off-chip FLASH, which executes any one of the multi-level program boot jump methods based on DSP off-chip FLASH described above, including:

[0013] DSP processor, the DSP processor includes a TMS320C6713B chip, which is used to execute the primary program and the secondary program;

[0014] An off-chip FLASH memory, wherein the off-chip FLASH memory includes an S29AL008J chip, and is used to implement power-off storage of the primary program and the secondary program;

[0015] The DSP processor is provided with an EMIF interface, and the EMIF interface is used to connect the DSP processor with the off-chip FLASH memory to achieve content copying and data jump between the primary program and the secondary program.

[0016] Preferably, the address space range of the off-chip FLASH memory is configured as 0x9000_0000 to 0x9003_FFFF;

[0017] In the FLASH memory, the address space 0x9000_0000~0x9000_01FF is used to store the vecs1 program of the first-level program, the address space 0x9000_0200~0x9000_03FF is used to store the boot_load program of the first-level program, the address space 0x9000_0400~0x9000_FFFF is used to store the code part of the first-level program, the address space 0x9001_0000~0x9001_03FF is used to store the vecs2 program of the second-level program, and the address space 0x9001_0400~0x9003_FFFF is used to store the code part of the second-level program.

[0018] Preferably, the DSP processor is provided with an on-chip SRAM memory, and the address space range of the SRAM memory is configured as 0x0000_0000 to 0x0003_FFFF;

[0019] In the on-chip SRAM memory of the DSP processor, the address space 0x0000_0000~0x0000_01FF is used to store the vecs1 program of the first-level program copied from the FLASH memory, the address space 0x0000_0400~0x0000_FFFF is used to store the code portion of the first-level program copied from the FLASH memory, the address space 0x0001_0000~0x0001_03FF is used to store the vecs2 program of the second-level program copied from the FLASH memory, and the address space 0x0001_0400~0x0003_FFFF is used to store the code portion of the second-level program copied from the FLASH memory.

[0020] Preferably, the multi-level program boot jump device based on DSP off-chip FLASH is also provided with a reset module, the reset module includes an SM706T reset chip, the reset module is respectively connected to the EMIF interface and the RESET reset port of the FLASH memory, and is used to output a reset signal to the DSP processor and the FLASH memory.

[0021] Preferably, the EA port of the EMIF interface is connected to the A port of the external FLASH memory, the ED port of the EMIF interface is connected to the D port of the external FLASH memory, the CE1 port of the EMIF interface is connected to the CE port of the external FLASH memory, the AOE port of the EMIF interface is connected to the OE port of the external FLASH memory, and the AWE port of the EMIF interface is connected to the WE port of the external FLASH memory; the DSP processor Bootmode configuration pin HD_GP_ASP1[3] is pulled up to VDD3.3V, and HD_GP_ASP1[4] is pulled down to GND; the external FLASH memory pin BYTE is pulled up to VDD3.3V.

[0022] Preferably, the EMIF interface enables starting the primary program in the off-chip FLASH memory through a 16-bit asynchronous ROM boot mode of the CE1 storage space.

[0023] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:

[0024] In a multi-level program boot jump method and device based on DSP off-chip FLASH provided by the present invention, the existing TMS320C6713 model DSP processor has an on-chip memory which is an SRAM static random access memory. Only when the power is kept on, the data stored in the SRAM memory can be kept constant. When the program is loaded and run by multiple power-on and power-off, the function of simultaneously saving the data of multiple programs cannot be realized. Therefore, a FLASH memory is externally connected to the outside of the DSP processor through an EMIF interface. The FLASH memory is a non-volatile memory and can still save data when the power is disconnected. The DSP processor is connected to the FLASH memory, and multiple BootLoader program boot jump modes are set to realize the copying and sequential execution functions of the first-level program and the second-level program in the DSP processor and the FLASH memory. In the debugging process of multiple programs, there is no need to re-power on and off the power, and there is no need to disassemble and upgrade the hardware, which greatly reduces the hardware transformation cost, so that the present invention has better engineering significance in comprehensive application scenarios where power cannot be arbitrarily added or removed. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 The present invention provides an address space allocation diagram of three BootLoader boot jumps of an off-chip FLASH program based on DSP6713;

[0026] Figure 2 A design flow chart of a multi-level program boot jump method based on DSP off-chip FLASH provided by the present invention;

[0027] Figure 3 The present invention provides a schematic diagram of the hardware connection between the DSP6713 and the off-chip FLASH. DETAILED DESCRIPTION

[0028] The following is a further detailed description of a multi-level program boot jump method and device based on DSP off-chip FLASH proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become more apparent from the following description and claims.

[0029] First embodiment

[0030] See also Figure 1 to Figure 2 This embodiment provides a multi-level program boot jump method based on DSP off-chip FLASH, including the following steps:

[0031] S1: Write the first-level program into the off-chip FLASH memory connected to the DSP processor, power on and reset the DSP processor, and output reset signals to the DSP processor and FLASH memory respectively through the reset module, triggering the RESET interrupt. The RESET interrupt points to the BootLoader code solidified in the off-chip FLASH memory, and executes the first BootLoader program boot jump. Using the data connection function of the EMIF interface, the vecs1 program content of the first-level program in the off-chip FLASH memory is automatically copied to the corresponding storage location in the DSP processor, and the vecs1 program is executed in the DSP processor. After the vecs1 program is executed, the vecs1 program of the DSP processor automatically jumps to the boot_load program of the first-level program in the off-chip FLASH memory, and executes the boot_load program.

[0032] S2: During the execution of the boot_load program, the code portion of the first-level program in the off-chip FLASH memory is copied to the corresponding storage location in the DSP processor. After the boot_load program in the off-chip FLASH memory is executed, the second BootLoader program boot jump is executed, and the boot_load program in the off-chip FLASH memory is guided to jump to the code portion of the first-level program in the DSP processor and execute it. Specifically, the second BootLoader program is guided to jump to the c_int00 entry of the first-level program code portion, and the main function is called to execute the code portion of the first-level program.

[0033] Among them, the first-level program cmd file is as follows:

[0034] MEMORY

[0035] {

[0036] vecs1:o=00000000h l=00000200h

[0037] boot_load:o=00000200h l=00000200h

[0038] RAM:o=0000400h l=0000FC00h

[0039] }

[0040] SECTIONS

[0041] {

[0042] vecs1

[0043] ".boot_load">boot_load

[0044] .cinit>RAM

[0045] .text>RAM

[0046] .const>RAM

[0047] .data>RAM

[0048] .sysmem>RAM

[0049] .tables>RAM

[0050] .cio>RAM

[0051] }

[0052] Among them, the vectors of the first-level program are implemented based on assembly language code as follows: .sect "vectors"

[0053] RESET_RST:

[0054] mvkl.S2_boot,B0

[0055] mvkh.S2_boot,B0

[0056] B.S2B0

[0057] Among them, the .boot_load of the first-level program is implemented based on the assembly language code as follows: .sect".boot_load"

[0058] .ref_c_int00

[0059] .global_bootBOOT_SIZE.equ 0xFC00

[0060] _boot:

[0061] stwB4,*A4

[0062] mvkl 0x00000400,A4

[0063] ||mvkl 0x90000400,B4

[0064] mvkh 0x00000400,A4

[0065] ||mvkh 0x90000400,B4

[0066] zero A1

[0067] _boot_loop:

[0068] ldb*B4++,B5

[0069] mvkl BOOT_SIZE,B6

[0070] add1,A1,A1

[0071] ||mvkh BOOT_SIZE,B6

[0072] cmplt A1,B6,B0

[0073] NOP

[0074] stb B5,*A4++

[0075] [B0]B_boot_loop

[0076] mvkl.s2_c_int00,B0

[0077] mvkh.s2_c_int00,B0

[0078] B.s2 B0

[0079] NOP 5

[0080] S3: After the code part of the first-level program is executed, the vecs2 program and the code part of the second-level program in the off-chip FLASH memory are copied to the corresponding storage location in the DSP processor, and the third BootLoader program boot jump is executed. In the DSP processor, the first-level program automatically guides the jump to the second-level program and executes the vecs2 program and the code part of the second-level program in sequence. Specifically, through the third BootLoader program boot jump, after the vecs2 program is executed, it jumps to the c_int00 entry of the second-level program code part, and calls the main function to execute the code part of the second-level program.

[0081] Among them, the secondary program cmd file is as follows:

[0082] MEMORY

[0083] {

[0084] vecs2:o=00010000h l=00000400h

[0085] RAM:o=00010400h l=0002FC00h

[0086] }

[0087] SECTIONS

[0088] {

[0089] vecs2

[0090] .cinit>RAM

[0091] .text>RAM

[0092] .const>RAM

[0093] .data>RAM

[0094] .sysmem>RAM

[0095] .tables>RAM

[0096] .cio>RAM

[0097] }

[0098] Among them, after the secondary program is copied from the FLASH memory to the DSP processor, the C language / assembly language code of the primary program jumping to the secondary program execution process through the third BootLoader program is as follows:

[0099] void Code_Execute(void)

[0100] {

[0101] unsigned int i = 0;

[0102] unsigned int*Source_addr1,*Dest_addr1;

[0103] unsigned int*addrx; / / The third Bootloader jumps to the address pointer of the secondary program Source_addr1 = (unsigned int*) (0x9000_0000+0x0001_0000); / / Source move first address

[0104] Dest_addr1 = (unsigned int*) (0x0001_0000); / / destination first address

[0105] for(i=0;i<0x30000;i++)

[0106] {

[0107] *Dest_addr1++=*Source_addr1++; / / The length should be larger than the secondary program size

[0108] }

[0109] addrx=(unsigned int*)0x10000;

[0110] code_zx(*addrx);

[0111] }

[0112] Among them, the third BootLoader boot jump is implemented based on the assembly language code as follows:

[0113] _code_zx:

[0114] mvkl.s2_addrx,b2

[0115] mvkh.s2_addrx,b2

[0116] ldw.d2*b2,b0

[0117] B.s2 b0

[0118] Preferably, before executing the DSP processor power-on reset step in S1, the following step is further included: a first-level program with a size exceeding 1KB and in hex format is fixedly written into an off-chip FLASH memory through a 1553B communication method, wherein the first-level program content includes a vecs1 program, a boot_load program and a code part.

[0119] Preferably, before executing the third BootLoader program boot jump step in S3, the following step is further included: after the execution of the first-level program, the DSP processor determines whether the second-level program has been bound in the off-chip FLASH memory; if the second-level program has not been bound in the off-chip FLASH memory, the second-level program in hex format is first bound and written into the off-chip FLASH memory through the 1553B communication method; if the second-level program has been bound in the off-chip FLASH memory, when executing the third BootLoader program boot jump, the existing second-level program in the off-chip FLASH memory is directly called, wherein the content of the second-level program only includes the vecs2 program and the code part.

[0120] The present embodiment provides a multi-level program boot jump method based on DSP off-chip FLASH. With the help of the multi-program storage function of the off-chip FLASH memory, the BootLoader program is further used in the DSP processor to automatically realize the boot jump from the first-level program to the second-level program, so that the system can smoothly load and execute multiple programs under a single power-on and power-off operation. Moreover, based on the original hardware foundation of DSP6713, during the three BootLoader boot jump processes, there is no need to modify the hardware structure of DSP6713, which greatly improves the convenience of program debugging, making the present invention have better engineering significance in comprehensive application scenarios where power cannot be arbitrarily added or removed.

[0121] Second embodiment

[0122] See also Figure 1-Figure 3 Based on the same concept, this embodiment provides a multi-level program boot jump device based on DSP off-chip FLASH, which is used to execute a multi-level program boot jump method based on DSP off-chip FLASH. The device includes a DSP processor, a FLASH memory and an EMIF interface.

[0123] The DSP processor includes but is not limited to the TMS320C6713B chip, wherein the TMS320C6713B chip is a high-performance floating-point digital signal processor used to execute the code portion of the primary program and the secondary program. The TMS320C6713B chip has a 256KB on-chip SRAM static random access memory, which can save internally stored data while remaining powered on.

[0124] The off-chip FLASH memory includes but is not limited to the S29AL008J chip, wherein the S29AL008J chip has a 512K×16-bit storage space, and has the characteristics of high-performance fast random access and high bandwidth. It is a non-volatile random access memory that can be used to store the data content of the primary program and the secondary program during power failure.

[0125] The DSP processor is provided with an EMIF interface, which is used to realize the data connectivity function between the DSP processor and the off-chip FLASH memory. Specifically, the content copying and data jump function between the first program and the second program between the DSP processor and the off-chip FLASH memory can be realized through the EMIF interface. Among them, the DSP processor can use the 16-bit asynchronous ROMboot mode of the CE1 storage space of the EMIF interface to enable the startup of the first-level program in the off-chip FLASH memory.

[0126] In the hardware design, the DSP processor is connected to the off-chip FLASH memory through the EMIF interface. The EA (20:2) port in the EMIF interface is connected to the A (18:0) port in the off-chip FLASH memory interface, the ED (15:0) port in the EMIF interface is connected to the D (15:0) port in the off-chip FLASH memory interface, the CE1 port in the EMIF interface is connected to the / CE port in the off-chip FLASH memory interface, and the AOE and AWE in the EMIF interface are connected to the / OE port and / WE port in the off-chip FLASH memory interface respectively.

[0127] Furthermore, the multi-level program boot jump device based on DSP off-chip FLASH provided in this embodiment is also provided with a reset module, the reset module includes but is not limited to the SM706T reset chip, the reset module is respectively connected to the / RESET reset port of the EMIF interface and the / RESET reset port of the FLASH memory, and is used to output a reset signal to the DSP processor and the FLASH memory. In addition, the Bootmode boot configuration pin HD_GP_ASP1[3] of the DSP processor is configured to be pulled up to VDD3.3V, HD_GP_ASP1[4] is pulled down to GND, and the FLASH memory pin BYTE is pulled up to VDD3.3V, which is used to adapt the data access and program loading logic relationship between the DSP processor and the FLASH memory. Through the above hardware configuration, when the DSP processor is powered on or reset, the first-level program can be started from the off-chip FLASH memory through the 16-bit asynchronous ROM boot mode of the CE1 storage space of the EMIF interface.

[0128] Specifically, the address space range in the FLASH memory is configured as 0x9000_0000~0x9003_FFFF, and the address space range of the SRAM memory in the DSP processor chip is configured as 0x0000_0000~0x0003_FFFF. In the boot jump process of the off-chip FLASH first-level program based on DSP6713, the first-level program is fixedly written into the 0x9000_0000~0x9000_FFFF address space in the FLASH memory that has a mapping relationship with the DSP processor, wherein the address space 0x9000_0000~0x9000_01FF is used to store the vecs1 program of the first-level program, the address space 0x9000_0200~0x9000_03FF is used to store the boot_load program of the first-level program, and the address space 0x9000_0400~0x9000_FFFF is used to store the code part of the first-level program.

[0129] Through the first BootLoader boot jump, the vecs1 program of the first-level program in the FLASH memory is copied to the 0x0000_0000~0x0000_01FF address space in the SRAM memory. Through the second BootLoader boot jump, the code part of the first-level program in the FLASH memory is copied to the 0x0000_0400~0x0000_FFFF address space in the SRAM memory.

[0130] During the boot jump process of the off-chip FLASH secondary program based on DSP6713, the secondary program is fixedly written into the address space of 0x9001_0000~0x9003_FFFF in the FLASH memory, which has a mapping relationship with the DSP processor. The address space 0x9001_0000~0x9001_03FF is used to store the vecs2 program of the secondary program, and the address space 0x9001_0400~0x9003_FFFF is used to store the code part of the secondary program.

[0131] Through the third BootLoader boot jump, the vecs2 program of the secondary program in the FLASH memory is copied to the 0x0001_0000~0x0001_03FF address space in the SRAM memory, and the code part of the secondary program in the FLASH memory is copied to the 0x0001_0400~0x0003_FFFF address space in the SRAM memory.

[0132] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the protection scope of the present invention.

Claims

1. A multi-level program boot jump method based on DSP off-chip FLASH, characterized in that: The steps include: S1: The DSP processor is powered on and reset, triggering a RESET interrupt. The RESET interrupt points to the BootLoader code solidified in the off-chip FLASH memory, executes the first BootLoader program boot jump, copies the vecs1 program content of the first-level program in the off-chip FLASH memory to the DSP processor, and executes the vecs1 program in the DSP processor. After the vecs1 program is executed, the vecs1 program of the DSP processor automatically jumps to the boot_load program of the first-level program in the off-chip FLASH memory, and executes the boot_load program. S2: During the execution of the boot_load program, the code portion of the first-level program in the off-chip FLASH memory is copied to the DSP processor, and after the execution of the boot_load program in the off-chip FLASH memory is completed, the second BootLoader program boot jump is executed, and the boot_load program in the off-chip FLASH memory automatically jumps to the code portion of the first-level program in the DSP processor, and executes the code portion of the first-level program; S3: After the code portion of the first-level program is executed, the vecs2 program and the code portion of the second-level program in the off-chip FLASH memory are copied to the DSP processor, and the third BootLoader program boot jump is executed. In the DSP processor, the first-level program automatically jumps to the second-level program and executes the vecs2 program and the code portion of the second-level program in sequence.

2. The multi-level program boot jump method based on DSP off-chip FLASH as claimed in claim 1 is characterized in that: Before the DSP processor is powered on and reset in S1, the following steps are further included: A first-level program with a size exceeding 1KB and in hex format is fixedly written into the off-chip FLASH memory through a 1553B communication method, wherein the first-level program content includes a vecs1 program, a boot_load program and a code part.

3. The multi-level program boot jump method based on DSP off-chip FLASH as claimed in claim 1 is characterized in that: Before executing the third BootLoader program boot jump in S3, the following steps are further included: Determine whether the secondary program has been bound in the external FLASH memory. If the secondary program has not been bound in the external FLASH memory, write the secondary program in hex format into the external FLASH memory through the 1553B communication method. If the secondary program has been bound in the external FLASH memory, directly call the existing secondary program in the external FLASH memory when executing the third BootLoader program boot jump. The secondary program content includes the vecs2 program and the code part.

4. The multi-level program boot jump method based on DSP off-chip FLASH as claimed in claim 1 is characterized in that: When executing the code parts of the primary program and the secondary program in S2 and S3, the following steps are further included: After the first-level program in the off-chip FLASH memory completes the execution of its boot_load program, the second BootLoader program guides the jump, and the boot_load program in the off-chip FLASH memory directly jumps to the c_int00 entry of the first-level program code part in the DSP processor, and the DSP processor further calls the main function to execute the code part of the first-level program; After the secondary program in the DSP processor completes executing its vecs2 program, it is guided by the third BootLoader program to jump directly to the c_int00 entry of the secondary program code part, and the DSP processor further calls the main function to execute the code part of the secondary program.

5. A multi-level program boot jump device based on DSP off-chip FLASH, characterized in that: The method for executing a multi-level program boot jump method based on DSP off-chip FLASH as described in any one of claims 1 to 4 comprises: DSP processor, the DSP processor includes a TMS320C6713B chip, which is used to execute the primary program and the secondary program; An off-chip FLASH memory, wherein the off-chip FLASH memory includes an S29AL008J chip, and is used to implement power-off storage of the primary program and the secondary program; The DSP processor is provided with an EMIF interface, and the EMIF interface is used to connect the DSP processor with the off-chip FLASH memory to achieve content copying and data jump between the primary program and the secondary program.

6. The multi-level program boot jump device based on DSP off-chip FLASH as claimed in claim 5, characterized in that: The address space range of the off-chip FLASH memory is configured as 0x9000_0000 to 0x9003_FFFF; In the FLASH memory, the address space 0x9000_0000~0x9000_01FF is used to store the vecs1 program of the first-level program, the address space 0x9000_0200~0x9000_03FF is used to store the boot_load program of the first-level program, the address space 0x9000_0400~0x9000_FFFF is used to store the code part of the first-level program, the address space 0x9001_0000~0x9001_03FF is used to store the vecs2 program of the second-level program, and the address space 0x9001_0400~0x9003_FFFF is used to store the code part of the second-level program.

7. The multi-level program boot jump device based on DSP off-chip FLASH as claimed in claim 5, characterized in that: The DSP processor is provided with an on-chip SRAM memory, and the address space range of the SRAM memory is configured as 0x0000_0000 to 0x0003_FFFF; In the on-chip SRAM memory of the DSP processor, the address space 0x0000_0000~0x0000_01FF is used to store the vecs1 program of the first-level program copied from the FLASH memory, the address space 0x0000_0400~0x0000_FFFF is used to store the code portion of the first-level program copied from the FLASH memory, the address space 0x0001_0000~0x0001_03FF is used to store the vecs2 program of the second-level program copied from the FLASH memory, and the address space 0x0001_0400~0x0003_FFFF is used to store the code portion of the second-level program copied from the FLASH memory.

8. The multi-level program boot jump device based on DSP off-chip FLASH as claimed in claim 5, characterized in that: A reset module is also provided, the reset module includes an SM706T reset chip, the reset module is respectively connected to the EMIF interface and the RESET reset port of the FLASH memory, and is used to output a reset signal to the DSP processor and the FLASH memory.

9. The multi-level program boot jump device based on DSP off-chip FLASH as claimed in claim 5, characterized in that: The EA port of the EMIF interface is connected to the A port of the external FLASH memory, the ED port of the EMIF interface is connected to the D port of the external FLASH memory, the CE1 port of the EMIF interface is connected to the CE port of the external FLASH memory, the AOE port of the EMIF interface is connected to the OE port of the external FLASH memory, and the AWE port of the EMIF interface is connected to the WE port of the external FLASH memory; the DSP processor Bootmode boot configuration pin HD_GP_ASP1[3] is pulled up to VDD3.3V, and HD_GP_ASP1[4] is pulled down to GND; the external FLASH memory pin BYTE is pulled up to VDD3.3V.

10. The multi-level program boot jump device based on DSP off-chip FLASH as claimed in claim 5, characterized in that: The EMIF interface enables starting the primary program in the off-chip FLASH memory through the 16-bit asynchronous ROM boot mode of the CE1 storage space.