Program jump implementation method and system

By independently designing monitoring and control programs within the embedded control system and utilizing the DSP boot program to achieve program jumps, the reliability and security issues of traditional upgrade modes are resolved, ensuring reliable program loading and online upgrades. This approach is suitable for storing test data in automated testing equipment.

CN122019013APending Publication Date: 2026-05-12HUBEI SANJIANG AEROSPACE HONGFENG CONTROL
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUBEI SANJIANG AEROSPACE HONGFENG CONTROL
Filing Date
2025-12-19
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In embedded control systems, traditional program upgrade methods reduce the reliability and security of upgrades, cannot guarantee system stability and reliability, and cannot effectively separate system management and control logic.

Method used

The monitoring and control programs are designed independently. The boot program in the monitoring program is guided by the DSP power-on to boot and load the control program, ensuring the reliability of program jumps, including online upgrade function and system initialization.

Benefits of technology

It enables reliable power-on loading of monitoring, control, and navigation programs, improving system reliability and security, and providing test data storage functionality suitable for a wide range of automated testing equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122019013A_ABST
    Figure CN122019013A_ABST
Patent Text Reader

Abstract

The invention provides a program jump implementation method and system. The program jump implementation method comprises the following steps: independently designing a monitoring program and a control program; the DSP is powered on, and the firmware program guides the boot program in the monitoring program to be started; booting an application program in the monitoring program by a boot program in the monitoring program; an application program in the monitoring program completes initialization work of the system and related peripheral chips; waiting for a code matching instruction sent by an upper computer; judging whether an instruction is received; after the instruction is not received and the boot program in the control program is skipped to, the boot program in the control program is guided to the application program in the control program; and the initialization and control functions of the system and related peripheral chips are completed. According to the program jump realization method and system provided by the invention, a program jump function is realized, the reliability of DSP monitoring and program power-on loading operation control is ensured, and the requirement of a remote storage function of test data generated by automatic test equipment can be met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of embedded control system technology, specifically to a method and system for implementing program jumps. Background Technology

[0002] Program jumps are a crucial underlying mechanism in embedded control systems. They not only ensure an orderly transition from system startup and initialization to application execution, but also handle multiple responsibilities including system state switching, functional module scheduling, and reliable recovery. In embedded scenarios with high real-time requirements and complex environments, the stability and security of program jumps directly determine whether the system can smoothly transition from the monitoring state to the operational state, and also affect the implementation of critical processes such as firmware upgrades, fault recovery, and system refactoring. Program jumps not only separate core management functions such as system booting, upgrades, and maintenance from specific control logic, but also effectively improve code maintainability, system modularity, and runtime reliability.

[0003] In the research of embedded control systems, the traditional development model usually involves embedding an upgrade module into the control program. The upgrade process is based on erasing, burning, and verifying the program space of FLASH. This model reduces the reliability and security of the upgrade, increases the redundancy of the control code, and cannot guarantee the reliability and security of the upgrade, which brings inconvenience to the development and management of the system.

[0004] The above problems were solved by designing the upgrade module as a separate monitoring program. However, how to guide the DSP to jump to the control and navigation program through the monitoring program became the key to the research. Therefore, this invention provides a program jump implementation method and system. Summary of the Invention

[0005] To address the shortcomings of existing technologies, the present invention aims to provide a program jump implementation method and system to solve the problems mentioned in the background. The present invention implements a program jump function based on [the technology], ensuring the reliability of the power-on loading and operation of monitoring, control, and navigation programs. It has a wide range of applications and can fulfill the requirement of remote storage of test data generated by automated testing equipment.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a program jump implementation system, wherein the system is used to implement the function of a monitoring program guiding and loading a control program, wherein the monitoring program and the control program are designed independently, the monitoring program is powered on by the DSP, and the firmware program guides the boot program in the monitoring program to start; if the application program in the monitoring program does not receive an instruction to jump to the boot program in the control program, the boot program in the control program guides the application program in the control program.

[0007] Furthermore, the boot program in the monitoring program boots the applications within the monitoring program.

[0008] Furthermore, within 10 seconds of power-on, the application program in the monitoring program waits for the pairing command sent by the host computer.

[0009] Furthermore, if the application program in the control program does not receive an instruction, it jumps to the boot program in the control program. Upon receiving the pairing instruction, it enters the online upgrade process and completes the online upgrade function.

[0010] Furthermore, the application program in the control program completes the initialization and control functions of the system and related peripheral chips.

[0011] Furthermore, the system includes a boot program and an application program, which are combined to generate a .bin program as a monitoring or control program.

[0012] A method for implementing program jumps using the system includes the following steps:

[0013] S1. Design the monitoring program and the control program independently;

[0014] S2 and DSP are powered on, and the firmware program guides the boot program in the monitoring program to start.

[0015] S3. The boot program in the monitoring program boots the application in the monitoring program;

[0016] S4. The application program in the monitoring program completes the initialization of the system and related peripheral chips;

[0017] S5. Within 10 seconds of power-on, the application program in the monitoring program waits for the pairing command sent by the host computer.

[0018] S6. If the application in the monitoring program does not receive an instruction, it will jump to the boot program in the control program. Once the pairing instruction is received, it will enter the online upgrade process and complete the online upgrade function.

[0019] S7. If the application in the monitoring program does not receive an instruction and jumps to the boot program in the control program, the boot program in the control program will then guide the application in the control program.

[0020] S8. The application program in the control program completes the initialization and control functions of the system and related peripheral chips.

[0021] Furthermore, when the program jumps to the execution scheme, the program copy address in the boot.S62 file under the project is modified to the starting address 0x90000400 / 0x90040400 where the monitoring or control application is stored;

[0022] When generating the .bin executable program, modify the address in the fly windows NT command script in the debug directory to the starting address 0x90000000 / 0x90040000, which is the location where the boot program is stored.

[0023] Furthermore, in the program jump execution scheme, if the cumulative power-on time of the DSP exceeds 10 seconds and no code matching instruction is received, a program jump will be performed.

[0024] Furthermore, after the DSP disables software interrupts, it loads the boot program in the control program at FLASH address 0x90040000 from FLASH to the starting address 0x00000000 of the on-chip RAM, and executes a jump instruction to jump to the starting address 0x00000000 of the on-chip RAM to start executing the boot program in the control program. The boot program in the control program then guides the application program in the control program.

[0025] The beneficial effects of this invention are:

[0026] 1. The program's jump implementation method and system adopt a generalized, modular, and standardized design, with a wide range of applications, and can fulfill the need for remote storage of test data generated by automated testing equipment.

[0027] 2. This program jump implementation method and system designs the monitoring program and control program independently. The monitoring program guides and loads the control program, ultimately ensuring the reliable operation of the control program. It implements a program jump function based on [previous concept / mechanism], guaranteeing the reliability of the monitoring, control, and navigation programs upon power-on loading and operation. Attached Figure Description

[0028] Figure 1 This invention provides a top-level execution scheme for a program jump implementation system.

[0029] Figure 2 This is a flowchart illustrating the program jump implementation method of the present invention. Detailed Implementation

[0030] To make the technical means, creative features, objectives and effects of this invention easier to understand, the invention will be further described below in conjunction with specific embodiments.

[0031] Please see Figures 1 to 2This invention provides the following technical solution: a program jump implementation method and system, aiming to solve the above-mentioned problems and realize the program jump function. This program jump implementation system designs the monitoring program and control program independently, with the monitoring program guiding and loading the control program, ultimately ensuring the reliable operation of the control program. It realizes a program jump function based on [previous method / system], ensuring the reliability of the monitoring, control, and navigation programs upon power-on loading and operation.

[0032] The program jump system is used to implement the function of the monitoring program guiding and loading the control program. The monitoring program and the control program are designed independently. The monitoring program starts up through the DSP power-on and the firmware program guides the boot program in the monitoring program to start. If the application program in the monitoring program does not receive an instruction to jump to the boot program in the control program, the boot program in the control program will guide the application program in the control program.

[0033] The above system adopts a generalized, modular, and standardized design, has a wide range of applications, and can fulfill the need for remote storage of test data generated by automated testing equipment.

[0034] The top-level execution scheme, after the system is powered on, first completes the initialization of the system and related peripheral chips, and waits for the pairing command sent by the host computer. If the pairing command is received within 10 seconds, the program enters the online upgrade process. If no upgrade command is received, the program jumps to control.

[0035] The program jump execution scheme, which monitors or controls the boot program, is illustrated using a 1KB size example.

[0036] The program jump execution scheme, and the monitoring program (which includes a boot program and an application program, and the two parts are combined to generate a .bin program as the monitoring program) are illustrated using a 256KB size as an example;

[0037] The program jump execution scheme, the control program (which includes a boot program and an application program, the two parts are combined to generate a .bin program as the control program), is illustrated with an example of a 256KB size;

[0038] The program jump execution scheme requires modifying the program copy address in the boot.S62 file under the project to the starting address 0x90000400 / 0x90040400 where the monitoring or control application is stored.

[0039] To facilitate the generation and burning of executable programs for DSP chips, the program jump execution scheme requires modifying the address in the fly windows NT command script under the debug directory to the starting address 0x90000000 / 0x90040000 when generating the .bin executable program.

[0040] The program jump execution scheme stipulates that if the cumulative power-on time of the DSP exceeds 10 seconds and no code matching instruction is received, a program jump will occur. The DSP disables software interrupts, loads the boot program from the control program at FLASH address 0x90040000 from FLASH to the starting address 0x00000000 of the on-chip RAM, and executes a jump instruction to jump to the starting address 0x00000000 of the on-chip RAM to begin execution of the boot program in the control program. The boot program in the control program then guides the application program in the control program.

[0041] This embodiment has shown and described the basic principles, main features, and advantages of the present invention. It will be apparent to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention.

[0042] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. A program jump implementation system, characterized in that: The system is used to implement the function of guiding and loading the control program by the monitoring program. The monitoring program and the control program are designed independently. The monitoring program is powered on by the DSP, and the firmware program guides the boot program in the monitoring program to start. If the application program in the monitoring program does not receive an instruction, it jumps to the boot program in the control program, and then the boot program in the control program guides the application program in the control program.

2. The program jump implementation system according to claim 1, characterized in that: The application in the monitoring program is booted by the boot program in the monitoring program.

3. The program jump implementation system according to claim 2, characterized in that: Within 10 seconds of power-on, the application program in the monitoring program waits for the pairing command sent by the host computer.

4. The program jump implementation system according to claim 1, characterized in that: If the application program in the control program does not receive an instruction, it will jump to the boot program in the control program. Once the pairing instruction is received, it will enter the online upgrade process and complete the online upgrade function.

5. A program jump implementation system according to claim 2, characterized in that: The application program in the control program completes the initialization and control functions of the system and related peripheral chips.

6. The program jump implementation system according to claim 1, characterized in that: The system includes a boot program and an application program, which are combined to generate a .bin program as a monitoring or control program.

7. A method for implementing program jumps using the system as described in claim 1, characterized in that: Includes the following steps: S1. Design the monitoring program and the control program independently; S2 and DSP are powered on, and the firmware program guides the boot program in the monitoring program to start. S3. The boot program in the monitoring program boots the application in the monitoring program; S4. The application program in the monitoring program completes the initialization of the system and related peripheral chips; S5. Within 10 seconds of power-on, the application program in the monitoring program waits for the pairing command sent by the host computer. S6. If the application in the monitoring program does not receive an instruction, it will jump to the boot program in the control program. Once the pairing instruction is received, it will enter the online upgrade process and complete the online upgrade function. S7. If the application in the monitoring program does not receive an instruction and jumps to the boot program in the control program, the boot program in the control program will then guide the application in the control program. S8. The application program in the control program completes the initialization and control functions of the system and related peripheral chips.

8. The program jump implementation method according to claim 7, characterized in that: When the program jumps to the execution scheme, modify the program copy address in the boot.S62 file under the project to the starting address of the monitoring or control application, 0x90000400 / 0x90040400. When generating the .bin executable program, modify the address in the fly windows NT command script in the debug directory to the starting address 0x90000000 / 0x90040000, which is the location where the boot program is stored.

9. The program jump implementation method according to claim 7, characterized in that: In the program jump execution scheme, if the cumulative power-on time of the DSP exceeds 10 seconds and no code matching instruction is received, a program jump will be performed.

10. The program jump implementation method according to claim 9, characterized in that: After the DSP disables software interrupts, it loads the boot program from the control program at FLASH address 0x90040000 into the starting address 0x00000000 of the on-chip RAM. Then, it executes a jump instruction to jump to the starting address 0x00000000 of the on-chip RAM to start executing the boot program in the control program. The boot program in the control program then guides the application program in the control program.