Method and equipment for improving ECU (Electronic Control Unit) software flashing efficiency
By dividing the flash resources of the ECU software into memory partitions and using characteristic characters to identify the position of the end unit, and dynamically adjusting the addresses of the characteristic characters, the problem of low flash writing efficiency of the microcontroller is solved, and flash writing is realized when there are many flash resources. Speed improvements and file mapping simplification.
Patent Information
- Application Number
- CN202410761596.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
With the upgrading of MCU chips, the flash resources of microcontrollers continue to expand, causing flash files to become larger and longer, and it takes longer and longer. The existing full upgrade method has poor flash writing efficiency on microcontrollers with more flash resources. Moreover, file mapping is complicated, increasing the complexity of post-integration processing.
The flash resources in the ECU software are divided into several memory partitions, which are flashed separately according to the flashing instructions. The location of the end unit is determined by identifying the characteristic characters, the address of the characteristic characters is dynamically adjusted, and an upgrade success instruction is generated to improve the flashing efficiency.
When the microcontroller has a lot of flash resources, partition flashing can improve the flashing speed, reduce the complexity of file mapping, and improve the efficiency of integrated post-processing.
Smart Images

Figure CN118733093A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of memory flashing technology, and in particular to a method and device for improving the efficiency of ECU software flashing. Background Art
[0002] Executable files such as mot and hex files generated after compilation and linking need to be flashed to the controller through a debugger or a host computer. With the upgrading of MCU chips, the flash resources of the microcontroller are constantly expanding, resulting in larger and longer flashing files and longer and longer flashing time. The software in different application scenarios of the same hardware platform has different flash resource usage rates, but when updating the program, it is erased and reprogrammed according to the full resource usage, resulting in slow program upgrades. The full upgrade method has a certain effect on improving the flashing efficiency of microcontrollers with less flash resources, but it is not obvious for microcontrollers with more flash resources. At the same time, this solution will divide the flash resources into many memory partitions, resulting in the complexity of link file and MemMap (memory allocation, the code and variables in the microcontroller need to be divided into resources and placed in the appropriate position, which is achieved through link file and memory partition mapping) file mapping, which increases the complexity of post-integration processing. Summary of the invention
[0003] In order to solve the above problems, this application proposes a method for improving the efficiency of ECU software flashing, including:
[0004] Divide the flash resources in the ECU software into several memory partitions according to the link file;
[0005] receiving a flashing instruction for flashing the ECU software, and flashing the plurality of memory partitions respectively according to the flashing instruction;
[0006] When writing to a designated memory partition among the plurality of memory partitions, attempting to identify a characteristic character in the designated memory partition, and if the characteristic character is identified, determining a terminal unit where the characteristic character is located in the designated memory partition;
[0007] After the flashing of the terminal unit is completed, an upgrade success instruction for the ECU software is generated, and the upgrade success instruction is sent to the host computer.
[0008] In one implementation of the present application, before the plurality of memory partitions are flashed respectively according to the flash instruction, the method further includes:
[0009] Determine whether resource usage rates of the memory partitions under different application software on the same hardware platform are the same;
[0010] If not, the corresponding memory partition is used as the designated memory partition.
[0011] In one implementation of the present application, the flash resources in the ECU software are divided into several memory partitions according to the link file, specifically including:
[0012] Generate fixed-length byte characteristic characters for the specified memory partition according to the link file;
[0013] The characteristic character is placed in the terminal unit in the designated memory partition; wherein the address of the characteristic character can be dynamically adjusted according to the spatial position of the terminal unit in the flash resource.
[0014] In one implementation of the present application, the plurality of memory partitions are flashed respectively according to the flash instruction, specifically including:
[0015] When flashing to other memory partitions among the plurality of memory partitions except the designated memory partition, reading current checksums corresponding to the other memory partitions;
[0016] The current checksum is compared with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed.
[0017] In one implementation of the present application, the current checksum is compared with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed, specifically including:
[0018] Comparing the current checksum with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum;
[0019] If so, it is determined that the other memory partitions do not need to be flashed, otherwise, they need to be flashed.
[0020] The embodiment of the present application provides a device for improving the efficiency of ECU software flashing, the device comprising:
[0021] at least one processor;
[0022] and, a memory communicatively coupled to the at least one processor;
[0023] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
[0024] Divide the flash resources in the ECU software into several memory partitions according to the link file;
[0025] receiving a flashing instruction for flashing the ECU software, and flashing the plurality of memory partitions respectively according to the flashing instruction;
[0026] When writing to a designated memory partition among the plurality of memory partitions, attempting to identify a characteristic character in the designated memory partition, and if the characteristic character is identified, determining a terminal unit where the characteristic character is located in the designated memory partition;
[0027] After the flashing of the terminal unit is completed, an upgrade success instruction for the ECU software is generated, and the upgrade success instruction is sent to the host computer.
[0028] In one implementation of the present application, before the plurality of memory partitions are flashed respectively according to the flash instruction, the method further includes:
[0029] Determine whether resource usage rates of the memory partitions under different application software on the same hardware platform are the same;
[0030] If not, the corresponding memory partition is used as the designated memory partition.
[0031] In one implementation of the present application, the flash resources in the ECU software are divided into several memory partitions according to the link file, specifically including:
[0032] Generate fixed-length byte characteristic characters for the specified memory partition according to the link file;
[0033] The characteristic character is placed in the terminal unit in the designated memory partition; wherein the address of the characteristic character can be dynamically adjusted according to the spatial position of the terminal unit in the flash resource.
[0034] In one implementation of the present application, the plurality of memory partitions are flashed respectively according to the flash instruction, specifically including:
[0035] When flashing to other memory partitions among the plurality of memory partitions except the designated memory partition, reading current checksums corresponding to the other memory partitions;
[0036] The current checksum is compared with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed.
[0037] In one implementation of the present application, the current checksum is compared with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed, specifically including:
[0038] Comparing the current checksum with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum;
[0039] If so, it is determined that the other memory partitions do not need to be flashed, otherwise, they need to be flashed.
[0040] The method for improving the efficiency of ECU software flashing proposed in this application can bring the following beneficial effects:
[0041] Partition the flash resources. For the designated memory partitions with different flash resource usage rates of different software, the function of dynamically flashing the flash partition is realized according to the characteristic characters at the end of the designated memory partition, so as to solve the problem of slow full flashing speed when there are many flash resources in the MCU. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0043] Figure 1 A flowchart of a method for improving ECU software flashing efficiency provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of the structure of a device for improving the efficiency of ECU software flashing provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0046] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0047] like Figure 1 As shown, a method for improving ECU software flashing efficiency provided by an embodiment of the present application includes:
[0048] S101: Divide the flash resources in the ECU software into a plurality of memory partitions according to the link file.
[0049] Electronic Control Unit (ECU) is used to control and manage various functions and systems of the vehicle. As a component of the ECU, the flash memory is used to store the ECU's software code (also called firmware or program), which defines how the ECU performs its control and management tasks. In ECU software development, dividing flash resources into several memory partitions helps manage and optimize software resources. Link files can be used to define the layout of memory partitions and divide the flash resources in the ECU software into several memory partitions. The memory partitions include the BSW area, the ASW area, and the calibration area. The BSW area is used as a bottom-level service to store the code and data related to the basic software layer. The ASW area is used to store the code and data related to the application software layer of the ECU. The calibration area is used to store the calibration parameters and data of the ECU.
[0050] For the same version of the hardware platform, the resource usage rates of the BSW area and the calibration area under different application software are basically the same. Therefore, for this type of memory partition, the memory can be flashed by the traditional flashing method. According to whether the resource usage rates of the memory partitions under different application software on the same hardware platform are the same, it can be determined that the resource usage of the ASW area is different in different application scenarios. Therefore, the ASW area needs to be used as a designated memory partition, and a special flashing strategy is implemented on the designated memory partition to ensure that it is suitable for different application scenarios.
[0051] In one embodiment, for a specified memory partition, i.e., an ASW area, a feature character of fixed length bytes is generated for the specified memory partition according to a link file. The content of the feature character can be dynamically generated as needed, for example, including information such as a timestamp, data version, or checksum, and the determined content is encoded into a fixed-length byte sequence. For example, the feature character is 0x123456789ABCDEF....5A5AA5A5, a total of 128 bytes. After generating the feature character, it is necessary to find the end unit of the specified memory partition in the link file, which is usually the last available address of the partition, and then write the generated feature character into the end unit.
[0052] It should be noted that since flash is usually written in pages or blocks, when writing the characteristic characters into the terminal unit, it is necessary to ensure that there is enough space for writing. If the memory space is insufficient, the memory layout needs to be adjusted to ensure that there is enough memory space. In addition, during the operation of the embedded system, the flash space usage may change due to data updates, deletions, and other operations. The address of the characteristic character will also be dynamically adjusted according to the spatial position of the terminal unit in the flash resource. Therefore, before writing new data or updating the characteristic character each time, the position of the terminal unit is recalculated, and the write address of the characteristic character is updated according to the new terminal unit position.
[0053] S102: receiving a flashing instruction for flashing the ECU software, and flashing the plurality of memory partitions respectively according to the flashing instruction.
[0054] Before flashing the plurality of memory partitions respectively according to the flashing instruction, the method further includes: determining whether resource usage rates of the memory partitions under different application software on the same hardware platform are the same; if not, taking the corresponding memory partition as the designated memory partition.
[0055] When analyzing resource usage, first process the collected data to calculate the average resource usage of each application for each memory partition, then compare the resource usage of different applications for the same memory partition to determine whether there is a significant difference. If it is found that the resource usage of a memory partition under different applications is significantly different, it will be marked as a "specified memory partition".
[0056] According to the flashing instruction, the plurality of memory partitions are flashed respectively, specifically including:
[0057] When flashing to other memory partitions among the several memory partitions except the specified memory partition, read the current checksum corresponding to the other memory partitions; compare the current checksum with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed.
[0058] When judging whether other memory partitions need to be flashed, the current checksum is compared with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum; if so, it is determined that the other memory partitions do not need to be flashed, otherwise, they need to be flashed.
[0059] S103: When flashing to a designated memory partition among the plurality of memory partitions, attempt to identify a characteristic character in the designated memory partition, and if the characteristic character is identified, determine the terminal unit where the characteristic character is located in the designated memory partition.
[0060] In one embodiment, for flashing other memory partitions except the specified memory partition, it is only necessary to perform the operation by comparing the checksum. Specifically, read the current checksum corresponding to other memory partitions, and compare the current checksum with the checksum stored in the upgrade package to determine whether other memory partitions need to be flashed. That is, compare the current checksum with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum. If the checksum matches, it means that the content of the memory partition is consistent with the expected content in the upgrade package, and no flashing is required. If the checksum does not match, it means that the content of the memory partition is different from the expected content in the upgrade package and needs to be flashed.
[0061] In one embodiment, for the ASW area, the terminal unit needs to be located according to the characteristic character, so as to clarify the end position of the flashing of the ECU data. Specifically, starting from the starting position of the specified memory partition, the data is read block by block or page by page, and the characteristic character is scanned in the read data. When the scan matches the predefined characteristic character, it is confirmed that the characteristic character has been found; the reading position (such as the block number, page number or sector number) when the characteristic character is recognized is recorded, and the terminal unit is calculated. Specifically, if the characteristic character is the last byte of the block or page, then the block or page is the terminal unit; if not, it is necessary to continue reading the next block or page until the block or page containing the last byte of the characteristic character is found, and the corresponding flashing strategy or operation is executed according to the position of the terminal unit.
[0062] S104: After the flashing of the terminal unit is completed, an upgrade success instruction for the ECU software is generated, and the upgrade success instruction is sent to the host computer.
[0063] According to the above steps, determine the terminal unit that needs to be flashed, extract the new data of the corresponding terminal unit from the upgrade package, write the new data to the determined terminal unit, and after the flashing is completed, verify whether the new data has been successfully written and the integrity of the data has not been damaged. As the last unit to be flashed, the terminal unit needs to check the flashing status of all memory partitions during the entire ECU software upgrade process after its corresponding flashing process is completed. If all flashing operations are completed successfully and the data is verified to be correct, an upgrade success instruction is generated. This instruction is usually a specific message or status code to notify the host computer that the upgrade operation has been completed.
[0064] The ECU and the host computer establish a communication connection through the CAN (Controller Area Network) bus, USB, serial port or other communication protocols. The command sending method is selected based on the communication protocol and interface used, and the generated upgrade success command is sent to the host computer through the communication connection. After sending the command, the ECU waits for the response of the host computer to confirm that the command has been received to ensure the reliability and integrity of the communication. At this point, the ECU software is flashed.
[0065] The above are embodiments of the method proposed in this application. Based on the same idea, some embodiments of this application also provide devices, equipment and non-volatile computer storage media corresponding to the above method.
[0066] Figure 2 A schematic diagram of a device for improving the efficiency of ECU software flashing provided in an embodiment of the present application. Figure 2 As shown, including:
[0067] at least one processor; and,
[0068] at least one processor is communicatively connected to a memory; wherein,
[0069] The memory stores instructions executable by at least one processor, the instructions being executed by at least one processor to enable the at least one processor to:
[0070] Divide the flash resources in the ECU software into several memory partitions according to the link file;
[0071] Receive a flashing instruction for flashing ECU software, and flash several memory partitions respectively according to the flashing instruction;
[0072] When flashing to a specified memory partition among several memory partitions, try to identify a characteristic character in the specified memory partition, and if the characteristic character is identified, determine the terminal unit where the characteristic character is located in the specified memory partition;
[0073] After completing the flashing of the terminal unit, an upgrade success instruction for the ECU software is generated and sent to the host computer.
[0074] According to the flashing instruction, before flashing several memory partitions respectively, the following steps are also included:
[0075] Determine whether the resource usage of memory partitions is the same under different application software on the same hardware platform;
[0076] If not, the corresponding memory partition is used as the designated memory partition.
[0077] According to the link file, the flash resources in the ECU software are divided into several memory partitions, including:
[0078] Generate fixed-length byte characteristic characters for the specified memory partition according to the link file;
[0079] The characteristic character is placed in the terminal unit in the specified memory partition; wherein the address of the characteristic character can be dynamically adjusted according to the spatial position of the terminal unit in the flash resource.
[0080] According to the flashing instructions, several memory partitions are flashed separately, including:
[0081] When flashing to other memory partitions except the specified memory partition among several memory partitions, read the current checksum corresponding to other memory partitions;
[0082] Compare the current checksum with the checksum stored in the upgrade package to determine whether other memory partitions need to be flashed.
[0083] Compare the current checksum with the checksum stored in the upgrade package to determine whether other memory partitions need to be flashed, including:
[0084] Compare the current checksum with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum;
[0085] If so, it is determined that other memory partitions do not need to be flashed, otherwise, they need to be flashed.
[0086] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0087] The devices and media provided in the embodiments of the present application correspond one-to-one to the methods. Therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0088] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0090] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0092] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0093] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0094] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0095] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0096] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for improving the efficiency of ECU software flashing, characterized in that: The method comprises: Divide the flash resources in the ECU software into several memory partitions according to the link file; receiving a flashing instruction for flashing the ECU software, and flashing the plurality of memory partitions respectively according to the flashing instruction; When writing to a designated memory partition among the plurality of memory partitions, attempting to identify a characteristic character in the designated memory partition, and if the characteristic character is identified, determining a terminal unit where the characteristic character is located in the designated memory partition; After the flashing of the terminal unit is completed, an upgrade success instruction for the ECU software is generated, and the upgrade success instruction is sent to the host computer.
2. A method for improving ECU software flashing efficiency according to claim 1, characterized in that: Before flashing the plurality of memory partitions respectively according to the flashing instruction, the method further includes: Determine whether resource usage rates of the memory partitions under different application software on the same hardware platform are the same; If not, the corresponding memory partition is used as the designated memory partition.
3. A method for improving ECU software flashing efficiency according to claim 1, characterized in that: According to the link file, the flash resources in the ECU software are divided into several memory partitions, including: Generate fixed-length byte characteristic characters for the specified memory partition according to the link file; The characteristic character is placed in the terminal unit in the designated memory partition; wherein the address of the characteristic character can be dynamically adjusted according to the spatial position of the terminal unit in the flash resource.
4. A method for improving ECU software flashing efficiency according to claim 1, characterized in that: According to the flashing instruction, the plurality of memory partitions are flashed respectively, specifically including: When flashing to other memory partitions among the plurality of memory partitions except the designated memory partition, reading current checksums corresponding to the other memory partitions; The current checksum is compared with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed.
5. A method for improving ECU software flashing efficiency according to claim 4, characterized in that: Comparing the current checksum with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed, specifically including: Comparing the current checksum with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum; If so, it is determined that the other memory partitions do not need to be flashed, otherwise, they need to be flashed.
6. A device for improving the efficiency of ECU software flashing, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Divide the flash resources in the ECU software into several memory partitions according to the link file; receiving a flashing instruction for flashing the ECU software, and flashing the plurality of memory partitions respectively according to the flashing instruction; When writing to a designated memory partition among the plurality of memory partitions, attempting to identify a characteristic character in the designated memory partition, and if the characteristic character is identified, determining a terminal unit where the characteristic character is located in the designated memory partition; After the flashing of the terminal unit is completed, an upgrade success instruction for the ECU software is generated, and the upgrade success instruction is sent to the host computer.
7. The device for improving ECU software flashing efficiency according to claim 6 is characterized in that: Before the plurality of memory partitions are flashed respectively according to the flashing instruction, the method further includes: Determine whether resource usage rates of the memory partitions under different application software on the same hardware platform are the same; If not, the corresponding memory partition is used as the designated memory partition.
8. The device for improving ECU software flashing efficiency according to claim 6 is characterized in that: According to the link file, the flash resources in the ECU software are divided into several memory partitions, including: Generate fixed-length byte characteristic characters for the specified memory partition according to the link file; The characteristic character is placed in the terminal unit in the designated memory partition; wherein the address of the characteristic character can be dynamically adjusted according to the spatial position of the terminal unit in the flash resource.
9. The device for improving ECU software flashing efficiency according to claim 6, characterized in that: According to the flashing instruction, the plurality of memory partitions are flashed respectively, specifically including: When flashing to other memory partitions among the plurality of memory partitions except the designated memory partition, reading current checksums corresponding to the other memory partitions; The current checksum is compared with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed.
10. The device for improving ECU software flashing efficiency according to claim 9, characterized in that: Comparing the current checksum with the checksum stored in the upgrade package to determine whether the other memory partitions need to be flashed, specifically including: Comparing the current checksum with the checksum stored in the upgrade package to determine whether the current checksum is consistent with the checksum; If so, it is determined that the other memory partitions do not need to be flashed, otherwise, they need to be flashed.
