CN114510376A - XCP calibration data curing system and method - Google Patents
XCP calibration data curing system and method Download PDFInfo
- Publication number
- CN114510376A CN114510376A CN202210074005.3A CN202210074005A CN114510376A CN 114510376 A CN114510376 A CN 114510376A CN 202210074005 A CN202210074005 A CN 202210074005A CN 114510376 A CN114510376 A CN 114510376A
- Authority
- CN
- China
- Prior art keywords
- calibration data
- memory
- flash area
- curing
- area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0221—Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Automation & Control Theory (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a system and a method for XCP calibration data solidification, wherein the system comprises a solidification module and a Flash drive module, wherein the Flash drive module is used for setting a main Flash area for storing solidified calibration data and a redundant Flash area for backing up the calibration data in the main Flash area in a Flash memory; when the calibration data in the Flash memory is loaded into the memory, the solidification module firstly checks the calibration data in the main Flash area, if the calibration data passes, the calibration data in the main Flash area is loaded into the memory, and if the calibration data does not pass, the calibration data in the redundant Flash area is checked, and after the calibration data passes, the calibration data in the redundant Flash area is loaded into the memory. By adopting the technical scheme of the invention, the problem that some important parameters cannot be used due to abnormal power failure in the Flash memory flashing process can be avoided.
Description
Technical Field
The invention relates to the technical field of automotive electronics, in particular to an XCP calibration data curing system and method.
Background
An ecu (electronic Control unit) electronic Control unit, which is also called a "traveling computer" or a "vehicle-mounted computer". It is similar to common computer and consists of microprocessor, memory (RAM), Flash memory, I/O interface, A/D converter, shaping and driving IC.
An xcp (universal Calibration protocol) is mainly used for real-time modification of internal variables, parameters, and the like of an ECU (Electronic Control Unit) of an automobile, and avoids the work of recompiling software for each parameter modification, thereby effectively improving debugging efficiency. How to safely solidify the modified calibration data in the memory into the Flash memory area, and simultaneously guarantee the next power-on cycle, and the calibration data values in the Flash memory can be safely and unmistakably loaded into the corresponding internal variables, which gradually becomes an urgent requirement for part suppliers and OEMs.
In the existing solution, after a curing request instruction is received, internal variables in a memory are usually written into a corresponding Flash memory area through a Flash memory driver, and if abnormal conditions occur in the process, such as write or erase failure of the Flash memory driver, inconsistency of written data with an expected value, and abnormal power failure in the writing process, related important parameters cannot be used normally, so that an ECU cannot work normally.
Disclosure of Invention
The invention mainly aims to provide an XCP calibration data solidification system and method, aiming at solving the problem that some important parameters cannot be used due to abnormal power failure in the Flash memory flashing process.
In an embodiment of the present invention, a system for fixing XCP calibration data is provided, which includes: a curing module and a Flash driving module,
the solidification module is used for loading the calibration data in the Flash memory into the memory when no solidification request exists, executing solidification operation when the solidification request is received, and solidifying the calibration data in the memory into the Flash memory;
the Flash drive module is used for setting a main Flash area for storing solidified calibration data and a redundant Flash area for backing up the calibration data in the main Flash area in a Flash memory, and erasing, reading and writing the main Flash area and the redundant Flash area according to an operation instruction of the solidification module;
when the calibration data in the Flash memory is loaded into the memory, the solidification module firstly checks the calibration data in the main Flash area, if the calibration data passes, the calibration data in the main Flash area is loaded into the memory, and if the calibration data does not pass, the calibration data in the redundant Flash area is checked, and after the calibration data passes, the calibration data in the redundant Flash area is loaded into the memory.
In this embodiment of the present invention, the XCP calibration data solidification system further includes:
and the CRC module is used for calculating a CRC value of the calibration data, and the CRC value is used for checking the calibration data when the calibration data are solidified and read.
In an embodiment of the present invention, the XCP calibration data solidifying system further includes:
and the fault event module is used for recording Flash memory Flash errors, CRC inconsistent errors and calibration data invalid errors in the curing process.
In this embodiment of the present invention, the XCP calibration data solidification system further includes:
the communication interface module is used for being in communication connection with external calibration equipment;
and the XCP protocol analysis module is used for analyzing the calibration data and the curing request instruction sent by the external calibration equipment.
In the embodiment of the present invention, the XCP calibration data solidification system further includes:
and the reset management module is used for triggering reset after receiving the curing request so as to enable the ECU to enter an initialization stage to execute the curing processing operation of the calibration data.
In an embodiment of the present invention, a method for solidifying XCP calibration data is further provided, including:
in the ECU execution initialization stage, if a solidification request is not detected, firstly, calibration data in a main Flash area of a Flash memory is checked, if the calibration data passes the check, the calibration data in the main Flash area is loaded into a memory, if the calibration data does not pass the check, the calibration data in a redundant Flash area of the Flash memory is checked, and the calibration data in the redundant Flash area is loaded into the memory after the check passes; if the solidification request is detected, carrying out solidification operation, and writing calibration data in the memory to the main Flash area;
in the ECU operation stage, if a curing request instruction is received, whether the external condition allows the curing operation is detected, if the external condition allows the curing operation, the CRC value of the calibration data in the memory is calculated, the curing request flag bit is set to be valid, the ECU is restarted, then the curing operation is carried out, and the calibration data in the memory is written into a Flash memory; if the external conditions do not allow the curing operation, the curing request instruction is ignored.
In an embodiment of the present invention, the curing operation includes:
firstly, judging whether the CRC value of the calibration data in the memory is consistent with the CRC value of the calibration data in the main Flash area in the Flash memory, and if so, ending the curing operation; if the data in the main Flash area are inconsistent, erasing the data in the main Flash area, writing the calibration data in the memory into the main Flash area, writing a CRC (cyclic redundancy check) value corresponding to the calibration data and the valid flag bit of the main Flash area into a specified position in the main Flash area, setting the curing request flag bit in the memory into an invalid state, and reporting an error and finishing the curing operation if the failure occurs in the erasing or writing process.
In the embodiment of the present invention, in the ECU running stage, after the ECU is restarted, before the curing operation is performed, the method further includes:
firstly, judging whether a curing request flag bit in a memory is valid, if the curing request flag bit is invalid, not carrying out curing operation, if the curing request flag bit is valid, carrying out CRC calculation on calibration data in the memory and judging whether a calculated CRC value is consistent with a CRC value before ECU reset, if the calculated CRC value is inconsistent, not carrying out curing operation, and if the calculated CRC value is consistent, executing curing operation.
In the embodiment of the present invention, verifying calibration data in a main Flash area of a Flash memory includes:
firstly, reading a valid flag bit from the specified address of the main Flash area, judging whether the state is valid or not,
if the calibration data is invalid, the calibration data of the main Flash area is unavailable, and the verification is not passed;
if the CRC value is valid, calculating the CRC value of the calibration data in the main Flash area, comparing the calculation result with the CRC value stored in the main Flash area, if the calculation result is consistent with the CRC value, the verification is passed, and if the calculation result is inconsistent with the CRC value, the verification is not passed.
In the embodiment of the present invention, after loading the calibration data in the main Flash area to the memory, the method further includes:
and backing up the calibration data in the main Flash area to the redundant Flash area, wherein the specific process is as follows:
firstly, judging whether calibration data CRC values respectively stored in the appointed positions of the main Flash area and the redundant Flash area are consistent, if so, finishing backup, if not, erasing the data in the redundant Flash area, completely writing the calibration data in the main Flash area into the redundant Flash area, and then writing the CRC value and the effective mark position of the calibration data into the appointed position of the redundant Flash area.
Compared with the prior art, by adopting the XCP calibration data solidification system and method, in order to avoid that some important parameters cannot be used due to abnormal power failure in the brushing process, a main Flash area for storing calibration data and a redundant Flash area for backing up the calibration data are arranged in a Flash memory, redundant backup of the calibration data area is adopted, and when the calibration data in the main Flash area are invalid, the calibration data can be loaded to a memory area from the redundant Flash area to ensure that an ECU (electronic control Unit) works normally; the data is checked in the process of flashing the calibration data by combining CRC (cyclic redundancy check) to ensure the consistency of the written data; and abnormality diagnosis and detection are performed, and a relevant error code can be recorded when abnormality occurs.
Drawings
Fig. 1 is a schematic structural diagram of an XCP calibration data curing system according to an embodiment of the present invention.
Fig. 2 is a flowchart of an XCP calibration data solidifying method in an ECU initialization phase according to an embodiment of the present invention.
Fig. 3 is a flowchart of calibration data backup of an XCP calibration data solidification method according to an embodiment of the present invention.
Fig. 4 is a flowchart of the XCP calibration data solidifying method in the ECU operating phase according to the embodiment of the present invention.
Fig. 5 is a flowchart of an XCP calibration data solidifying method according to an embodiment of the present invention after the ECU is restarted.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and examples. It should be understood that the following specific examples are only for illustrating the present invention and are not to be construed as limiting the present invention.
As shown in fig. 1, in an embodiment of the present invention, an XCP calibration data solidifying system is provided, which includes: the device comprises a curing module 1, a Flash driving module 2, a CRC module 3, a fault event module 4, a reset management module 5, an XCP protocol analysis module 6 and a communication interface module 7. The following description will be made separately.
The curing module 1 is used for loading the calibration data in the Flash memory into a memory (RAM) when no curing request exists, executing curing operation when the curing request is received, and curing the calibration data in the memory into the Flash memory.
The Flash drive module 2 is configured to set a main Flash area for storing the solidified calibration data and a redundant Flash area for backing up the calibration data in the main Flash area in a Flash memory, and erase, read, and write the main Flash area and the redundant Flash area according to an operation instruction of the solidification module 1. When loading the calibration data in the Flash memory into the memory, the curing module 1 firstly checks the calibration data in the main Flash area, if the check is passed, the calibration data in the main Flash area is loaded into the memory, and if the check is not passed, the calibration data in the redundant Flash area is loaded into the memory. Similarly, before loading the calibration data in the redundant Flash area into the memory, the calibration data in the redundant Flash area needs to be checked, and if the calibration data fails to pass the check, an invalid error of the calibration data is reported to the failure event module 4.
The CRC module 3 is configured to calculate a CRC value of the calibration data, where the CRC value is used to check the calibration data when the calibration data is cured and read.
The fault event module 4 is used for recording Flash memory write-in errors, CRC (cyclic redundancy check) inconsistency errors and calibration data invalid errors in the curing process, so that the reason of the system problems can be conveniently analyzed.
And the resetting management module 5 is used for triggering the ECU resetting operation after the ECU receives the curing request in the running stage of the ECU, resetting the ECU and executing the curing processing operation of the calibration data.
The communication interface module 6 is used for performing communication connection with an external calibration device 8, and may be a CAN communication module. The external calibration device 8 is typically an INCA calibration device for modification of calibration data, real-time observation of relevant internal variables and sending of a cure request command.
And the XCP protocol analysis module 7 is used for analyzing the calibration data and the curing request instruction sent by the external calibration equipment 8 and sending the analyzed data to the curing module 1.
The operation of the XCP calibration data fixing system of the present invention will be described with reference to fig. 2 to 5.
As shown in fig. 2, when the ECU executes the initialization phase, it obtains the current status of the cure request flag bit, and if the status is valid, executes the cure processing function, otherwise executes the calibration data loading process. Assuming that the solidification request flag bit is invalid, firstly reading a valid flag bit from a specified memory address of the main Flash area, if the status is valid, indicating that the calibration data in the main Flash area is available, calculating CRC values of all the calibration data in the main Flash area by using the CRC module 3 according to the initial address and the length of the calibration data, comparing the calculation result with the CRC value stored in the main Flash area, if the calculation result is consistent with the CRC value stored in the main Flash area, loading the calibration data in the main Flash area into a memory, and executing a backup function of a redundant Flash memory after the process is completed. If the flag bit in the main Flash area is invalid or the CRC check result is inconsistent in the above process, reporting an invalid error or a CRC check error of the calibration data of the main Flash memory to the failure event module 4, and meanwhile, taking into account the use of the calibration data in the redundant Flash area and loading the calibration data into the memory, wherein the specific operation steps are the same as those of the operation on the main Flash area, and are not described herein again. If the valid flag bit of the data is invalid or the CRC check is inconsistent in the process of loading the data in the redundant Flash area, the invalid error of the calibration data is reported to the fault event module 4, in order to ensure the safety, the ECU prohibits the execution of certain functions, and simultaneously, the external calibration equipment 8 is used for re-executing the calibration work of the related parameters.
As shown in fig. 3, the processing flow is a backup processing flow of the calibration data of the redundant Flash area. Assuming that valid calibration data exists in the main Flash area, before backup is executed, firstly, reading CRC values of the calibration data from specified positions of the redundant Flash area and the main Flash area respectively, if the CRC values are consistent, indicating that the two storage areas have the same calibration data, ending the backup processing process, otherwise, continuing to execute the backup processing. Firstly, the Flash drive module 2 is used for erasing the redundant Flash area, if the erasing operation is completed and a successful state is returned, all calibration data in the main Flash area are written into the redundant Flash area, and if the writing operation is completed and a successful state is returned, the CRC value and the valid flag bit of the calibration data are respectively written into the designated position of the redundant Flash area. In the process of executing the backup of the redundant Flash area, if the conditions of erasure failure or Flash failure occur, reporting the programming error of the redundant Flash area to the fault event module 4, and simultaneously ending the backup processing.
As shown in fig. 4, the processing flow of the XCP solidification request received by the ECU in the operation phase is shown. After the INCA calibration equipment 8 is used for updating relevant calibration data, a curing instruction is issued, after the ECU receives the curing request, in order to ensure the operation safety of the ECU and avoid causing damage to a human body, whether the current vehicle operation conditions (such as no high voltage and zero vehicle speed) allow curing operation is judged firstly, if the conditions are met, all the calibration data in the memory are calculated by combining the CRC module 3, the calculated CRC value is compared with the CRC value of the main Flash area, if the comparison result is inconsistent, the calibration data in the memory is really modified, a curing flag bit is set to be effective in the designated address in the memory, and meanwhile, the reset management module 5 is called to execute software reset operation. In the above process, if the curing condition is not satisfied or the CRC check result is consistent, the curing operation is ignored.
As shown in fig. 5, the flow of the curing process after the ECU is reset is shown. After the ECU is reset and restarted, firstly reading the curing request flag bit from the designated address in the memory, judging that the curing request flag bit is valid, in order to ensure that the calibration data in the memory before and after the ECU is reset is not accidentally tampered, combining the CRC module 3 again, performing CRC calculation on all the calibration data in the memory, comparing the calculation result with the CRC before the ECU is reset, if the calculation result is not consistent with the CRC before the ECU is reset, ignoring the curing process, otherwise, continuously executing the curing process. The solidification operation is that firstly, the Flash drive module 2 is used to erase the main Flash area, if the erasing operation is completed and the successful state is returned, the calibration data in the memory is written into the main Flash area, if the writing operation is completed and the successful state is returned, the CRC value corresponding to the calibration data and the valid flag bit of the main Flash area are respectively written into the appointed position, and meanwhile, the solidification request flag bit is set to be in the invalid state. In the process of executing the Flash area Flash, if the conditions of erasure failure or Flash failure occur, reporting the programming error of the main Flash memory to the fault event module 4, and simultaneously finishing the solidification processing.
In summary, by using the XCP calibration data solidification system and method of the present invention, in order to avoid that some important parameters cannot be used due to abnormal power failure in the Flash process, a main Flash area for storing calibration data and a redundant Flash area for backing up calibration data are set in the Flash memory through the Flash driver module, and a redundant backup of the calibration data area is used, so that when the calibration data in the main Flash area is invalid, the calibration data can be loaded to the memory area from the redundant Flash area, thereby ensuring that the ECU normally works; the data is checked in the process of flashing the calibration data by combining CRC (cyclic redundancy check) to ensure the consistency of the written data; and abnormality diagnosis and detection are performed, and a relevant error code can be recorded when abnormality occurs.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. An XCP calibration data solidification system, comprising: a curing module and a Flash driving module,
the solidification module is used for loading the calibration data in the Flash memory into the memory when no solidification request exists, executing solidification operation when the solidification request is received, and solidifying the calibration data in the memory into the Flash memory;
the Flash drive module is used for setting a main Flash area for storing solidified calibration data and a redundant Flash area for backing up the calibration data in the main Flash area in a Flash memory, and erasing, reading and writing the main Flash area and the redundant Flash area according to an operation instruction of the solidification module;
when the calibration data in the Flash memory is loaded into the memory, the solidification module firstly checks the calibration data in the main Flash area, if the calibration data passes, the calibration data in the main Flash area is loaded into the memory, and if the calibration data does not pass, the calibration data in the redundant Flash area is checked, and after the calibration data passes, the calibration data in the redundant Flash area is loaded into the memory.
2. The XCP calibration data hardening system of claim 1, further comprising:
and the CRC module is used for calculating a CRC value of the calibration data, and the CRC value is used for checking the calibration data when the calibration data is solidified and read.
3. The XCP calibration data hardening system of claim 1, further comprising:
and the fault event module is used for recording Flash memory write-in errors, CRC (cyclic redundancy check) inconsistency errors and calibration data invalid errors in the curing process.
4. The XCP calibration data hardening system of claim 1, further comprising:
the communication interface module is used for being in communication connection with external calibration equipment;
and the XCP protocol analysis module is used for analyzing the calibration data and the curing request instruction sent by the external calibration equipment.
5. The XCP calibration data hardening system of claim 1, further comprising:
and the reset management module is used for triggering reset after receiving the curing request so as to enable the ECU to enter an initialization stage to execute the curing processing operation of the calibration data.
6. A method for fixing XCP calibration data is characterized by comprising the following steps:
in the ECU execution initialization stage, if a solidification request is not detected, firstly, calibration data in a main Flash area of a Flash memory is checked, if the calibration data passes the check, the calibration data in the main Flash area is loaded into a memory, if the calibration data does not pass the check, the calibration data in a redundant Flash area of the Flash memory is checked, and the calibration data in the redundant Flash area is loaded into the memory after the check passes; if the solidification request is detected, carrying out solidification operation, and writing calibration data in the memory to the main Flash area;
in the ECU operation stage, if a curing request instruction is received, whether the external condition allows the curing operation is detected, if the external condition allows the curing operation, the CRC value of the calibration data in the memory is calculated, the curing request flag bit is set to be valid, the ECU is restarted, then the curing operation is carried out, and the calibration data in the memory is written into a Flash memory; if the external conditions do not allow the curing operation, the curing request instruction is ignored.
7. The method of XCP calibration data hardening of claim 6, wherein said hardening operation comprises:
firstly, judging whether the CRC value of the calibration data in the memory is consistent with the CRC value of the calibration data in the main Flash area in the Flash memory, if so, ending the curing operation; if the data in the main Flash area are inconsistent, erasing the data in the main Flash area, writing the calibration data in the memory into the main Flash area, writing a CRC (cyclic redundancy check) value corresponding to the calibration data and the valid flag bit of the main Flash area into a specified position in the main Flash area, setting the curing request flag bit in the memory into an invalid state, and reporting an error and finishing the curing operation if the failure occurs in the erasing or writing process.
8. The method of claim 6, wherein during the ECU run phase, after the ECU is restarted, and before the curing operation, the method further comprises:
firstly, judging whether a curing request flag bit in a memory is valid, if the curing request flag bit is invalid, not performing curing operation, if the curing request flag bit is valid, performing CRC calculation on calibration data in the memory and judging whether a calculated CRC value is consistent with a CRC value before ECU reset, if the calculated CRC value is not consistent with the CRC value before ECU reset, not performing curing operation, and if the calculated CRC value is consistent with the CRC value before ECU reset, performing curing operation.
9. The XCP calibration data hardening method of claim 6, wherein verifying the calibration data in the main Flash area of the Flash memory comprises:
firstly, reading a valid flag bit from the specified address of the main Flash area, judging whether the state is valid or not,
if the calibration data is invalid, the calibration data of the main Flash area is unavailable, and the verification is not passed;
if the CRC value is valid, calculating the CRC value of the calibration data in the main Flash area, comparing the calculation result with the CRC value stored in the main Flash area, if the calculation result is consistent with the CRC value, the verification is passed, and if the calculation result is inconsistent with the CRC value, the verification is not passed.
10. The XCP calibration data hardening method according to claim 6, further comprising, after loading the calibration data in the main Flash area into the memory:
and backing up the calibration data in the main Flash area to the redundant Flash area, wherein the specific process is as follows:
firstly, judging whether CRC values of calibration data respectively stored in designated positions of the main Flash area and the redundant Flash area are consistent, if so, finishing backup, if not, erasing data in the redundant Flash area, writing all calibration data in the main Flash area into the redundant Flash area, and then writing the CRC values and effective flag bits of the calibration data into the designated positions of the redundant Flash area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210074005.3A CN114510376A (en) | 2022-01-21 | 2022-01-21 | XCP calibration data curing system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210074005.3A CN114510376A (en) | 2022-01-21 | 2022-01-21 | XCP calibration data curing system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114510376A true CN114510376A (en) | 2022-05-17 |
Family
ID=81548963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210074005.3A Pending CN114510376A (en) | 2022-01-21 | 2022-01-21 | XCP calibration data curing system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114510376A (en) |
-
2022
- 2022-01-21 CN CN202210074005.3A patent/CN114510376A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6401163B1 (en) | Apparatus and method for rewriting data from volatile memory to nonvolatile memory | |
EP3629176B1 (en) | Fault detection circuit with progress register and status register | |
CN109800032B (en) | BOOTROM multi-core loading method and device | |
US8260490B2 (en) | Method for improving diagnosis of a possible breakdown in a vehicle | |
CN114385421A (en) | Data storage method and device, electronic equipment and storage medium | |
US20080133975A1 (en) | Method for Running a Computer Program on a Computer System | |
CN113867750A (en) | SOC processor software online upgrading method | |
CN112441110B (en) | State management method for power-assisted mode of electric power-assisted steering system | |
CN114510376A (en) | XCP calibration data curing system and method | |
JPH0633828A (en) | On-vehicle electronic control | |
CN112394965B (en) | Battery management system upgrade and operation method, controller, battery management system and storage medium | |
CN111831324A (en) | Rail transit control device parameter configuration method based on functional safety | |
JP2008195130A (en) | Control device for vehicle and method of controlling same | |
US20230153029A1 (en) | Architecture for Memory Management | |
US20100083073A1 (en) | Data processing apparatus, memory controlling circuit, and memory controlling method | |
CN113094107A (en) | Data protection method, device, equipment and computer storage medium | |
CN116430835B (en) | Fault storage and analysis method of Cortex-M microcontroller | |
WO2013073009A1 (en) | Microcomputer system and monitoring microcomputer | |
JP4398102B2 (en) | Automotive electronics | |
EP4296850B1 (en) | Processing system, related integrated circuit, device and method | |
CN114995863B (en) | Software reprogramming system and software reprogramming method based on reprogramming system | |
CN114721864A (en) | ECU (electronic control Unit) flash test error detection method, device, equipment and storage medium | |
JP2002047998A (en) | Controller for vehicle | |
JP7251382B2 (en) | vehicle diagnostic equipment | |
KR19980019215A (en) | Microcomputer with self-diagnostic unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |