Ninety-six kilobytes of flash and six kilobytes of RAM in a 100-pin LQFP, with twenty-four channels of 12-bit conversion and 87 input and output pins. The MC9S08DZ96CLL is the widest member of the DZ family, and the ratio between its array and its RAM is the number that governs how a recovery has to be organised: there is no version of this job in which the whole image sits in memory at once.
Sixteen to one is a comfortable ratio for firmware and an uncomfortable one for extraction. A page is five hundred and twelve bytes, so a six kilobyte buffer holds twelve pages and no more. That rules out the obvious approach of reading the array into RAM and dumping it in one transaction, and it rules out the other obvious approach of copying the array through a stub. The work has to be done in passes, with a running record of which pages have been confirmed and which were retried.
Each page carries its own internal error behaviour, so a capture can be validated in units of five hundred and twelve bytes. The right pattern is to read a page, compute its check, compare against what the device reports if any status path is available, and only then move on. An extraction that runs to completion and only then fails verification has to be repeated from the beginning, and on a device of this size that is a wasted evening.
NVOPT at 0xFFBF, NVPROT at 0xFFBD, the eight key bytes at 0xFFB0, the vectors from 0xFFC0. Unchanged from the rest of the family, and located in the last page, which on a hundred-and-eighty-eight-page array is also the page most likely to be protected against writing. That protection is a common source of confusion during a rebuild: the image writes back cleanly everywhere except the top page, and the programmer reports a violation rather than a lock.
A hundred pins means the converter channels, both serial ports, the CAN port and the timers are all available at once. For the recovery that matters in one specific way: there is room to attach a logic analyser to the bus and to the serial lines without disturbing anything, and the traffic observed there can be correlated with addresses in the recovered image. On a smaller package the same analysis requires guessing which function shares which pin.
With the key disabled, the debug interface offers only a mass erase, and the mass erase destroys the array. The physical path is therefore the only one that preserves the code, and on a 100-pin LQFP the die is small relative to the package, which makes the opening straightforward but the addressing careful: the array is large and the page numbering has to be tracked explicitly. IC decapsulation service covers the read, and firmware extraction service covers turning the captured pages back into a single image.
Twenty-four channels at twelve bits is more analog input than any single application needs, so the firmware selects a subset and scales each one. That selection is a table, and the table is the part of the image a rewrite cannot invent: which channel measures battery voltage, which measures temperature, and what divider sits in front of each are all decisions made by the original integrator. Recovering the table is often the difference between a board that runs and a board that reads the right numbers.
The family scales in both directions, and the MC9S08DZ128MLF encrypted microprocessor uses a paged map while the MC9S08DZ60ACLC locked mcu memory does not, so the file conventions differ even though the control byte does not. Reading one device of each kind is a good way to build a reference library before a production run of mixed variants arrives. A different architecture with a comparable problem is described in the notes on LPC2148FBD64 firmware decryption, where the array is also read under a protection scheme that has a documented escape route and a documented failure mode.
Finally, a note about the converter. Twenty-four channels of 12-bit conversion on an automotive node usually means a table of channel assignments and scaling factors somewhere in the image. That table is the most portable part of the firmware and the most valuable after a board is replaced.