Method for renewing monitoring program, application and subsequent renewing application at same time
A technology of application program and monitoring program, which is applied in the direction of program control device, response error generation, program loading/starting, etc., and can solve the problem of long time consumption of monitoring program and application program burning, affecting production efficiency, and long application program update time, etc. problem, to achieve the effect of reducing the steps of program burning, improving burning efficiency, and high update efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] Embodiment 1 provides a method for simultaneously updating the monitoring program and the application program through the PE burner, refer to figure 1 , the method for simultaneously updating the monitoring program and the application program through the PE burner comprises the following steps:
[0070] S1 allocates a fixed Flash address space and RAM address space for the monitoring program;
[0071] S2 allocates a Flash address space and a RAM address space that do not overlap with the monitor program address space for the application program;
[0072] S3 merges the monitoring program with the application program into a merged program;
[0073] S4 burns the combined program through the PE burner.
[0074] The present invention allocates different Flash address spaces and RAM address spaces for the monitoring program and the application program in advance, and after the monitoring program and the application program are merged into a merged program, burning is carrie...
Embodiment 2
[0076] Embodiment 2 provides a method for simultaneously updating the monitoring program and the application program through the PE burner, which is an improvement on the basis of Embodiment 1. The method for simultaneously updating the monitoring program and the application program by the PE burner comprises the following steps:
[0077] S1 allocates fixed Flash address space and RAM address space for the monitoring program.
[0078] S2 allocates a Flash address space and a RAM address space that do not overlap with the monitor program address space for the application program. refer to figure 2 , the Flash address space and the RAM address space of the application program do not coincide with the Flash address space and the RAM address space of the monitoring program.
[0079] S3 merges the monitor program with the application program into a merged program. The step S3 of merging the monitoring program and the application program into a combined program is specifically: ...
Embodiment 3
[0126] Embodiment 3 provides a method of updating the application program after burning the application program through the method of simultaneously updating the monitoring program and the application program, refer to Figure 8 The method of updating the application program updates the application program through CAN, and the process is as follows:
[0127] a1 enters the reset procedure;
[0128] a2 judges whether to enter the application program, if so, execute step a3, otherwise execute step a5;
[0129] a3 set IVBR=0xEB;
[0130] a4 jumps to the Startup function (application code segment) of the application program;
[0131] a5 enters the main function of the monitoring program (bootloader code segment);
[0132] a6 enters the update process according to the firmware update communication protocol;
[0133] a7 judges whether the update is successful, if the update is successful, then execute step a8, otherwise execute step a9;
[0134] a8 writes the effective flag bit ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 