Skip to content

TunerPro XDF ​

Credit and licence

These definitions are the work of the MS4x community / MS4x Dev Team (ms4x.net). They are redistributed here unmodified, for convenience. The files do not state a licence, so all rights stay with their authors. Check ms4x.net for current versions, and prefer their download if you can.

Downloads ​

FileAuthor / dateForContents
Siemens_MS43_430069_512K.xdfMS4x Dev Team, v1.12, 2022-01-01430069, 512 KB full image (BASEOFFSET 0x70000)1447 tables, 2256 constants
Siemens_MS43_430069_64K.xdfsame430069, 64 KB calibration (BASEOFFSET 0)identical items
Siemens_MS43_430064_512K.xdfMS4x Dev Team, v1.12, 2022-01-09430064, 512 KB1437 tables, 2178 constants
Siemens_MS43_MS430069_Community_Patchlist_v2.9.2.xdfMS4x Dev Team, v2.9.2, 2023-01-16430069 only, 512 KB27 patches, 31 tables, 13 constants, 2 flags (Patchlist)

The XDFs mark themselves "autogenerated and could contain errors, use at your own risk".

Parsed catalogues (JSON, one record per item with address, size, signedness, endianness, dimensions, axes, MATH, units and description): data/xdf_430069.json, data/xdf_430064.json, data/patchlist.json, generated by tools/parse_xdf.py:

bash
python3 -I tools/parse_xdf.py Siemens_MS43_430069_512K.xdf data/xdf_430069.json

Which XDF fits which SW ​

Check the SW number at file 0x70008 (512 KB) or 0x0008 (64 KB): 430069, 430066, …

SWUse
430069430069 XDF (512K or 64K to match the file) + patchlist
430064430064 XDF
430066 (and others)No matching XDF. The 430069 XDF is wrong for 87% of items (shifts of −14 … +10 bytes), the 430064 XDF for 93%. Flash 430069 first, or rebase. See Variants

[verified] against the 430069 and 430066 images.

What's inside (430069) ​

  • All items are in the calibration (0x70042–0x7EE0A): 2255 scalars and 6 small tables in 0x70042–0x72FFF, the CRC word cal_cks at 0x73FE0, and 1441 tables at 0x74000+. Nothing in the program.
  • 1056 2-D tables (curves and 1-D arrays), 391 3-D tables. 1805 items are 16-bit, 1895 are 8-bit, 3 are 32-bit. 97 are signed. Every multi-byte item is little-endian (mmedtypeflags 0x02, or 0x03 when signed). The 3 items without type flags are 8-bit.
  • Axes are separate items. 599 tables in category Axis hold the breakpoints (ldp_*, ldpm_*). 1233 table axes link to them by id (embedinfo type=3), 2 read breakpoints from an address, the rest are fixed labels.
  • Names are the Siemens/BMW internal ones (ip_ 3-D map, id_ curve, c_ constant, ldp_ axis, lc_ switch …). 1037 items have a description.

Categories ​

61 categories, the same set in both XDFs. Items per category (an item can be in more than one):

Category430069430064
Diagnostic Trouble Codes647619
Axis599593
Lambda Controller253254
Throttle225225
DTC Suppression165157
Injection161161
Ignition158158
Idle Speed158157
Catalyst118118
Torque103103
System Monitoring, Vanos91 each91 each
Misfire7474
DMTL7373
Knock6464
Coolant Temperature6147
Secondary Air5959
Cruise Control5454
Engine Speed5151
System Diagnosis4747
Airflow Meter4646
Trailing Throttle Fuel Cut4444
Config Switches3128
Canister Purge3029
Ambient Air, Fuel System26 each13 / 25
Torsion Correction2424
Vehicle Speed, Coolant Fan23 each23 each
Anti Jerk, CAN, eThermostat22 each22 each
AT-Gearbox2020
Limp Home1919
Exhaust Gas Temperature1818
Intake Air, Exhaust Flap17 each7 / 17
Clutch Switch1515
Full Load Detection1313
Air Conditioner1111
Sensor Definitions1010
Oil Temperature, Alternator9 each9 each
Crankshaft88
Intake Model, DISA6 each6 each
Engine Start, Battery Voltage5 each2 / 5
Warm Up, Checksums, Timer, Rough Road Detection4 each4 each
Main Relay, Gear Recognition, Fuel Pump, Steering Wheel, OBD3 each3 each (OBD 2)
Kilometer Counter22
EWS11

The Checksums category exposes cal_cks (0x73FE0), cal_mon_cks_1/2 (0x72FFC/0x72FFE) and lc_swi_cal_mon_cks (0x70E07) as raw values. TunerPro does not recompute them.

Workflow ​

  1. Read the ECU (nfsx) or take an existing dump. Check the SW at 0x70008; use the matching XDF (above).
  2. Open the bin in TunerPro (or tunex) and edit.
  3. Recompute the checksums. No checksum plug-in is defined in these XDFs:
    bash
    python3 -I ms43_checksum.py edited.bin --fix
    python3 -I ms43_checksum.py edited.bin          # must print "all checksums valid"
    Download: ms43_checksum.py. For a 512 KB image it fixes all six checksums (add-32 first, then CRCs). For a 64 KB file it fixes the calibration CRC and, for 430066/430069, the calibration add-32. See Checksums.
  4. Flash the calibration (DS2 writes 0x70000–0x7FFEE), or program + calibration after a patchlist change.

DANGER

Don't edit the idents (0x70000–0x7004B, 0x6FFB2–0x6FFEF) or the trailers (0x6FFF0, 0x7FFF0). The calibration CRC seed is read from 0x7000C (the SW digits), so changing the SW string changes the CRC too.