An ECU checksum is a value stored in the flash image that the control unit, or its programming tool, recalculates from a defined range of bytes and compares with the stored copy. It exists to detect memory that has been corrupted or only partly programmed. ECU images may contain several such integrity checks over separate or overlapping regions. After a covered byte changes, correction calculates and stores the value expected for the modified data, which is why an edited calibration has to be corrected before it is written. The arithmetic examples here are invented, not ECU recipes.
A checksum is an integrity check, not proof of origin. Anyone who knows the algorithm can recompute it, which is why later ECU generations add digital signatures that cannot be recomputed without a private key. Correcting a checksum and getting past a signature or tuning protection are different things, and a file with every checksum correct can still be rejected, or be detectable as modified.
What the checks protect
The program and the calibration data live in the same non-volatile memory. Bosch's diesel control handbook describes monitoring functions in hardware and software that check the microcontroller, the flash memory and the RAM, many of them as soon as the unit is switched on, with the long-running memory check on petrol systems run after the engine is switched off. The standardised E-Gas monitoring concept agreed by Audi, BMW, Daimler, Porsche and Volkswagen makes this a safety requirement: RAM and ROM are to be tested at least once per driving cycle, and engine start or combustion is permitted only after the check has completed without a fault. The memory test is part of the controller-monitoring level of that concept, whose safety goal is the prevention of unintended acceleration; see Torque monitoring and ECU safety levels.
Because flash memory is divided into separately erasable blocks, checks are usually per block. EVC, the publisher of WinOLS, describes the EDC16/EDC17 layout as an operating-system block at the bottom, the user program above it and the map data at the top, with the map area reprogrammable on its own. A calibration-only write over the diagnostic socket therefore touches only the checks that cover the calibration block, plus anything that links it to the program.
Define the check
Establish each covered range and inclusive or exclusive endpoints, data order and unit size, calculation width, initial value, arithmetic and final transformation, check-field location and byte order, and whether the field is excluded, zeroed or included. Record exact software and whether addresses describe ECU memory, full image or partial file. A format may store a check and complement or check the residue over data and check together.
Different sequences can share a checksum. A pass confirms only the check performed; it does not prove correct software, calibration, signature or programming.
Additive sums and complements
An unsigned n-bit additive sum is S = (initial + sum of covered units) modulo 2n. Overflow wraps. A format may store S, its bitwise complement, its two's-complement negative or another transformation. It may sum 8-, 16- or 32-bit units; multi-byte unit byte order matters. A sum detects most accidental corruption, but offsetting changes cancel out, so it is weak against deliberate edits.
Worked 8-bit example: data bytes 10 20 30 in hexadecimal, initial value 00, sum to 60. If the stored check is the two's-complement negative, the check is A0: (60 + A0) modulo 100 = 00, where hexadecimal 100 is decimal 256. Change 20 to 25 and the data sum becomes 65; its recalculated check is 9B. The full sum remains 00 modulo 256. This example checks a zero residue including the check; real formats can differ.
Compensation: if a specifically documented, writable and semantically unused byte is inside that same additive region, change +05 can be mathematically offset by changing that byte by −05 modulo 256, leaving the original sum and check unchanged. For example 40 becomes 3B. This works because addition is modulo 256. Word boundaries, data use, other checks and flash behaviour can invalidate the approach. Blank-looking bytes are not proof a location is unused. A preserved checksum or CVN does not prove the data is unmodified.
CRC calculations
A cyclic redundancy check uses polynomial arithmetic over GF(2), where addition is XOR. Its remainder depends on the message and parameters. CRCs detect many error patterns that simple sums miss, but are not cryptographic authentication. Record polynomial, width, initial register, input and output reflection, final XOR and exact bytes and ordering. Stored byte order is a separate choice. Reflected code may use a reversed polynomial representation.
Algorithm test: CRC-32/ISO-HDLC uses width 32, polynomial 0x04C11DB7, initial 0xFFFFFFFF, reflected input and output, and final XOR 0xFFFFFFFF. On ASCII 123456789 the check is 0xCBF43926. This tests that implementation and parameters; it does not establish an ECU uses them. CRC RevEng catalogue.
Correction normally recalculates the specified CRC over final covered bytes and encodes it as the format requires. CRCs are linear or affine under their parameters, so constructed changes can yield a chosen residue in some layouts; there is no universal safe compensating byte.
Multiple checks and dependencies
A file may have block checks, checks covering a table containing other check values, and compatibility information between program and calibration. If B covers A's stored field, calculate and store A first, then B. Draw actual dependencies; nested checks may need a format-specific procedure. The layered forms documented for production ECUs include:
- Multipoint or multi-range checks. A table of descriptors in the image lists many start and end addresses, each with its own stored sum, which localises corruption to a region. The open-source ME7Sum tool reports, for one Bosch ME7 variant, three boot-time sums, a CRC32 over the calibration and two multipoint blocks with 2 and 32 descriptors.
- Block-linking checks. A data structure ties program and calibration blocks together so that a calibration is only accepted with the program it was built for. EVC describes such a compatibility-test structure for some Bosch EDC16/17 systems; that does not establish identical behaviour in every variant. EVC compatibility-test FAQ.
- Duplicate blocks. A second copy of a data block is stored and compared at start-up. EVC documents this in Bosch truck ECUs.
What the ECU does when a check fails
The reaction depends on which check fails and when it is evaluated. The documented cases are:
- Stay in the boot block. The E-Gas concept lists "programming not finished" and "programming fault" as flash faults whose reaction is to remain in the boot block. In that state the engine application is not started. Whether an interrupted write can then be repeated over the same connection depends on the unit and the tool and is not covered by that document.
- No start. Where the memory test must pass before start is released, a failed test means the engine does not start. EVC states this for the duplicate-block check in Bosch truck ECUs, and training material from High Performance Academy describes refusal to start as the usual result of an uncorrected checksum.
- Reset and re-test. The E-Gas concept requires that when a RAM or ROM fault has caused a reset, the whole monitored memory is checked again before a new start is released, and that the number of resets per driving cycle is limited, after which the power output stages stay off until the next restart.
- Fault code with restricted operation. P0601 is the generic OBD code set when a control module's internal memory checksum test fails; consumer references list symptoms ranging from a warning lamp alone to stalling or failure to start. Ford's 2023 diesel OBD summary gives a transmission-side example: a checksum fault in the solenoid characterisation block sets P163E and the gearbox enters a limited operating mode.
- Nothing visible. Not every check is evaluated by every ECU. EVC notes that the compatibility-test checksum is not tested in all units and recommends calculating it regardless. A file that starts and runs is therefore not proof that all of its checks are correct.
Checksum, hash and signature
A checksum or CRC primarily detects accidental changes. A cryptographic hash identifies a particular backup or file, but an unkeyed hash alone does not authenticate its source. A digital signature can authenticate the signer and detect modification under its verification scheme. Recalculating a checksum or hash does not generate a valid signature for altered signed content; signing requires the appropriate authorised signing capability. NIST Digital Signature Standard.
EVC's account of the Bosch transition shows where the line falls. According to that vendor, RSA makes reliable correction by third parties difficult; on EDC16 the implementation used computational shortcuts to keep start-up time short, which weakened it enough for the value to be calculated, while the more powerful processors in MED17/EDC17 allow a fuller check for which, in EVC's words, "a simple checksum correction is impossible". The workarounds that vendor describes depend either on a particular unit checking less than it could, or on changing the part of the program that holds the verification key, which the ECU blocks over the diagnostic socket and which some units prevent permanently with one-time-programmable memory. Those are protection bypasses and belong to a different category from checksum correction.
Current Bosch practice moves verification into hardware. Bosch states that software updates carry a digital signature checked at installation against a root certificate held in a hardware security module inside the microcontroller, and that at each start a checksum of the software is recalculated and compared with a reference stored in that module (secure boot).
A corrected checksum also does not conceal a modification. The calibration verification number (CVN) reported through OBD is calculated from the software itself and changes automatically when the software changes. California's Bureau of Automotive Repair announced that from July 2020 its OBD inspection would check the reported calibration ID and CVN and fail vehicles with unapproved software modifications.
Correction in practice
- Preserve the original read; identify its exact software, memory coverage and format. Validate the original and investigate failures. If a tool reports errors on an original file, it does not understand that file and its corrections cannot be trusted; the ME7Sum documentation makes this point and warns that files previously altered by another tuner may contain changed check routines that the tool will not recognise.
- Edit a copy and keep a byte comparison. Use a checker or correction module explicitly supporting the controller, software and read format; establish which checks the writer handles. Prefer tools that refuse to write when they cannot locate every check, as ME7Sum does.
- Correct after dependent edits, in the documented order. Independently verify all supported blocks where possible.
- Compare corrected output with edited input; changes should be explained by documented checksum, complement or supported metadata fields. Save versions, reports, hashes and writer output or log.
Automatic correction depends on tool and module: EVC describes WinOLS checksum plug-ins that detect whether they fit the project and recalculate after each change. Many flashing tools correct the file as they write it, and where both the editor and the flasher correct, the workflow has to be known so that neither is skipped. EVC also describes an alternative for the compatibility check on EDC16/17: instead of changing the stored result, a compensating value is written at the end of the map area so that the original result remains valid, which suits diagnostic-socket programming where only the map area is written. A success message does not establish coverage of every integrity or authentication layer, and a passing checksum does not validate a single map value, which is one of the points made in Common misconceptions about remapping.
Not established
- The reaction to a failed check is not documented by manufacturers for most individual ECU types. The cases above are requirements from the E-Gas concept, one Ford document and vendor statements; behaviour for a specific unit should be taken from evidence for that unit.
- The algorithm used for the CVN is not specified in the sources cited.
Related pages
Identification and workflow · Bosch ME7 · Siemens MS43 · MSS54 partial files · VAG EDC16 programming files · Sagem S2000 and S3000 files · Calibration maps, axes, interpolation and scaling.
Technical principles and invented arithmetic are editorial explanations and do not assert hardware testing.
Worked ECU examples
- MSS54: calculate and correct a CRC.
- MS43: additive monitoring checks and CRC order.
- Bosch ME7: interpret an actual checksum report.
Sources
- Catalogue of parametrised CRC algorithms, CRC RevEng, undated. CRC-32/ISO-HDLC parameters and check value. Checked 10 November 2026.
- FIPS 186-5, Digital Signature Standard, NIST, 2023. Signature generation and verification. Checked 10 November 2026.
- Standardized E-Gas Monitoring Concept for Gasoline and Diesel Engine Control Units, version 5.5, EGAS Workgroup (Audi, BMW, Daimler, Porsche, VW), 5 July 2013, independent PDF mirror. RAM/ROM test per driving cycle, start release, boot-block reaction to programming faults, reset behaviour (sections 10.1.5, 10.1.5.8 and appendix 11). Accessed 2026-11-19.
- Electronic Diesel Control (EDC), Robert Bosch GmbH, 2001, independent PDF mirror, printed pages 40 to 41 and 79. Program and data memory, flash programming, monitoring of microcontroller, flash and RAM. Accessed 2026-11-19.
- Compatibility test checksum and Fix compatibility test checksum, EVC electronic GmbH FAQ, undated. EDC16/17 block structure, block-linking check, compensation method; vendor documentation. Accessed 2026-11-19.
- Change RSA key, EVC electronic GmbH FAQ, undated. RSA on EDC16 and MED17/EDC17, limits of correction; vendor documentation. Accessed 2026-11-19.
- Synchronise control block, EVC electronic GmbH FAQ, undated. Duplicate data blocks in Bosch truck ECUs and the no-start result of a mismatch. Accessed 2026-11-19.
- WinOLS software description, EVC electronic GmbH, undated. Checksum modules and automatic correction. Accessed 2026-11-19.
- ME7Sum README, nyetwurk and 360trev, undated. Check types found in one ME7 variant and cautions on verification; open-source tool documentation. Accessed 2026-11-19.
- Well protected: Automotive Cybersecurity from Bosch, Robert Bosch GmbH, undated. Signature check at installation, hardware security module, secure boot. Accessed 2026-11-19.
- 2023 MY OBD System Operation Summary for Diesel Engines, Ford Motor Company, revision 25 August 2023, page 126. P163E programming checksum fault and limited operating mode. Accessed 2026-11-19.
- Cal ID and CVN Detect Programming Modifications, California Bureau of Automotive Repair, Spring 2020. CVN definition and inspection use. Accessed 2026-11-19.
- What Is A Checksum Correction?, Taz Quinn-Walshe, High Performance Academy, undated. Training-provider description of no-start and of automatic correction by flashing tools. Accessed 2026-11-19.
- P0601, Kelley Blue Book OBD-II reference, undated. Consumer-level definition of the memory checksum fault code. Accessed 2026-11-19.