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

    Agree with Heinz, I think there’s some misreading between all of us.

    My read is that the non-m came first and had the icy weather half-delete for traction control programmed in (as they did from factory). Then in the M cars they commandeered that code to create a looser street driving and more feature-complete street mode instead. Then one step further, they decided to finally implement it in the CSL which is when they put the effort into properly tuning it and giving it a dedicated button. Once they had it dialed for the CSL, it was an easy drop-in for the ZCP. That’s my educated guess at least, not that m-track exists in the non-m.
    OH! That makes complete sense. You're probably right. Thanks!
    Phoenix Yellow e46m3 Build Thread
    Orient Blue E46 330i ZHP k24/dct/turbo Build Thread

    Comment


      Lots and lots and lots of sweeping IO addresses later, I think I have a vague lead on a potential flash path.

      Long, dense and somewhat unstructured text post incoming. Just gonna dump what's floating around in my brain here.

      I had been operating under the assumption that the modules used Motorola's SGFM flash (marketing term for some proprietary structure) because the module responded similarly to what's described in the SGFM datasheets that Bryson and I (mostly Bryson) found. The datasheets make it clear that you can be either in user or supervisor mode when executing instructions. Supervisor is just full auth, while user has some limitations. By default, everything runs in user mode, but you can elevate to supervisor with a special Motorola recipe.

      (It's not really all that special, just mfcr to a specific register and done. Path is well documented in the datasheets and the FW uses it all the time for ASIC comms and other IO.)

      To do supervisor mode reads, you need to probe via the RAM routine method, so that you can elevate properly beforehand. The mfg diag protocol reads run in user mode.
      ​
      Supervisor mode reads reveal an extra address block at 0xEFFF00-ish. Most addresses are referenced in the FW and are just ASIC/IO/interrupt handers. BUT, the lower section is only ever touched once on init and the values in those registers sorta match the SGFM flash controller shape.

      Today, however, I learned that before SGFM came CMF and CMFR flash, which match up waay nicer to the values in our registers. The biggest difference (for our purposes) between SGFM and CMF/CMFR flash is how they're programmed. The former can drive its erase/flash charge pump with its internal 3.3V supply, while the latter needs an extra 5V supplied to it from an external source (e.g. a robot on the assembly line) to the Vpp pin on the MCU.

      The CMF/CMFR datasheet mentions some status bits in the flash controller registers that need to == 1 before the flash can be erased or programmed. Comparing between the values of said registers on my 817.3 and 820.3 modules, there was one bit that stood out because it was set on the 817.3, but unset on the 820.3. Had Bryson read this out on both his 818.3 modules (one on car and one on the bench) and they both read 0, just like the 820.3!

      So, leading theory is that there is some HW difference between the supposedly-flashable and supposedly-not-flashable modules relating to Vpp (missing 0 ohm resistor or similar). Flashable modules presumably have Vpp at 5V always (or at least ready to be armed) and report this status via the aforementioned register.

      Next step is to physically probe the 820.3 module I have cut open to try and identify Vpp directly on the MCU. If I find it, feed it 5V and see the status change, then that means I'm really onto something.
      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


        Does anyone have an 813.3 and the tools / skills to take a look at the register?

        Also of note the roughly period correct mcore CPU does indeed use CMFR flash per that datasheet. And it does specifically note needing external Vpp. Not sure if the pinout matches what we have, but it's probably a related product in general. Notably the CMF registers in that memory map don't line up with the addresses you found, but perhaps a different variant uses a different base address.

        Comment


          Originally posted by terra View Post
          Does anyone have an 813.3 and the tools / skills to take a look at the register?

          Also of note the roughly period correct mcore CPU does indeed use CMFR flash per that datasheet. And it does specifically note needing external Vpp. Not sure if the pinout matches what we have, but it's probably a related product in general. Notably the CMF registers in that memory map don't line up with the addresses you found, but perhaps a different variant uses a different base address.

          https://www.nxp.com/docs/en/data-sheet/MMC2107.pdf
          Yep! That's the datasheet I've been referencing. Thanks for linking.

          Pinout does not match, as far as I can tell. EEPROM MISO/MOSI are in a different spot, so I'm assuming everything else is as well.
          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


            I know we have a lot of pictures of opened up non-M and non-ZCP DSC modules. Do we know if anyone ever took detailed shots of the ZCP module? Maybe would get lucky and see an obvious missing resistor or voltage regulator or something

            Comment


              No 817.3 pictures that I've seen, but I do have some 813.3 pictures that I've been referencing.

              I did little probing last night, but fortunately there aren't a ton of places that read at or around 5V on the board.

              The most suspicious looking one is this pad:

              Click image for larger version

Name:	20261204_015429~2.jpg
Views:	8
Size:	215.4 KB
ID:	617525

              It probes at exactly 5V (which makes me think it's not connected to anything else) and is populated with a zener on the 813.3. The other difference in that region between the two modules is that the 101 resistor to the left of the 14 pin unknown IC is moved to one of the neighboring pads.

              Regarding that unknown IC, it looks like another custom ASIC (they really made none of this easy for us, did they), so no idea what it's doing. Bottom left pin on it (pin 1?) goes directly to the MCU, so it's definitely suspicious.

              I found some threads online about this IC burning out and throwing a "5DF5" DTC. Have the robots churning through all the disassemblies to see what they can learn about the IC and to check if the 817.3 treats it differently. Fully jumping the gun here, but it's looking promising so far!

              Click image for larger version

Name:	Screenshot 2026-12-04 at 11.19.00 AM.png
Views:	8
Size:	94.0 KB
ID:	617526
              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


                This the thread you're referencing? https://www.bimmerfest.com/threads/m...364125&slide=0

                Curiously that guys car seems to be an E46 318i with that zenner diode populated. And that module has other suspicious empty pads populated (I was eyeing the 0 ohm link by the SPI chip which seems to connect a power rail to one of the MCU inputs if I'm looking at it right?)

                Would be ironic if a damn 318i also had a flashable module lol

                Comment


                  Yep, that's one of the threads I saw. Don't know how I missed that the zener was populated in those pics...

                  Saw some others with 810.3/811.3/820.3 modules cut open. Those all seemed to be missing the zener.

                  Originally posted by terra View Post
                  Would be ironic if a damn 318i also had a flashable module lol
                  Man, that would be hilarious. $50 ZCP modules for everyone!
                  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


                    Did a bit more digging and found pictures/videos of cut open modules from R50 Minis. Looks like those also have the zener populated.

                    Wasn't there a rumor going around about a factory Mini cable that let you flash these modules? Would give even more credence to this theory.

                    Probably the best reference for the Mini board: https://youtu.be/zmkAuDSU1Zo&t=631
                    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


                      Click image for larger version

Name:	image.png
Views:	4
Size:	762.4 KB
ID:	617533​

                      The highlighted resistor seems suspicious to me too. Unpopulated on most, to me looks like tying Vdd to a different MCU pin.

                      I should open up my 818.3 and probe I guess.

                      Comment


                        Spent my lunch break probing everything I could get to on my live 820.3 bench unit. Didn't probe the MCU or ASIC pins directly cause I was afraid of shorting neighboring pins out.

                        There's roughly 40 pads that measure at >=4.3V. All of them marked in red in the pictures below. A lot of these are two sides of the same 0 ohm resistor or different component pads on the same trace.

                        Click image for larger version

Name:	20261204_124016.jpg
Views:	4
Size:	304.1 KB
ID:	617539
                        Click image for larger version

Name:	20261204_124034.jpg
Views:	4
Size:	250.5 KB
ID:	617540
                        Click image for larger version

Name:	20261204_124042.jpg
Views:	4
Size:	270.7 KB
ID:	617541
                        Click image for larger version

Name:	20261204_124049.jpg
Views:	4
Size:	266.1 KB
ID:	617542
                        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
                          The highlighted resistor seems suspicious to me too. Unpopulated on most, to me looks like tying Vdd to a different MCU pin.
                          Hmm, no 5V in that area. BUT, you did make me look at another pair 0 ohm resistors that change between variants:

                          Click image for larger version

Name:	820.3-vpp-candidate.jpg
Views:	7
Size:	264.8 KB
ID:	617546

                          Bottom right and top middle have "A" labeled with a purple background. Those two pads are connected and do not measure at 5V.

                          However, the pad directly below the bottom "A" measures at 5V. The 0 ohm resistor next to it measures 3.3V. On the 813.3, this resistor is moved from its spot in the picture above, to the "A" pad.

                          Bottom "A" also leads directly to an MCU pin.

                          So, there's an MCU pin that gets either 3.3V or 5V based on the placement of a 0 ohm resistor, which also electrically connects to the pad where the zener is unpopulated. I think we've got a candidate for Vpp!
                          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


                            Hot damn! Looks like that checks out on the mini too. Time to head to the shop and cross my fingers that there’s a busted R50 in for service
                            Click image for larger version

Name:	IMG_1472.png
Views:	0
Size:	1.10 MB
ID:	617549
                            ‘02 332iT / 6 | ‘70 Jaguar XJ6 electric conversion

                            Comment


                              This tidbit also would also why the 'non flashable' module still has 3.3v applied. I think you very well may have found it. The transient damage might also explain why the diode is present?

                              Click image for larger version  Name:	image.png Views:	0 Size:	46.5 KB ID:	617557

                              Also probably worth trying to figure out if we can dump the shadow memory. If the reset configuration is dependent on the shadow information, then we'll need to be able to restore that.

                              Comment


                                R50 mini also has that 10k resistor kitty corner to pin 1 populated across those two MCU pins. Might be an enable. Worth a quick test if you don’t see the change of both addresses from a read and you have a 10k handy.
                                ‘02 332iT / 6 | ‘70 Jaguar XJ6 electric conversion

                                Comment

                                Working...
                                X