Originally posted by Bry5on
View Post
Announcement
Collapse
No announcement yet.
Flashing the MK60 with ZCP software
Collapse
X
-
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
- Likes 3
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.
- Likes 2
Comment
-
Yep! That's the datasheet I've been referencing. Thanks for linking.Originally posted by terra View PostDoes 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
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
- Likes 1
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:
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!
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
- Likes 1
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
- Likes 1
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.
Man, that would be hilarious. $50 ZCP modules for everyone!Originally posted by terra View PostWould be ironic if a damn 318i also had a flashable module lol2002 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
- Likes 2
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=6312002 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
- Likes 2
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.
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
- Likes 1
Comment
-
Hmm, no 5V in that area. BUT, you did make me look at another pair 0 ohm resistors that change between variants:Originally posted by terra View PostThe highlighted resistor seems suspicious to me too. Unpopulated on most, to me looks like tying Vdd to a different MCU pin.
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
- Likes 2
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?
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.
- Likes 1
Comment

Comment