CN-122019013-A - Program jump implementation method and system
Abstract
The invention provides a program jump realizing method and a program jump realizing system, comprising the following steps of independently designing a monitoring program and a control program, powering on a DSP, guiding boot programs in the monitoring program to start by the boot programs in the monitoring program, guiding application programs in the monitoring program by the boot programs in the monitoring program, completing initialization work of a system and related peripheral chips by the application programs in the monitoring program, waiting for a code matching instruction sent by an upper computer, judging whether the instruction is received or not, guiding the boot programs in the control program to the application programs in the control program after the instruction is not received to jump to the boot programs in the control program, and completing initialization and control functions of the system and the related peripheral chips. The invention provides a program jump realization method and a program jump realization system, which realize a program jump function, ensure the reliability of the power-on loading operation of a DSP monitoring and control program, and can fulfill the requirement of remote storage function of test data generated by automatic test equipment.
Inventors
- JU JUNMEI
Assignees
- 湖北三江航天红峰控制有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251219
Claims (10)
- 1. A program jump realizing system is characterized in that the system is used for realizing the requirements of a monitoring program on the guiding and loading functions of a control program, the monitoring program and the control program are independently designed, the monitoring program is electrified through a DSP, a boot program in the monitoring program is guided by a firmware program to be started, and an application program in the monitoring program is guided to the application program in the control program by the boot program in the control program after the application program in the monitoring program does not receive an instruction to jump to the boot program in the control program.
- 2. A program jump implementing system according to claim 1, wherein the application program in the monitor program is booted by a boot program in the monitor program.
- 3. The program jump implementing system according to claim 2, wherein the application program in the monitoring program waits for the code matching instruction sent by the upper computer within 10s of power-on.
- 4. The program jump realizing system according to claim 1, wherein the application program in the control program jumps to the boot program in the control program if not receiving the instruction, receives the code matching instruction, enters the online upgrading process, and completes the online upgrading function.
- 5. The system for implementing program jump according to claim 2, wherein the initialization and control functions of the system and the related peripheral chips are performed by the application program in the control program.
- 6. The system for implementing program jump according to claim 1, wherein said system comprises a boot program and an application program, the two parts being synthesized.
- 7. A program jump implementing method using the system of claim 1, comprising the steps of: s1, independently designing a monitoring program and a control program; S2, powering on the DSP, and leading a boot program in the monitoring program to start by the firmware program; S3, guiding an application program in the monitoring program by a boot program in the monitoring program; s4, completing initialization work of the system and related peripheral chips by an application program in the monitoring program; S5, an application program in the monitoring program waits for a code matching instruction sent by the upper computer within 10S of power-on; S6, if an application program in the monitoring program does not receive the instruction, jumping to a boot program in the control program, receiving the code matching instruction, entering an online upgrading process, and completing an online upgrading function; S7, after the application program in the monitoring program does not receive the instruction and jumps to the boot program in the control program, the boot program in the control program guides the application program in the control program; s8, the initialization and control functions of the system and related peripheral chips are completed by the application program in the control program.
- 8. The method of claim 7, wherein when the program jumps to the execution scheme, modifying the address of the program copy in the boot S62 file under the project to the starting address 0x90000400/0x90040400 for the monitoring or control application program storage; When the bin executable program is generated, the address in the fly windows NT command script under the debug directory is modified into the starting address 0x90000000/0x90040000 stored in the monitoring or control boot program.
- 9. The method of claim 7, wherein in the program jump execution scheme, if the power-on accumulation time of the DSP exceeds 10s and no code matching instruction is received, the program jump is performed.
- 10. The method of claim 9, wherein after the DSP shuts down the software interrupt, the DSP loads the boot program in the control program in the FLASH address 0x90040000 from the FLASH to the start address 0x00000000 of the on-chip RAM, and executes the jump instruction to jump to the start address 0x00000000 of the on-chip RAM to start executing the boot program in the control program, and the boot program in the control program is guided to the application program in the control program.
Description
Program jump implementation method and system Technical Field The invention relates to the technical field of embedded control system professions, in particular to a program jump realization method and a program jump realization system. Background Program jump is a crucial underlying mechanism in an embedded control system, which not only realizes ordered transition from start initialization to application execution, but also bears multiple responsibilities such as system state switching, function module scheduling and reliable recovery. In an embedded scene with high real-time requirements and complex environment, the stability and safety of program jump directly determine whether the system can smoothly enter a working state from a monitoring state, and the realization of key processes such as firmware upgrading, fault recovery, system reconstruction and the like is also influenced. The system not only can separate the core management functions such as system guiding, upgrading and maintaining from specific control logic, but also can effectively improve the maintainability of codes, the modularization degree of the system and the reliability during operation. In the research of the embedded control system, under the traditional development mode, an upgrade module is generally embedded in a control program, and the upgrade process performs operations of erasing, programming and checking based on a program space of FLASH, in the mode, the upgrading reliability and safety are reduced, the redundancy of control codes is increased, the upgrading reliability and safety cannot be ensured, and inconvenience is brought to the development and management of the system. The upgrade module is designed as a monitoring program independently, but how to guide the DSP to jump to the control and navigation program through the monitoring program becomes the key of the problem study, so the invention provides a program jump realization method and a program jump realization system. Disclosure of Invention Aiming at the defects existing in the prior art, the invention aims to provide a program jump realization method and a program jump realization system, so as to solve the problems in the background art, realize the program jump function based on the program jump function, ensure the reliability of the power-on loading operation of the monitoring, control and navigation program, have wide application range and can fulfill the requirement of remote storage function of test data generated by automatic test equipment. In order to achieve the above purpose, the invention is realized by a program jump realizing system, wherein the system is used for realizing the requirements of a monitoring program on the guiding and loading functions of a control program, the monitoring program and the control program are independently designed, the monitoring program is electrified through a DSP, a boot program in the monitoring program is guided by a firmware program to be started, and an application program in the monitoring program is guided to the application program in the control program by the boot program in the control program after the application program in the monitoring program does not receive an instruction to jump to the boot program in the control program. Further, the boot program in the monitor program guides the application program in the monitor program. Further, an application program in the monitoring program waits for a code matching instruction sent by the upper computer within 10s of power-on. Further, if the application program in the control program does not receive the instruction, the control program jumps to the boot program in the control program, receives the code matching instruction, enters an online upgrading process, and completes the online upgrading function. Further, the initialization and control functions of the system and related peripheral chips are completed by the application program in the control program. Furthermore, the system comprises a boot program and an application program, wherein the boot program and the application program are synthesized and generated, and the bin program is used as a monitoring program or a control program. A program jump implementing method using the above system, comprising the steps of: s1, independently designing a monitoring program and a control program; S2, powering on the DSP, and leading a boot program in the monitoring program to start by the firmware program; S3, guiding an application program in the monitoring program by a boot program in the monitoring program; s4, completing initialization work of the system and related peripheral chips by an application program in the monitoring program; S5, an application program in the monitoring program waits for a code matching instruction sent by the upper computer within 10S of power-on; S6, if an application program in the monitoring program does not receive the instruction, jumping to a boot program in the contr