Originally posted by liam821
View Post
Announcement
Collapse
No announcement yet.
Flashing the MK60 with ZCP software
Collapse
X
-
Oh boy. You might as well just wait until we figure out how to reflash the non-m. It doesn't have all the m-track modes at all, it's missing so much. The tables referenced above largely carry over, however
-
I'd like to know the differences between the non-m ZHP vs Standard M3. Really we should make a table with all three.
- Likes 1
Leave a comment:
-
Haven’t dropped an update in here but there’s been an incredible amount of progress. All working on the early 818.3 M3 MK60..
Disassembly is complete and every function/table is named. No onboard bootloader unfortunately confirmed. No flash controller that we can find thus far.
Here’s a full table of every internal M3 <> ZCP difference, there are ~30 and none of them are editable with NCS Expert: https://github.com/Bry5on/MK60-M-Cor..._edit_list.csv
I also had the bot take a crack at describing the vehicle model in more detail. It’s pretty concise so I’m just gonna paste that here:
How an intervention happens, start to finish (E46 MK60 818.3 (M3), MK60-view speed):
1. Steering: the `0x1F5` steering angle goes through offset learning (`0x24F46`). The coding steering set then converts it to road-wheel angle; your `wert_04` picks set 4 in code.
2. Dataset: coding unpack (`0x3B5D8`) picks dataset 10 for your car.
3. Static model: `r_ref_eval` @ `0x29606` computes the reference yaw from steering angle, speed, A and B. This is the textbook formula we've been using.
4. Dynamic model (new): the reference the firmware actually compares against isn't that static value. It's a dynamic model (`0xD98C`) that starts from r_ref and then runs its own states, using 15 more per-dataset tables, the μ estimate, and a speed-scheduled filter.
5. Measured yaw: the `0x1F3` yaw minus the learned yaw offset, then filtered.
6. Decision: the error is |measured yaw − dynamic reference|. It's checked against the oversteer bars (the taper down to the 3.00 °/s floor) plus timers. The result sets the DSC-active bit and feeds the valve masters. I haven't decoded yet which valve each wheel gets.
7. The 0x235/0x316 engine-intervention flag feeds only the torque, TCS and lamp code. It isn't part of the yaw decision.
What's new from the full map:
- ZCP differs from your dataset 10 in far more than A/B. There are 22 more tables plus one curve that differ, including a bar table tied to B (8024 vs 12297), an inverse-model 1/B term (1806 vs 1178), and all 15 dynamic-model tables. A filter curve is all zero on yours and {6380, 6380, 4969, 0} on ZCP.
- There's a second model. It works backwards from measured yaw and lateral g to the steering angle they imply, and compares that with your actual angle.
- There's a third way to trigger DSC. That steering-angle residual can set DSC active, but only between 14.4 and 100 km/h. Your 60–68 mph sweepers (about 97–109 km/h) **straddle that 100 km/h limit**.
- The car learns a yaw offset while driving. It moves only about 1 count per second, so it can't cause a single event by itself. You can read it live, along with the steering offset, with KWP `0x21` local ID `02`.
- The coding bytes only change gain, not the entry bar, which confirms what we thought before.
Does the B edit alone fix it? Probably not fully. B is the biggest steady-state term. With the ZCP reference, both 60–68 mph events clear, but event #2 clears by only 0.09 °/s, and 3 of 5 logged events still trip. An A/B-only edit would leave the static model on ZCP values but the dynamic and inverse models on non-ZCP values. Our offline predictor also uses the static reference, not the dynamic one the firmware compares against. That fits the missed event #2 and the long tail on #3.
- Likes 5
Leave a comment:
-
That's almost always the case. Whenever I see someone with extreme knowledge no one else has in the software/hardware world then I know 99.99% of the time it is due to insider knowledge and not genius. AI has changed this a bit, in that now I know someone has pointed AI toward whatever it is they are studying.Last edited by oceansize; Yesterday, 06:53 AM.
Leave a comment:
-
The guy doing the actual flashing was working for Teves during the time these units were in production, so definitely some leaked intel.
- Likes 1
Leave a comment:
-
I would agree. It’s been rumored for years, before AI was around, and doing reverse engineering without it 10 years ago would have been a serious time consuming project. Probably some race team that had access to a piece of software that was given to some shop…Originally posted by heinzboehmer View Post
Everything I've heard points to it being the latter. Rumor has it that the modules are sent to some third party that has the factory SW tool to reprogram them.
As far as I can tell, MK aren't actually flashing these modules themselves.
- Likes 3
Leave a comment:
-
Everything I've heard points to it being the latter. Rumor has it that the modules are sent to some third party that has the factory SW tool to reprogram them.Originally posted by Bry5on View PostYou’ve got to wonder if they did the disassembly work or just happened to get their hands on a leaked factory tool.
As far as I can tell, MK aren't actually flashing these modules themselves.
- Likes 2
Leave a comment:
-
You’ve got to wonder if they did the disassembly work or just happened to get their hands on a leaked factory tool. If the latter, it could just be pointing to the wrong location and only compatible with certain modules? But yeah, it’s suspect. And odd that the early 818.3 and 813.3 are identical with a normal privilege read.Originally posted by terra View PostWell that gives me hope that it’s not a true indicator of much then. Signs seem to be pointing towards there being no real flash ability difference. Though what gives me pause is you’d think the guys who flash these things would have tried.
We do have a method to do reads of some additional program areas that were behind a privilege wall now, but it’s not wrapped up into a nice easy tool just yet. Still no silver bullets.
- Likes 2
Leave a comment:
-
Well that gives me hope that it’s not a true indicator of much then. Signs seem to be pointing towards there being no real flash ability difference. Though what gives me pause is you’d think the guys who flash these things would have tried.
- Likes 1
Leave a comment:
-
Circling back to this one for closure. ID_HW_NR is located at EEPROM 0x135 and doesn’t appear to be referenced anywhere in the disassembly on my check. We can of course write to EEPROM (have two methods to do this now) but it doesn’t look like that helps us unfortunately.Originally posted by terra View PostSo re: flashable modules -- in the past I have been told "ID_HW_NR" (from the 'ident' job --output reproduced below) being 0.0 indicates a flashable module while 0.1 indicates not-flashable (i.e fixed rom). Anything in the disassembly to indicate that could be a real marker of onboard flash vs ROM?
Code:JOB_STATUS = OKAY ID_BMW_NR = 2282250 [B]ID_HW_NR = 0.1[/B] 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 [B]01 [/B]06 00 06 ¸ñ).Z?.. .("P.... 0020 : 00 00 00 73 ...s
- Likes 1
Leave a comment:
-
This is the label on mineOriginally 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.
- Likes 1
Leave a comment:
-
Is your MK69 labeled with PN 2 282 250? Mine is 2 282 249 …Originally posted by terra View PostSo 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).
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.
Leave a 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.
- Likes 1
Leave a 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).
- Likes 4
Leave a comment:

Leave a comment: