Skip to content

Research notes ​

Provenance, method and open questions. Written 2026-11-30.

Sources ​

SourceUsed for
MS4x Dev Team XDFs v1.3 (Siemens_MS42_0110C6_ENG_512K/32K_v1.3.xdf, GPL-3.0) and Community Patchlist v1.7.1The map catalogue, the coverage reference, patchlist
16 stock 0110C6 images from github.com/ms4x-net/ms42 (E36-Z3 / E38 / E39 / E46, M52TUB20 / 24 / 25 / 28)Primary analysis target. The program is identical in all 16; 15 distinct calibrations
A private 0110AD full read, a second (JMGarage) read of the same ECU and its 32 KB calibration readVariant comparison (0110AD vs 0110C6), checksum validation
SGBD MS420DS0.prg (rev 1.32), MS420DS1.PRG (rev 1.00), INPA ms420.ipo / Ms42_n.ipoDS2, fault codes
WDS pin-assignment pages (E46 A6000, MS42)Pinout
nfsx source and docsChecksums (three of six), flashing sequence

No firmware binaries are published here. The private dump's VIN and ISN are redacted.

Method ​

  1. Fingerprinting and diffs of every dump: MD5, idents, UIF records, region-by-region diffs (see data/dumps.json).
  2. Checksums: the nfsx implementation was ported to tools/ms42_checksum.py and checked on every dump. Three more checks were found here: a word sum over boot block 2 at 0xBFF8, per-module XOR words in the boot module table at 0xB800, and a CRC per EEPROM-emulation record. See Checksums.
  3. Disassembly with an independent C166 disassembler (to be published separately). MS42 switch tables needed a new jump-table idiom; with it 98.9 % of the code decodes.
  4. Addressing model: bus address = file offset; DPP0–2 point at the calibration pages from reset. The interpolation library at 0x060882–0x060C43 takes a near pointer in R12. From this, every lookup call site, axis and scalar read in the calibration was extracted to data/code_refs.json (see Code structure).
  5. Coverage: code references were compared with the 0110C6 XDF item by item and byte by byte (data/coverage.json, see XDF coverage).

Open questions ​

  • 106 code-read scalars missing from the XDF, 80 of them in the electronic-throttle position controller. Their functions are inferred (see coverage).
  • 3 XDF items whose axes disagree with the code; see coverage.
  • The code that checks the 0xBFF8 word sum was not found.
  • No 0110AD XDF. Older software is expected to be updated to 0110C6; the code references for 0110AD are in research/2026-11-30/disasm/code_refs_0110AD.json if one is ever needed.
  • Directmode writes are not recorded end to end on an MS42 in nfsx; bootmode is bench-verified (nfsx).

XDFs (GPL-3.0) and patchlist by the MS4x Dev Team. Not affiliated with BMW or Siemens.