Software dynamic loading method and device, vehicle and electronic equipment
By dynamically loading the microcontroller's interrupt vector table, the interrupt service routine address is mapped to the data memory space, solving the problem that interrupt services cannot be used simultaneously in the bootloader and application, and improving real-time performance and update efficiency.
Patent Information
- Application Number
- CN202310013494.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2043-01-05
AI Technical Summary
When developing bootloaders and application software programs using 8-bit or 16-bit microcontrollers, interrupt services cannot be used simultaneously in the bootloader and the application program, which reduces the real-time performance of software data processing.
By executing a reset jump instruction to the program memory space of the target program, the interrupt service routine address in the interrupt vector table is mapped to the data memory space using the interrupt mapping table, and the corresponding interrupt service routine is executed in the target program, thus realizing the dynamic loading of the interrupt vector table.
This allows for the simultaneous use of interrupt services in both the bootloader and the application program, ensuring real-time data processing and improving the experience and efficiency of software updates.
Smart Images

Figure CN116028134B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive technology, and more particularly to a method, apparatus, vehicle, and electronic device for dynamic software loading. Background Technology
[0002] In some 8-bit or 16-bit microcontrollers, the interrupt vector table is fixed in the program memory space (Flash) and cannot be relocated via configuration registers. When developing bootloaders and application programs (APPs) using these microcontrollers, interrupt service routines cannot be used simultaneously in both the bootloader and the APP. Programs that do not use interrupt service routines will experience reduced real-time performance in data processing. For example, if interrupt service routines are not used in the bootloader, and polling is used to handle received flash packets during software updates, the update time will increase, sacrificing real-time performance, resulting in slow response times and a negative impact on the software update experience. Summary of the Invention
[0003] This invention provides a software dynamic loading method, apparatus, vehicle, and electronic device to solve the problem that interrupt services cannot be used simultaneously in the Bootloader and APP when using a microcontroller for bootloader and application software program development.
[0004] To solve the above-mentioned technical problems, the present invention is implemented as follows:
[0005] In a first aspect, embodiments of the present invention provide a method for dynamic software loading, comprising:
[0006] A reset jump instruction is executed to the program storage space of the target program, and the target program is executed; the target program stores a mapped interrupt table, and the mapped interrupt table stores multiple interrupt service routine addresses;
[0007] Upon receiving a target interrupt request, the target program determines the target interrupt service routine based on the interrupt vector table, and determines the address of the target interrupt service routine corresponding to the target interrupt service routine based on the mapped interrupt table; the interrupt vector table stores multiple interrupt service routine names;
[0008] Jump to the address of the target interrupt service routine and execute the target interrupt service routine to achieve dynamic loading of the interrupt vector table in the target program.
[0009] Optionally, the interrupt vector table is fixed in the program storage space, and the mapped interrupt table is stored in the data storage space.
[0010] Optionally, the target program is a bootloader or an application software program.
[0011] Optionally, if the target program is an application software program, executing the reset jump instruction to the target program's program storage space and executing the target program includes:
[0012] Execute the reset jump instruction to the program storage space of the bootloader, and execute the bootloader;
[0013] If no software update requirement is detected in the bootloader, the system will redirect to the application program space and execute the application program.
[0014] Optionally, the mapping interrupt table is defined in the same data storage space at the same address as the bootloader and the application software program.
[0015] Optionally, upon receiving a target interrupt request, the target program determines the target interrupt service routine based on the interrupt vector table and determines the target interrupt service routine address corresponding to the target interrupt service routine based on the mapped interrupt table, including:
[0016] If a target interrupt request is received, the target program queries the target interrupt service routine from the interrupt vector table in the program storage space;
[0017] Jump to the data storage space of the target program's mapped interrupt table to query the address of the target interrupt service routine.
[0018] In a second aspect, embodiments of the present invention provide a software dynamic loading device, comprising:
[0019] The first execution module executes a reset jump instruction to the program storage space of the target program and executes the target program; the target program stores a mapped interrupt table, and the mapped interrupt table stores multiple interrupt service routine addresses;
[0020] The receiving module is configured to, upon receiving a target interrupt request, determine the target interrupt service routine based on the interrupt vector table and determine the target interrupt service routine address corresponding to the target interrupt service routine based on the mapped interrupt table; the interrupt vector table stores multiple interrupt service routine names;
[0021] The second execution module is used to jump to the address of the target interrupt service routine and execute the target interrupt service routine to realize the dynamic loading of the interrupt vector table in the target program.
[0022] Thirdly, embodiments of the present invention provide a vehicle in which the electronic control unit of the battery management system performs the steps of the software dynamic loading method as described in any of the first aspects.
[0023] Fourthly, embodiments of the present invention provide an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, it implements the steps of the software dynamic loading method as described in any of the first aspects.
[0024] Fifthly, embodiments of the present invention provide a readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of the software dynamic loading method as described in any of the first aspects.
[0025] In this embodiment of the invention, a reset jump instruction is executed to the program storage space of the target program to execute the target program; the target program corresponds to an interrupt table that stores multiple interrupt service routine addresses.
[0026] Upon receiving a target interrupt request, the target program determines the target interrupt service routine (SSR) based on the interrupt vector table and, based on its mapped interrupt table, determines the address of the target SSR. It then jumps to the target SSR address and executes the target SSR, thus achieving dynamic loading of the fixed interrupt vector table within the target program. This is achieved by mapping the interrupt service routine addresses stored in the interrupt vector table to the data memory space, and then mapping the data memory space to the specific interrupt service routine.
[0027] This invention enables dynamic loading of a fixed interrupt vector table between target programs during target program development. It allows the simultaneous use of interrupt services within the target program, ensuring real-time data processing and dynamic software loading within the target program, thus guaranteeing a smooth and efficient software update experience. Attached Figure Description
[0028] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0029] Figure 1 This is one of the flowcharts illustrating a software dynamic loading method provided in an embodiment of the present invention.
[0030] Figure 2 Figure 5 illustrates a method for defining a mapping interrupt table in a data storage space, as provided in an embodiment of the present invention.
[0031] Figure 3 This is a second flowchart illustrating a software dynamic loading method provided in an embodiment of the present invention.
[0032] Figure 4This is a flowchart illustrating the interrupted execution of a bootloader, as provided in an embodiment of the present invention.
[0033] Figure 5 This is a schematic diagram illustrating the establishment of an interrupt vector table mapping according to an embodiment of the present invention.
[0034] Figure 6 This is the third flowchart illustrating a software dynamic loading method provided in an embodiment of the present invention.
[0035] Figure 7 This is a flowchart illustrating the interruption of an application software program execution, as provided in an embodiment of the present invention.
[0036] Figure 8 This is one of the structural schematic diagrams of a software dynamic loading device provided in an embodiment of the present invention.
[0037] Figure 9 This is one of the structural schematic diagrams of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0038] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0039] Please refer to Figure 1 , Figure 1 This is one of the flowcharts illustrating a software dynamic loading method provided in an embodiment of the present invention. The present invention provides a software dynamic loading method, comprising:
[0040] Step S11: Execute a reset jump instruction to the program storage space of the target program and execute the target program; the target program stores a mapped interrupt table, and the mapped interrupt table stores multiple interrupt service routine addresses.
[0041] In some embodiments of the present invention, the target program may optionally be a bootloader or an application software program. In these embodiments, by mapping the interrupt service routine addresses stored in the interrupt vector table to the data memory space (RAM), and then mapping the RAM to specific interrupt service routines, dynamic loading of the fixed interrupt vector table between the bootloader and the application can be achieved.
[0042] Step S12: If a target interrupt request is received, the target program determines the target interrupt service routine based on the interrupt vector table, and determines the target interrupt service routine address corresponding to the target interrupt service routine based on the mapped interrupt table; the interrupt vector table stores multiple interrupt service routine names.
[0043] In some embodiments of the present invention, optionally, when a target interrupt request is received, the target program determines a target interrupt service routine based on the interrupt vector table and determines the target interrupt service routine address corresponding to the target interrupt service routine based on the mapped interrupt table. This includes: when a target interrupt request is received, the target program queries the target interrupt service routine from the interrupt vector table in the program storage space; and jumps to the data storage space of the mapped interrupt table of the target program to query the target interrupt service routine address. In embodiments of the present invention, if no software update requirement is detected in the bootloader, the program jumps to the application software program space and executes the application software program to satisfy the requirement of dynamic loading of the interrupt vector table in the bootloader and application software programs.
[0044] Please see Figure 2 , Figure 2 This is a schematic diagram illustrating the definition of a mapped interrupt table in a data storage space, as provided in an embodiment of the present invention. In some embodiments of the present invention, optionally, the interrupt vector table is fixed in the program storage space, while the mapped interrupt table (IVT_Table) is stored in the data storage space. In this embodiment of the present invention, by mapping the interrupt service routine addresses stored in the interrupt vector table to the data storage space (RAM), and then mapping the RAM to specific interrupt service routines, dynamic loading of the fixed interrupt vector table in the bootloader or application software program is achieved. This enables the use of interrupt services simultaneously in the corresponding program during the development of the bootloader or application software program, ensuring the real-time performance of data processing, and realizing dynamic loading of software in the bootloader or application software program, thus ensuring the software update experience and update efficiency.
[0045] In some embodiments of the present invention, optionally, the bootloader and the application program (APP) define a mapped interrupt table (IVT_Table) within the same data storage space to map the interrupt vector table, such as... Figure 2 As shown.
[0046] Step S13: Jump to the target interrupt service routine address and execute the target interrupt service routine to achieve dynamic loading of the interrupt vector table in the target program.
[0047] In this embodiment of the invention, the target program queries the target interrupt service routine from the interrupt vector table in the program storage space and jumps to the target interrupt service routine address in the data storage space of the corresponding mapped interrupt table. This quickly and easily determines the mapping relationship between the interrupt vector table and the target interrupt service routine address in the mapped interrupt table when the target program receives the target interrupt request.
[0048] In this embodiment of the invention, a reset jump instruction is executed to the program storage space of the target program, and the target program is executed. This target program corresponds to a mapped interrupt table storing multiple interrupt service routine addresses. If a target interrupt request is received, the target program determines the target interrupt service routine based on the interrupt vector table and determines the target interrupt service routine address based on its mapped interrupt table. The program then jumps to the target interrupt service routine address and executes the target interrupt service routine, thereby achieving dynamic loading of the fixed interrupt vector table within the target program. By mapping the interrupt service routine addresses stored in the interrupt vector table to the data storage space, and then mapping the data storage space to specific interrupt service routines, dynamic loading of the fixed interrupt vector table between target programs is achieved during target program development. This allows for the simultaneous use of interrupt services within the target program, ensuring real-time data processing, achieving dynamic loading of software within the target program, and guaranteeing the software update experience and efficiency.
[0049] Please see Figure 3 , Figure 3 This is a second flowchart illustrating a software dynamic loading method provided in an embodiment of the present invention, applied to the process of a bootloader receiving an interrupt; Figure 4 This invention provides a flowchart illustrating the interrupted execution of a bootloader according to an embodiment of the present invention. The present invention also provides a method for dynamic software loading, comprising:
[0050] Step S21: The microcontroller is powered on and runs, executing the reset jump instruction.
[0051] Step S22: Jump to the bootloader space and execute the bootloader.
[0052] Please see Figure 5 , Figure 5This diagram illustrates the establishment and mapping of an interrupt vector table according to an embodiment of the present invention. In some embodiments of the present invention, optionally, a mapped interrupt table (IVT_Table) is defined in an address of the data storage space within the bootloader to map the interrupt vector table. Specifically, multiple interrupt names are stored in the interrupt vector table, and multiple interrupt service routines stored in the interrupt vector table are mapped to the data storage space. The name of the target interrupt service routine to be executed and its corresponding address in the mapped interrupt table are queried through the mapped interrupt table in the data storage space. In this embodiment of the present invention, the addresses in the interrupt vector table can be mapped to the mapped interrupt table by modifying the linker file of the bootloader program. In the bootloader program, the specific interrupt service routine addresses are placed in the IVT_Table, thereby loading the interrupt vector table in the bootloader.
[0053] Step S23: When a target interrupt request occurs, the bootloader queries the interrupt vector table for the address of the target interrupt service routine.
[0054] Step S24: By mapping, query the address of the interrupt service routine to be executed from the mapped interrupt table in the data storage space.
[0055] Step S25: The bootloader jumps to the address of the specific target interrupt service routine and executes the target interrupt service routine.
[0056] In this embodiment of the invention, the microcontroller powers on and runs; a reset jump instruction is executed to jump to the Bootloader program space, where the Bootloader program is executed; when an interrupt request occurs, the program queries the interrupt service routine address from the interrupt vector table; through mapping, the address of the interrupt service routine to be executed is queried from the IVT_Table in the data storage space; the program jumps to the specific interrupt service routine for execution. This achieves the goal of placing the specific interrupt service routine address in the IVT_Table within the Bootloader program, thus loading the interrupt vector table in the Bootloader. By mapping the interrupt service routine addresses stored in the fixed interrupt vector table to the data storage space, and then mapping the data storage space to the specific interrupt service routines, dynamic loading of the fixed interrupt vector table in the Bootloader is achieved during Bootloader development. Interrupt services can be used simultaneously in the Bootloader, ensuring real-time data processing, and dynamic loading of software in the Bootloader, guaranteeing a smooth and efficient software update experience. Please refer to [link to relevant documentation]. Figure 6 , Figure 6This is a third flowchart illustrating a software dynamic loading method provided in an embodiment of the present invention, applied to the process of an application software program receiving an interrupt; Figure 7 This invention provides a flowchart of the interrupted execution of an application software program according to an embodiment of the present invention. The present invention also provides a method for dynamic software loading, including:
[0057] Step S31: The microcontroller is powered on and runs, executing the reset jump instruction.
[0058] Step S32: Jump to the bootloader space and execute the bootloader.
[0059] Step S33: If no software update requirement is detected in the bootloader, jump to the application program space and execute the application program.
[0060] In this embodiment of the invention, if no software update requirement is detected in the bootloader, the system jumps to the application software program space and executes the application software program to meet the requirement of dynamic loading of the interrupt vector table in the bootloader and the application software program.
[0061] Step S34: When a target interrupt request occurs, the application software program queries the target interrupt service routine address from the interrupt vector table.
[0062] Step S35: By mapping, query the address of the target interrupt service routine to be executed from the mapped interrupt table in the data storage space.
[0063] In some embodiments of the present invention, optionally, the mapped interrupt table is defined in the same data storage space at the same address as the bootloader and the application software program. In this embodiment, the mapped interrupt table is defined in the same data storage space at the same address as the bootloader and the application software program. Combined with the fact that if no software update requirement is detected in the bootloader, the process jumps to the application software program space and executes the application software program, thus achieving dynamic loading of the interrupt vector table in both the bootloader and the application software program.
[0064] Step S36: The application software program jumps to the specific target interrupt service routine address and executes the target interrupt service routine.
[0065] In this embodiment of the invention, the microcontroller is powered on and running; a reset jump instruction is executed to jump to the Bootloader program space, and the Bootloader program is executed; if no software update requirement is detected in the Bootloader program, the program jumps to the APP program space and executes the APP program; when an interrupt request occurs, the program queries the interrupt service routine address from the interrupt vector table; through mapping, the address of the interrupt service routine to be executed is queried from the IVT_Table in the data storage space; the program jumps to the specific interrupt service routine for execution. This achieves the loading of the interrupt vector table in the APP program by placing the specific interrupt service routine address in the IVT_Table. By mapping the interrupt service routine address stored in the fixed interrupt vector table to the data storage space, and then mapping the data storage space to the specific interrupt service routine, the dynamic loading of the fixed interrupt vector table in the APP program is achieved during APP program development. Interrupt services can be used simultaneously in the APP program, ensuring the real-time performance of data processing, realizing the dynamic loading of software in the APP program, and ensuring the software update experience and update efficiency.
[0066] Please see Figure 8 , Figure 8 This is a schematic diagram of a software dynamic loading device provided in an embodiment of the present invention. The present invention also provides a software dynamic loading device 10, comprising:
[0067] The first execution module 11 is used to execute a reset jump instruction to the program storage space of the target program and execute the target program; the target program stores a mapped interrupt table, and the mapped interrupt table stores multiple interrupt service routine addresses;
[0068] The receiving module 12 is configured to, upon receiving a target interrupt request, determine the target interrupt service routine based on the interrupt vector table and determine the target interrupt service routine address corresponding to the target interrupt service routine based on the mapped interrupt table; the interrupt vector table stores multiple interrupt service routine names;
[0069] The second execution module 13 is used to jump to the address of the target interrupt service routine and execute the target interrupt service routine to realize the dynamic loading of the interrupt vector table in the target program.
[0070] In some embodiments of the present invention, optionally, the interrupt vector table is fixed in the program storage space, and the mapped interrupt table (IVT_Table) is stored in the data storage space. In these embodiments, by mapping the interrupt service routine addresses stored in the interrupt vector table to the data storage space (RAM), and then mapping the RAM to specific interrupt service routines, dynamic loading of the fixed interrupt vector table in the bootloader or application software program is achieved. This enables the use of interrupt services in the corresponding program during bootloader or application software program development, ensuring real-time data processing and dynamic loading of software in the bootloader or application software program, thus guaranteeing software update experience and efficiency. In some embodiments of the present invention, optionally, the target program is a bootloader or application software program. In these embodiments, by mapping the interrupt service routine addresses stored in the interrupt vector table to the data storage space (RAM), and then mapping the RAM to specific interrupt service routines, dynamic loading of the fixed interrupt vector table between the bootloader and the application can be achieved.
[0071] In some embodiments of the present invention, optionally, if the target program is an application software program, the first execution module 11 is further configured to execute a reset jump instruction to the program storage space of the bootloader, and execute the bootloader; if no software update requirement is detected in the bootloader, the jump is performed.
[0072] The system then navigates to the application software program space and executes the application software program. In this embodiment of the invention, if no software update requirement is detected in the bootloader, the system jumps to the application software program space and executes the application software program to satisfy the requirement of dynamic loading of the interrupt vector table in the bootloader and application software program.
[0073] In some embodiments of the present invention, optionally, the mapped interrupt table is defined in the same data storage space at the same address as the bootloader and the application software program. In this embodiment of the present invention, the mapped 0 interrupt table is defined in the same data storage space at the same address as the bootloader and the application software program. Combined with the fact that after no software update requirement is detected in the bootloader, the program jumps to the application software program space and executes the application software program, the interrupt vector table is dynamically loaded in both the bootloader and the application software program.
[0074] In some embodiments of the present invention, optionally, the receiving module 12 is further configured to: if a target interrupt request is received, the target program queries the interrupt vector table in the program storage space for a target interrupt service routine; and jumps to the data storage space of the target program's mapped interrupt table to query the address of the target interrupt service routine. In these embodiments, the target program queries the interrupt vector table in the program storage space for a target interrupt service routine and then jumps to the data storage space of its corresponding mapped interrupt table to query the address of the target interrupt service routine.
[0075] By marking the interrupt service routine address, the mapping relationship between the target interrupt vector table and the target interrupt service routine address in the mapped interrupt table when the target program receives the target interrupt request can be quickly and easily determined.
[0076] In this embodiment of the invention, the software dynamic loading device executes a reset jump instruction to the program storage space of the target program and executes the target program; the target program corresponds to an interrupt table that stores multiple interrupt service routine addresses; if a target interrupt request is received, the target program determines the target interrupt based on the interrupt vector table.
[0077] The system dynamically loads the fixed interrupt vector table into the target program by identifying the address of the target interrupt service routine (PSR) based on its mapped interrupt table. It then jumps to the target PSR address and executes the target PSR, achieving dynamic loading of the fixed interrupt vector table within the target program. By mapping the addresses of the PSR stored in the interrupt vector table to the data memory space, and then mapping the data memory space to the specific interrupt service routines, dynamic loading of the fixed interrupt vector table between target programs is achieved during target program development. This allows for the simultaneous use of interrupt services within the target program, ensuring real-time data processing, dynamic software loading within the target program, and guaranteeing a smooth and efficient software update experience.
[0078] This invention also provides a vehicle in which the electronic control unit of the battery management system executes the various processes of any of the above-described embodiments of the software dynamic loading method, and achieves the same technical effect. To avoid repetition, these will not be described again here.
[0079] The present invention also provides an electronic device, see below. Figure 9 , Figure 9 This is one of the structural schematic diagrams of an electronic device provided in an embodiment of the present invention; the electronic device 20 includes: a processor 21, a memory 22, and a program stored in the memory 22 and executable on the processor 21. When the program is executed by the processor 21, it implements the various processes of any of the above-described embodiments of the software dynamic loading method and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0080] This invention also provides a readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of any of the above-described embodiments of the dynamic software loading method and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0081] The computer-readable storage medium mentioned above includes, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0082] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of the present invention.
Claims
1. A software dynamic loading method, characterized by, include: Execute a reset jump instruction to the program storage space of the target program, and execute the target program; The target program stores a mapped interrupt table, which stores multiple interrupt service routine addresses. Upon receiving a target interrupt request, the target program determines the target interrupt service routine based on the interrupt vector table, and determines the address of the target interrupt service routine corresponding to the target interrupt service routine based on the mapped interrupt table; the interrupt vector table stores multiple interrupt service routine names; Jump to the address of the target interrupt service routine and execute the target interrupt service routine to achieve dynamic loading of the interrupt vector table in the target program; The interrupt vector table is fixed in the program storage space, and the mapped interrupt table is stored in the data storage space; Upon receiving a target interrupt request, the target program determines the target interrupt service routine based on the interrupt vector table, and determines the address of the target interrupt service routine corresponding to the target interrupt service routine based on the mapped interrupt table, including: If a target interrupt request is received, the target program queries the target interrupt service routine from the interrupt vector table in the program storage space; Jump to the data storage space of the target program's mapped interrupt table to query the address of the target interrupt service routine; The target program is a bootloader or application software program.
2. The software dynamic loading method of claim 1, wherein, If the target program is an application software program, the step of executing a reset jump instruction to the target program's program storage space and executing the target program includes: Execute the reset jump instruction to the program storage space of the bootloader, and execute the bootloader; If no software update requirement is detected in the bootloader, the system will redirect to the application program space and execute the application program.
3. The software dynamic loading method of claim 2, wherein, The mapping interrupt table is defined in the same data storage space at the same address as the bootloader and the application software program.
4. A software dynamic loading device, characterized in that, include: The first execution module is used to execute a reset jump instruction to the program storage space of the target program and execute the target program; The target program stores a mapped interrupt table, which stores multiple interrupt service routine addresses. The receiving module is configured to, upon receiving a target interrupt request, determine the target interrupt service routine based on the interrupt vector table and determine the target interrupt service routine address corresponding to the target interrupt service routine based on the mapped interrupt table; the interrupt vector table stores multiple interrupt service routine names; The second execution module is used to jump to the address of the target interrupt service routine and execute the target interrupt service routine to realize the dynamic loading of the interrupt vector table in the target program; The receiving module is further configured to, upon receiving a target interrupt request, query the target interrupt service routine from the interrupt vector table in the program storage space; and jump to the data storage space of the target program's mapped interrupt table to query the address of the target interrupt service routine; The interrupt vector table is fixed in the program storage space, and the mapped interrupt table is stored in the data storage space. The target program is a bootloader or application software program.
5. A vehicle characterized by comprising: The electronic control unit of the vehicle's battery management system performs the steps of the software dynamic loading method as described in any one of claims 1 to 3.
6. An electronic device comprising a memory, a processor, and a program stored on the memory and executable on the processor; characterized in that, When the processor executes the program, it implements the steps in the software dynamic loading method as described in any one of claims 1 to 3.
7. A readable storage medium, having stored thereon a program, characterized in that, When the program is executed by the processor, it implements the steps of the software dynamic loading method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
BootLoader program debugging method and system based on HCS12 single-chip microcomputer
CN107153613A
Off-chip flash high-capacity program automatic loading method
CN111008045A
Interrupt service implementation method and device, equipment and storage medium
CN112198820A
