Memory map
Confidence tags
[verified]: checked against every available dump (two 430069 and three 430066 full images, one 430066 calibration file; see Variants) and/or against code that references it. [inferred]: consistent with the evidence, not proven.
Hardware & file basics
| Item | Value | |
|---|---|---|
| CPU | Infineon C167CR (C166 family, 16-bit), little-endian | [verified] (C166 code throughout; BSL ident 0xC5, see nfsx bootmode.md) |
| Flash | 512 KB external, x16, AM29F400B-class bottom-boot: 16K / 8K / 8K / 32K / 7 × 64K (11 sectors) | [inferred] from region boundaries and the bootmode flash driver's 11-sector erase table |
| EEPROM | Separate SPI EEPROM on the C167 SSC (bootmode commands 0xA8/0xA9) | [inferred] from nfsx bootmode.md; not part of any flash dump |
| Full dump | 512 KB (0x80000), file offset = flash offset | [verified] |
| Calibration file | 64 KB (0x10000), file offset 0 = flash 0x70000 | [verified]: the 430066 64 KB file is byte-identical to 0x70000–0x7FFFF of the 430066 512 KB read |
ECU bus address vs file offset
The program is executed and addressed by the ECU at 0x90000–0xEFFFF, i.e. file offset + 0x80000. Boot and calibration are addressed 1:1.
| File offset | ECU bus address | Region |
|---|---|---|
0x00000–0x0FFFF | 0x00000–0x0FFFF | Boot |
0x10000–0x6FFFF | 0x90000–0xEFFFF | Program |
0x70000–0x7FFFF | 0x70000–0x7FFFF | Calibration |
[verified]: the checksum region tables store program ranges as 0x0009_0000…0x000E_EFFF and calibration ranges as 0x0007_xxxx (the only reading that makes every checksum match), and patch code confirms it: the patchlist's immobiliser bypass writes DA 0D F8 3B (CALLS 0Dh, 3BF8h, i.e. ECU 0xD3BF8) and places the target routine at file 0x53BF8. DS2 read/write uses the bus addresses (nfsx raw-ds2-flashing.md §5.3).
Conversion: file = ecu - 0x80000 for segments 0x09–0x0E, else file = ecu.
Overview
0x00000 ┌───────────────────────────────┐ ECU 0x00000
│ BOOT sector (16 KB) │ boot code (0x0000-0x308D, Boot CRC),
│ │ UIF, ISN, factory idents
0x04000 ├───────────────────────────────┤
│ 2 × 8 KB sectors │ FF in every dump
0x08000 ├───────────────────────────────┤
│ Boot block 2 (32 KB sector) │ code 0x8000-0xBF50, word-sum @ 0xBFF8;
│ │ 0xC000-0xFFFF FF
0x10000 ├───────────────────────────────┤ ECU 0x90000
│ PROGRAM (384 KB, 6 × 64 KB) │ code, CAN tables, free FF gaps,
│ │ checksum tables 0x6FDAE-0x6FE15,
│ │ HW numbers 0x6FE80, ident 0x6FFB2
0x70000 ├───────────────────────────────┤ ECU 0x70000
│ CALIBRATION (64 KB) │ ident, scalars 0x70042-0x71xxx,
│ │ add-32 result 0x72FFC, CRC block 0x73FE0,
│ │ maps 0x74000-0x7EE17
0x80000 └───────────────────────────────┘This matches the community memory-map picture ("Bootloader & UIF 64 KB, Program Code 384 KB, Calibration Data 64 KB").
Boot 0x00000–0x0FFFF
| Offset | Size | Content | |
|---|---|---|---|
0x00000–0x0308D | 12.4 KB | Boot code. Identical in all 512 KB dumps (Boot CRC 0xC6D5 everywhere) | [verified] |
0x0308E–0x03C23 | FF | [verified] | |
0x03C24 | 2 | Boot CRC result | [verified] |
0x03C26 | 2 | Region count (1) | [verified] |
0x03C28 / 0x03C2C | 4 + 4 | Boot CRC start 0x00000000 / end 0x0000308D | [verified] |
0x03C30 | 4 | 0x000076C8 | (unknown) |
0x03C34 | 12 | "000000115852" in every dump | [inferred: boot software number] |
0x03C40 | 14 × 46 | UIF (User Information Fields), 14 slots, one per programming session. See below | [verified layout from the patchlist; field meanings partly inferred] |
0x03ED4 | 0x4C | ISN / immobiliser data (0x3ED4–0x3F1F). The patchlist reads the 6-byte "ISN Value" at 0x3ED4 and clears all 0x4C bytes in "Clear Immobilizer Data" ("realign with EWS via INPA, requires bootmode flash") | [verified location; content per ECU] |
0x03F20 | 8 | "REGENSBU" (Siemens Regensburg) | [verified where present] |
0x03F50 | 12 + 8 | "6577355402--" (430069) + 8 binary bytes. Same part-number form as the string inside boot block 2 at 0x869A (…402 / …404) | [inferred: boot-block-2 ident + per-ECU data] |
0x03F5C–0x03F5F | 4 | Read byte by byte by boot code at 0x13A6 (EXTS #0 / MOVB into RAM 0xF750–0xF753) | [verified code path; purpose unknown] |
0x03F64 | 12 | "000427223737" / "041022164354": date-like | [inferred: manufacturing timestamp] |
0x03F80 | 0x3E | Factory ident: "5WK90027--0102341359MS43…6577357601f-6577355105--". 5WK9002x is the Siemens part number; the patchlist calls 0x3F80 "ECU Number" | [verified string; field split inferred] |
0x03FDA | 0x26 | "6577355201----" + "11143053" × 3. Identical in every dump | [verified] |
0x03FE6 | 2 | Boot CRC seed (0x2D2D, the "--" of the string above) | [verified] |
0x04000–0x07FFF | 16 KB | FF in every dump | [verified]. Use unknown |
0x08000–0x0BF50 | ~16 KB | Boot block 2: starts 5A A5, C166 code, contains "6577355402--" (430069) / "6577355404--" (430066) at 0x869A. Differs between the two ECUs | [verified] |
0x0BFF8 | 4 | Boot-block word sum: u32 = Σ u16 LE over 0x8000–0xBFF7 | [verified on all dumps; checking code not located] |
0x0C000–0x0FFFF | 16 KB | FF in every dump. nfsx's DS2 read table stops at 0x0BFFF, so this may be padding rather than erased flash | [inferred] |
UIF
Slot layout from the Community Patchlist "User Information Fields" table (0x3C40, 14 rows × 46 bytes):
| Bytes | Label | Observed |
|---|---|---|
| 0–12 | "VIN" | 20 2C A3 99 0C 10 06 01 93 88 10 10 04 in every slot of both ECUs. They are different ECUs (5WK90027 vs 5WK90026), so this is not the vehicle VIN in plain form; encoding unknown |
| 13–15 | "DATE" (patchlist reads 2 bytes at 0x3C4E) | 00 7B 00 / 00 6D 84 |
| 16–19 | "SOFT", u32 | 0x00733E70 = 7552624 / 0x007322B7 = 7545527: BMW part number of the flashed software [inferred] |
| 22–25 | "SERV", u32 | 7503718 / 7506937 |
| 26–29 | "ASM", u32 | 7552620 / 7545526 |
| 30–42 | — | 00 "NFS01" … / 00 "42324" …: tester / station id [inferred] |
| 43 | "SW" | 0x69 / 0x66: last digits of the SW number [verified] |
Slots 2–14 carry only bytes 0–12 in the factory reads; the CC and JMGF images erase them (see Variants). No checksum covers the UIF.
Bootmode flashing and the ISN
The ISN area is in the boot sector, which DS2 flashing never writes. A bootmode write of a full image replaces it. The stock 430069 image and the CC image have 0x3ED4–0x3F1F erased, so a bootmode flash of them loses the ECU's immobiliser pairing. Keep the original boot sector, or re-align EWS afterwards.
VIN: no plain-text VIN (WBA…) exists in any flash dump. [verified] The vehicle VIN and adaptations are presumably held in the SPI EEPROM [inferred].
Program 0x10000–0x6FFFF (ECU 0x90000–0xEFFFF)
| Offset | Size | Content | |
|---|---|---|---|
0x10000 | Program entry (88 90 88 80 …, C166 push sequence). Same opening bytes in both SWs | [verified] | |
0x10000–0x6EFFF | Code and program-side tables, interleaved with FF gaps at the end of each 64 KB block. The Program CRC ranges stop where each gap begins (430069: 0x2FFFB, 0x3FCB9, 0x4A8CB, 0x5FFF7; 430066: 0x2FFFD, 0x3FBC5, 0x4A7F3, 0x5FFFF) | [verified] | |
0x4A8CC–0x4FFFF | ~22 KB | Largest free gap (430069). The patchlist puts most of its new code here, outside the CRC | [verified] |
0x6C494 | 16 × 15 | CAN bus initialisation / arbitration-ID table (patchlist "ECU Information") | per patchlist |
0x6ED00–0x6ED61 | Table of 32-bit (lo, hi) ECU pointers; the tail points at ident fields (0xAFFEC, 0xEFEAA, 0xEFE80, 0xEFE95, 0xEFFB6, 0xEFFCC, 0x70000, 0x7000C, 0x70010). 0x6ED42 (→ 0xEFFB6) is the Program CRC seed pointer | [verified values; table purpose inferred] | |
0x6F000–0x6FDAD | 3.5 KB | FF | [verified] |
0x6FDAE | 4 | Program add-32 result | [verified] |
0x6FDB2 / 0x6FDB8 | 4 + 4 | add-32 initial values (0xA5A5A5A5 each) | [verified] |
0x6FDBE / 0x6FDCE | 16 + 16 | add-32 region tables (program / calibration) | [verified] |
0x6FDE0 | 2 + 2 + 6 × 8 | Program CRC result, region count (6), region table | [verified] |
0x6FE80 | 0x34 | BMW hardware number × 6: "7545150" (430066) / "7551615" (430069 image), then "1915608101" / "1915609001" | [verified string; meaning inferred] |
0x6FFB2 | 0x3E | Program ident: "43290010" + "430069" + "6577355117--" + "111430536901" × 3 (430066: "43281010" "430066" "6577355116--" "111430536601"…) | [verified] |
0x6FFB6 | 2 | Program CRC seed (ASCII "00"/"10" inside the ident) | [verified] |
0x6FFF0 | 4 | Trailer 90 48 24 42. Outside all checksums; nfsx's DS2 write stops at 0xEFFEF | [verified bytes; inferred: "program valid" marker] |
111430 is the DS2 ident key nfsx uses for MS43.
Calibration 0x70000–0x7FFFF
| Offset | Size | Content | |
|---|---|---|---|
0x70000 | 8 | "C7697518" / "c666f528" | [inferred: data-set id] |
0x70008 | 8 | "43006901": SW number 430069 + 01 | [verified] |
0x7000C | 2 | Calibration CRC seed (ASCII "69" → 0x3936) | [verified] |
0x70010, 0x70020, 0x70030 | 16 each | Calibration ident "1114300069010000" × 3. Compare program ident "111430536901" | [verified] |
0x70040 | 12 | "ca430069.DAT": calibration file name | [verified] |
0x70042 | 6 | XDF item -----Softwareversion----- ("430069") | XDF |
0x70042–0x71xxx | ~4.5 KB | Scalars: DTC config, fault counters, thresholds, switches (2255 XDF constants) | [verified from XDF] |
0x70E07 | 1 | lc_swi_cal_mon_cks (430069 address): switch for the calibration add-32 check | XDF |
0x712C6–0x71315 | 80 | Calibration add-32 region 1 (430069; 430066: 0x712CC–0x7131B) | [verified] |
0x71316–0x71317 | 2 | 00 00 (430069). The patchlist's LC/RAL values start here | [verified] |
0x71318–0x72FFB | ~7 KB | FF (430066: from 0x7131E) | [verified] |
0x72FFC | 4 | Calibration add-32 result (cal_mon_cks_1/2) | [verified] |
0x73000–0x73FDF | FF. Excluded from the calibration CRC | [verified] | |
0x73FE0 | 2 + 2 + 2 × 8 | Calibration CRC result (cal_cks), count (2), region table | [verified] |
0x73FFE | 2 | 0x0000. The patchlist's checksum bypass sets it to FFFF | [inferred: CRC enable flag] |
0x74000–0x7EE17 | ~43 KB | Maps and axes (1441 XDF tables). Calibration add-32 region 2 is 0x7EB94–0x7EE15 | [verified] |
0x7EE18–0x7FFEF | FF | [verified] | |
0x7FFF0 | 4 | Trailer 42 24 48 90 (the program trailer byte-reversed). DS2 write stops at 0x7FFEE | [verified bytes; inferred: "calibration valid" marker] |
The 64 KB calibration file is exactly this region. Everything a 64 KB file lacks (boot, program, the add-32 region tables in the program) has to come from the matching full image. See Checksums.