Announcement

Collapse
No announcement yet.

Flashing the MK60 with ZCP software

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

    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; Today, 03:59 AM.

    Comment


      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)

      Comment


        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; Today, 04:01 AM.

        Comment


          So thinking about it, the fact that we have two 818.3 modules with different software onboard to me suggests that these things were programmed after production rather than having a fixed ROM burned at the factory. So likely flashable if we figure out how to talk to the flash controller?

          Edit: Also the first CSL was built in September 2002 right? So there must be a variant of the module that predates the dump we have (I haven't dumped my actual car's module, but the software version matches the string above).

          Comment


            Documented how I built my bench harness here: https://github.com/heinzboehmer/MK60.../bench_harness

            In case it's of any use to anyone.
            2002 Topasblau M3 - Coupe - 6MT - Karbonius CSL Airbox - SSV1 - HJS - Mullet Tune - MK60 Swap - E86 Front Triangulation - ZCP Rack - Nogaros - AutoSolutions - 996 Brembos - Slon - CMP - VinceBar - Koni - Eibach - BlueBus - Journal

            2012 Alpinweiss 128i - Coupe - 6AT - Slicktop - Manual Seats - Daily - Journal

            Comment


              Originally posted by terra View Post
              So thinking about it, the fact that we have two 818.3 modules with different software onboard to me suggests that these things were programmed after production rather than having a fixed ROM burned at the factory. So likely flashable if we figure out how to talk to the flash controller?

              Edit: Also the first CSL was built in September 2002 right? So there must be a variant of the module that predates the dump we have (I haven't dumped my actual car's module, but the software version matches the string above).
              Is your MK69 labeled with PN 2 282 250? Mine is 2 282 249 …

              I’ve got a line on another 249 early 818.3 MK60 to try bench flashing in the coming days. Looks like we may have found the golden ticket, or at least something close to it.
              ‘02 332iT / 6 | ‘70 Jaguar XJ6 electric conversion

              Comment


                Originally posted by Bry5on View Post

                Is your MK69 labeled with PN 2 282 250? Mine is 2 282 249 …

                I’ve got a line on another 249 early 818.3 MK60 to try bench flashing in the coming days. Looks like we may have found the golden ticket, or at least something close to it.
                This is the label on mine

                Click image for larger version

Name:	B5B5C4B9-290F-4EFE-98AE-9CE40D0B1430_1_201_a.jpg
Views:	9
Size:	87.8 KB
ID:	616682​

                Comment

                Working...
                X