Announcement

Collapse
No announcement yet.

Flashing the MK60 with ZCP software

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • sda2
    replied
    Click image for larger version  Name:	grafik.png Views:	7 Size:	14.1 KB ID:	616629​

    Here are the time stamps and teves software number extracted from the other bins.

    Originally posted by Claude
    MK60 818.3 (E46 M3, non-ZCP): two different software levels exist – comparison of terraphantm's dump vs. the known 818.3 dump

    Thanks to terraphantm for sharing his DSC dump. It's labelled 818.3 like the 818.3 dump we already had, but it is not the same software. It isn't a bad read and it isn't a tune either. It's a later factory build of the same 818.3 code base with a different parameter set. Here's what I found. This is an analysis only, not a flashing guide.

    1. Identification (KWP 1A 94)

    Both images carry a 30-byte ID record. Its pointer sits in the header at 0x230. The record is exactly what the ECU sends back for ReadECUIdentification 0x94:
    • Known 818.3: AUPY2681.ZC5, built 14.06.02 14:30 (record @0x3DB08)
    • terraphantm's 818.3: AUPY3482.9C3, built 17.03.03 14:13 (record @0x3DAA8)

    Date and time are stored as binary bytes, e.g. 11 03 03 = 17.03.03 and 0E 0D = 14:13. I rebuilt the 1A 94 response from the ROM: it matches terraphantm's diagnostic log byte for byte, including the XOR checksum 0x7A. So the newer one is about 9 months younger.

    For reference, the other E46 dumps:
    • 811.3 (non-M): ASPY1681.XC3, 07.06.01
    • 817.3 (M3 ZCP): AWPY3381.ZC4, 13.02.03
    • 820.3 (non-M): APPY2782.KC8, 27.09.02

    2. Integrity / lock status
    • Both start-up check words (the 32-bit MISR over the vector table and over the main image) verify OK on the new dump. It's a self-consistent factory image.
    • Same lock situation as the old 818.3: "LOCK" at 0x200, no backdoor key, no KWP RequestDownload/TransferData, no flash-controller access in the code. Nothing changes regarding flashability.

    3. Code
    • 0x0000–0x2BC00 is identical, apart from address relocations. RAM variables are shifted +4 to +8 bytes because the newer build has a few extra RAM bytes. Pointers into the calibration area are shifted −0x60 to −0x80.
    • From 0x2BC00 up there are real code changes, net 0x60 bytes shorter. The image ends at 0x3FC64 instead of 0x3FCE4.
    • All 818.3 function names below 0x2BC00 carry over 1:1. Above that they need the −0x60 offset or an alignment.

    4. Calibration blocks

    Most calibration blocks are byte-identical: AUTY, the existing NOPARADJ block, AUPY data and AUTS. AUTB, AUTC and AUTT differ only in embedded pointers.

    The big difference: AUTW24F1.DFT is gone. In the new build that block is tagged NOPARADJ.UST, i.e. "no parameter adjust". Its 16 scalar parameters were compiled into the code as constants, and 6 of them have new values:
    • param @0x3EBC6: 90 → 60
    • param @0x3EBC8: 50 → 75
    • param @0x3EBD4: 150 → 120
    • params @0x3EBDC/DE/E0/E2 (four channels): 10 → 25 each

    Unchanged: 50, 150, 70, 13000, 16500, 2, +127/−127, 25 and the other 50.

    Example: one function computes min(|x|,150) * 90/150 + 150 in the old build and min(|x|,150) * 60/150 + 120 in the new build. The caller subtracts the offset again, so that term is cut to 2/3 (max 60 instead of 90). What these parameters do physically is still open. That code area isn't named in the 818.3 name catalogue yet.

    5. Odometer-based reset rewritten

    The DSC reads the odometer from the cluster (CAN 0x613, bytes 0–1, 10 km units). At 500 km and 1000 km it clears a block of per-wheel adapted values.
    • Old build: index = km/500. It resets when the index steps up by one, below 1500 km.
    • New build: rewritten with a new status bit and hysteresis. It arms at 480–499 / 980–999 km and fires at 500–520 / 1000–1020 km. There's also a new small function that sets this bit from an init/clear routine.

    Same intent, but it's more robust against jumps or invalid odometer values (e.g. cluster swap).

    6. Other diffs

    The remaining diffs in the fault-handling area look like a different compiler/code-generation output, not functional changes. One example: a function now returns a normalised 0/1 instead of a masked value. I haven't checked every one of them individually.

    TL;DR: There are (at least) two 818.3 software levels. ZC5 is from 06/2002, 9C3 from 03/2003. The 9C3 build has the AUTW parameter block baked into the code, with 6 values changed, and a reworked 500/1000 km adaptation reset. Maps, CAN layout and lock status are otherwise the same. If you have an 818.3 unit, the SW number from a 1A 94 / ident read tells you which one you have.

    Method: raw-image diff with M·CORE disassembly (opcode-normalised alignment so that shifted branches/literals don't show up as changes), every parameter load site compared side by side, check words verified with the MISR verifier from the MK60-M-Core-Disassembly-Process repo.
    ​
    Last edited by sda2; 11-24-2026, 04:01 AM.

    Leave a comment:


  • terra
    replied
    Originally posted by Bry5on View Post

    We might have mislabeled mine and it could be an 813.3. I’ll get in there with a mirror. It’s byte identical to another 813.3 Ryan_R just shared.

    and this numbering logic makes way more sense. I was wondering…
    So my 818.3 does not match the M3 dumps we had FYI. Sent it to the group.

    Do you mind posting the output of the ident job and ident_teves_ecu_sw_nr job from your module? This is what my 818.3 shows

    Code:
     JOB_STATUS = OKAY
    ID_BMW_NR = 2282250
    ID_HW_NR = 0.1
    ID_COD_INDEX = 6 00 06 ..
    ID_DIAG_INDEX = 6 00 06 ..
    ID_VAR_INDEX = 22 00 16 ..
    ID_DATUM_JAHR = 2004 07 D4 .Ô
    ID_DATUM_MONAT = 9 00 09 ..
    ID_DATUM_TAG = 11 00 0B ..
    ID_DATUM = 11.09.2004
    ID_LIEF_NR = 24 00 18 ..
    ID_LIEF_TEXT = Temic
    ID_SW_NR_FSV = 0.0.129
    ID_SW_NR_OSV = 0.0.0
    ID_SW_NR_MCV = 0.0.0
    ID_SW_NR_RES = 0.0.0
    _TEL_AUFTRAG = 6 Bytes
    0000 : B8 29 F1 02 1A 80 ¸)ñ..?
    
    _TEL_ANTWORT = 36 Bytes
    0000 : B8 F1 29 1F 5A 80 00 00 02 28 22 50 01 06 00 06 ¸ñ).Z?.. .("P....
    0020 : 00 00 00 73 ...s
    ​
    Code:
     JOB_STATUS = OKAY
    SW_NR = AUPY3482.9C3
    SW_DATUM = 17.03.03
    SW_ZEIT = 14:13
    _TEL_AUFTRAG = 6 Bytes
    0000 : B8 29 F1 02 1A 94 ¸)ñ..?
    
    _TEL_ANTWORT = 37 Bytes
    0000 : B8 F1 29 20 5A 94 0C 41 55 50 59 33 34 38 32 2E ¸ñ) Z?.A UPY3482.
    0020 : 00 00 02 01 7A ....z
    ​
    ​

    Maybe it's better we label these with the internal SW numbers (i.e AUPY3482.9C3 for my example)

    Leave a comment:


  • ZiMMie
    replied
    Originally posted by Bry5on View Post

    A software only flash is way more appealing than swapping hardware and building a custom firmware and vehicle model that may or may not behave as safely for most people. We’re still working to eliminate opening/physically accessing the MK60 module to flash if that wasn’t already clear.

    That said, you’re not exactly wrong. The MK60e5 has a more detailed vehicle model that includes things like compensations for tires, as well as several other features. The e46 MK60 has an extremely simple vehicle model for calculating/triggering interventions. Porting the e46 model into a MK60e5 also does not appear to be trivial. The e46 CAN integration is the easy part.

    I might have missed that part. To be honest, I haven't read through the entire thread. I tend to jump in and out, skimming through several pages as I browse.
    That said, where can I find the firmware dumps? Is there a repository or a collection of links somewhere. i can also help with disassembly. Nvm Found it

    The MK60E5 is quite popular in the ABS retrofit community and is used in all sorts of applications and it will make it way in my E36 with a flavor of zcp software....one day🤣
    Last edited by ZiMMie; 11-24-2026, 03:59 AM.

    Leave a comment:


  • heinzboehmer
    replied
    Originally posted by Bry5on View Post
    A software only flash is way more appealing than swapping hardware and building a custom firmware and vehicle model that may or may not behave as safely for most people. We’re still working to eliminate opening/physically accessing the MK60 module to flash if that wasn’t already clear.
    Yes, this.

    The whole goal of this project is to develop a tool to flash the E46 MK60 through the OBD port. We've solved the reading part of the puzzle, but not yet the writing part. One click update to ZCP FW beats swapping hardware.

    If it turns out that you do need to cut the module open to flash, then you should definitely just deal with the brake fluid mess and swap in an E5. It's a much more capable module.

    That being said, MK flashes the E46 modules to the race FW without cutting them open, so there's definitely a way!

    Leave a comment:


  • Bry5on
    replied
    Confirming here that mine is indeed 818.3 as I’d thought. Both 813.3 and 818.3 have identical part numbers and identical firmware images, so far as we can tell from the dumps..
    Click image for larger version  Name:	IMG_1357.jpg Views:	0 Size:	154.9 KB ID:	616583

    edit: here’s the byte identical 813.3 that Ryan dumped, for comparison’s sake
    Click image for larger version  Name:	image.jpg Views:	0 Size:	120.6 KB ID:	616584​
    edit2, while we’re at it. 819.3 is an ARM module with built in pressure sensors, looks more like the e5 on first blush with an image 2.5x the size of the MCORE earlier ones and has TX/RX CAN messages in the e46 parlance (ie: Z4)
    Last edited by Bry5on; 11-23-2026, 03:03 PM.

    Leave a comment:


  • terra
    replied
    In that case I can grab an 818.3 dump. Just need to modify my bench harness to simulate ignition signal

    Leave a comment:


  • Bry5on
    replied
    Originally posted by terra View Post

    813.3 would likely be one of the earlier MK60s. I’d expect to find it on an 03. They eventually changed to 818.3

    i have an 817.3 in my car and 818.3 on my desk, but I think we have dumps of both already
    We might have mislabeled mine and it could be an 813.3. I’ll get in there with a mirror. It’s byte identical to another 813.3 Ryan_R just shared.

    and this numbering logic makes way more sense. I was wondering…

    Leave a comment:


  • terra
    replied
    Originally posted by Bry5on View Post

    *should* .. interestingly, if it does then the ZCP technically has the looser oversteer limits due to the taller tires and the way the yaw prediction (and therefore threshold limit) is calculated.

    Well in that case, someone with an 06 M3 then? Man, what a bummer about the swap. Is the car still local?
    813.3 would likely be one of the earlier MK60s. I’d expect to find it on an 03. They eventually changed to 818.3

    i have an 817.3 in my car and 818.3 on my desk, but I think we have dumps of both already

    Leave a comment:


  • Obioban
    replied
    Swapping the module is a bit of a pita, too.

    Leave a comment:


  • Bry5on
    replied
    Originally posted by ZiMMie View Post
    Wouldn't it be easier to adapt the ZHP image to an MK60.1 instead?

    They are practically free, and you can flash them through WinKFP, which makes future modifications much easier and more accessible.

    The MK60 seems like an absolute nightmare from everything I've read so far. Having to physically cut the unit open just to flash it is a huge turn-off.

    With the MK60.1, you also get an internal pressure sensor, and CAN messages can be adapted as well.

    That said, I can understand the appeal of sticking with the MK60 once you've already started down that road. Sometimes you just want to see a project through to the end.
    ​
    A software only flash is way more appealing than swapping hardware and building a custom firmware and vehicle model that may or may not behave as safely for most people. We’re still working to eliminate opening/physically accessing the MK60 module to flash if that wasn’t already clear.

    That said, you’re not exactly wrong. The MK60e5 has a more detailed vehicle model that includes things like compensations for tires, as well as several other features. The e46 MK60 has an extremely simple vehicle model for calculating/triggering interventions. Porting the e46 model into a MK60e5 also does not appear to be trivial. The e46 CAN integration is the easy part.

    Leave a comment:


  • ZiMMie
    replied

    Wouldn't it be easier to adapt the ZHP image to an MK60.1 instead?

    They are practically free, and you can flash them through WinKFP, which makes future modifications much easier and more accessible.

    The MK60 seems like an absolute nightmare from everything I've read so far. Having to physically cut the unit open just to flash it is a huge turn-off.

    With the MK60.1, you also get an internal pressure sensor, and CAN messages can be adapted as well.

    That said, I can understand the appeal of sticking with the MK60 once you've already started down that road. Sometimes you just want to see a project through to the end.
    ​

    Leave a comment:


  • Ryan_R
    replied
    I have 813.3 and 829.3 (z4m mk50e5) modules sitting on my work bench. I can dump the data for you.
    Last edited by Ryan_R; 11-22-2026, 09:56 PM.

    Leave a comment:


  • Bry5on
    replied
    Originally posted by ac427 View Post
    Bry5on & heinzboehmer My spare Mk.60 has 813.3 on the label. Is this the version we are after?

    I'll check the car tomorrow. It is an 03 faclift so perhaps too old ?
    That’s the one we’re after! Any chance you’re near San Diego or the Bay Area?

    Leave a comment:


  • ac427
    replied
    Bry5on & heinzboehmer My spare Mk.60 has 813.3 on the label. Is this the version we are after?

    I'll check the car tomorrow. It is an 03 faclift so perhaps too old ?
    Last edited by ac427; 11-22-2026, 02:01 PM.

    Leave a comment:


  • Bry5on
    replied
    Originally posted by ac427 View Post

    Which tool would be need to be used to download the firmware?
    Shoot a PM to heinzboehmer or me and we’ll get you onto an email chain. It’s a custom made tool just for reading the MK60 that Heinz vibed up.

    Leave a comment:

Working...
X