ECUTechnicalAdvanced⏱ 9 min read

ECU checksums, family by family

How many checksums a file carries, where they live, which ones a tool silently misses, and how to prove a correction is right without a bench — measured on our own reads, family by family.

FLASH IMAGE 0x000000 0x0FFFFF PROGRAM CALIBRATION SUM 0x.. the region the stored value is computed over get this boundary wrong and the sum still computes — it is just rejected Many families store several of these, in different places, covering different regions.

What a checksum actually is

An ECU checksum is not a security feature. It is a consistency test: a number stored in the flash that is supposed to match a value the ECU recomputes from the bytes around it. When the two disagree, the ECU knows its own program or calibration has been altered or corrupted, and it reacts — sometimes with a fault code, sometimes with a limp mode, sometimes by refusing to run at all.

It is also not the value emissions regulators look at. That one is the CVN, reported over Mode 09, and the ECU computes it by itself — correcting the checksums below has no effect on it.

That is the whole mechanism. Everything else — which bytes are covered, where the stored value lives, whether it is a sum, a CRC or something else entirely — changes from one ECU family to the next, and sometimes from one software version to the next inside the same family.

⚠
The single most expensive assumption in this field: that « the checksum » is one value. On many families it is several, in different places, covering different regions. Correct one and the ECU still knows.

The three questions to answer before you flash

Before touching a calibration, three things decide whether the file will run:

  1. How many checksums does this software version carry? Not the family — the version. Two files with the same hardware number can carry different checksum layouts.
  2. What region does each one cover? A sum over 0x000000–0x0FFFFF and a sum over the calibration block alone are not interchangeable, and editing a map may move one without touching the other.
  3. Is the stored value a sum, or something that cannot be reproduced by addition? This is testable, and the test is cheap — see below.

If any of the three is unknown, the honest answer is that the file is not ready, however good the map edit is.

Family by family: what we measured

The table below is not copied from a tool’s documentation. Each line is what we observed directly while reading, editing and verifying files in our own library — roughly 118,000 original and modified reads across the common European platforms. Where a behaviour varies inside a family, the table says so rather than averaging it away.

ECU familyChecksums to correctWhat makes it awkward
Bosch ME7.5 (1.8T petrol)Three, not oneCorrecting only the main one leaves the ECU aware. The stored table is neither at a fixed address nor of a fixed size across versions.
Bosch ME7.4.5 (PSA petrol)One, region-boundedThe end boundary of the covered region is easy to get wrong by a few bytes; the sum then looks plausible and is still rejected.
Bosch EDC15C5 / EDC15C6OneA 32-byte identity block sits near the checksum area. Overwriting it to match a donor file breaks identification, not the checksum.
Bosch EDC16 (U34 and relatives)Several, interdependentGrafting a map block from another file reliably invalidates more than you corrected. Delivering a complete, already-consistent file removes the problem rather than solving it.
Bosch EDC17 / MD1 / MG1Several, plus RSA signing on later variantsOn signed variants a correct checksum is not sufficient — the signature is a separate problem, and not one arithmetic can solve.
Sagem S3000 (Renault petrol)One, at a fixed offsetOn the version we verified, the stored value sits at 0xFF7E — near the very end of the image, which partial reads often truncate.
Denso (MPC-based)A region table, not a single valueSee the case study below: on the image we analysed, a 13-region table at 0x1FFC24 — and not a CRC.
Continental SID / PCRVaries by software versionPartial reads are common here: a file starting at 0x040000 does not contain the region a checksum covers, so the sum cannot be computed from it at all.
ℹ
Read that table as evidence, not doctrine. Each line is true for the files we verified it on. The useful conclusion is not « EDC16 has N checksums » — it is that the count and the location must be established per software version, and never inherited from a family name.

Case study: a Denso table that is not a CRC

This one is worth describing in full, because it shows how to settle the question instead of guessing at it.

On a Denso MPC-based image we were working through, a structured table sat at 0x1FFC24: thirteen entries, each pairing an address range with a stored value. The obvious hypothesis was a CRC per region — that is what most people assume, and it is usually where the work stops, because reproducing an unknown CRC polynomial by trial is a long road.

Before taking that road, we tested the hypothesis. A CRC and a plain additive sum behave differently under one simple arithmetic property: take the differences between the stored values and the plain sums over their regions, then compute the greatest common divisor of those differences. For a true CRC those differences carry no common structure. Here they did — consistently.

The conclusion: it was not a CRC. The values were reproducible by addition over the declared regions. Days of polynomial hunting were avoided by thirty seconds of arithmetic on data we already had.

✓
The transferable lesson. Before trying to reverse an algorithm, test whether it is the simple one. A GCD check over stored-value differences costs nothing, and it answers a question most people answer by assumption.

Why so many circulating files carry wrong checksums

This is not a theoretical concern. Among the modified files we have examined — files sold, shared and flashed — incorrect or incompletely corrected checksums are common, not rare. The usual causes, in order of how often we meet them:

  • Only the first checksum was corrected. The tool reported success, because the tool corrected the one it knew about.
  • The region boundary came from a different software version. The sum computes cleanly and is still wrong.
  • A map block was grafted from a donor file whose layout differs, invalidating checksums the editor never looked at.
  • The read was partial. A file that does not contain the covered region cannot carry a valid sum over it, and no correction tool can invent the missing bytes.
  • Nothing was recalculated at all — the file was edited and shipped. On ECUs tolerant enough to run anyway, this survives until a diagnostic session reveals it.

Our own checksum corrector for ME7.5 currently reproduces the stored values on 13 of the 24 original/modified pairs we test it against. We publish that number as it is, because a corrector that claims a family it only half handles is worse than no corrector at all: it turns a visible problem into an invisible one.

How to verify without a bench

You do not need a running engine to catch most checksum errors. What you need is a reference pair: an untouched original read from the same software version, and the modified file.

  1. Diff them. Every byte that differs should be either a map you meant to change or a checksum you meant to correct. A third category — differences you cannot account for — means stop.
  2. Recompute the sum over the declared region on the original. If your method cannot reproduce the value already stored in a known-good file, it will not produce a correct one for the modified file either. This is the test that catches a wrong boundary.
  3. Check the file length and the start address. A truncated or offset read is the most common reason a checksum « cannot be solved ».
  4. Verify the identification bytes are untouched. Hardware and software numbers are not checksum material; changing them to match a donor hides a mismatch instead of fixing it.

Step 2 is the one most often skipped and the one that does the most work. Validating a method against a value you already know to be correct is the only way to separate « my arithmetic is right » from « my arithmetic happens to produce a number ».

In short

  • A checksum is a consistency test, not protection — but it will stop a file from running.
  • Establish the count, the region and the algorithm per software version, never per family name.
  • Test for the simple algorithm before reversing a complex one. The Denso case above cost thirty seconds instead of days.
  • Validate any correction method against an original whose stored value you already know.
  • If a number cannot be justified by a reference file, do not write it. A file that runs is not the same thing as a file that is correct.

Everything above comes from files we read, edited and verified ourselves. Where we have not verified something, this article says so — which is the only reason the rest of it is worth citing.

🎓 Recommended course
Stage 1 on ECM Titanium course

Find the Stage 1 maps and edit them on your own, in ECM Titanium.

29,90€
See the course →
What customers say

Real WhatsApp messages, untouched.

See all reviews →
Customer review on WhatsAppCustomer review on WhatsAppCustomer review on WhatsAppCustomer review on WhatsAppCustomer review on WhatsAppCustomer review on WhatsApp
🌐 Language