Remove MC68HC11K1 MCU Protection

“Remove the protection on this MC68HC11K1” needs one correction before any work starts, and it is the correction that also applies to the F1: the K1 is ROMless. Unlike the F1, though, it is not empty of non-volatile memory. It carries 640 bytes of EEPROM, and inside the K family that distinction is the entire product line — the K0 has none, the K1 has 640 bytes, the K4 adds 24 kilobytes of ROM on top.

The family in one table

Motorola’s device table settles it. K0: no ROM, 768 bytes of RAM, no EEPROM. K1: no ROM, 768 bytes of RAM, 640 bytes of EEPROM, 37 I/O lines in an 84-pin PLCC or 80-pin QFP. K4: 24 kilobytes of ROM, same RAM and EEPROM, 62 I/O lines. The K4 additionally offers a one megabyte address space through the family’s mapping logic and four programmable chip selects. So the protection being removed from a K1 is not ROM protection. It is the protection on 640 bytes of EEPROM, and on a machine controller those bytes are usually the settings that make the machine work.

Two registers that decide where things are

The K family does not fix its memory in place. The 128-byte register block starts at $0000 and can be moved to any 4 kilobyte boundary by INIT. The EEPROM starts at $0D80 and can be moved to any 4 kilobyte boundary by INIT2. Both read zero out of reset, which is why a dump taken from a running board often fails to match a dump taken from the same part on a bench: the program relocated the EEPROM before it did anything else.

There is a sharper consequence. Freescale’s own note on this family says the EEPROM can be mapped to a location that contains the vector space. Where a design did that deliberately, the interrupt vectors are not in ROM and not in a fixed place — they live in EEPROM, at an address the code chose at startup. A recovery that treats EEPROM as an afterthought misses the one region that tells the CPU where to jump.

What the security bits actually gate

On a part with no ROM the mechanism has less to protect, and the documentation is correspondingly brief about it. What it does gate is the bootstrap path: with security set, the loader will not hand internal memory to an external reader. On a K1 that means the EEPROM, and the practical result is a programmer reporting a blank device that is in fact full of settings.

How the bytes come out

Where the bootstrap route is closed, the array is read physically under IC decapsulation service. That read has to be planned around the mapping, because a captured region is only meaningful once INIT2 is known. The job therefore includes working that value out from the code, from a second unit, or from the board’s own initialisation sequence, and delivering the 640 bytes with the address they occupied at run time rather than the address they sit at after reset. It is a small distinction that decides whether the file can be used at all. microcontroller unlock service covers the non-destructive attempts that should be exhausted first, and firmware extraction service covers formatting and documentation.

Replacement paths

Because the K1 has no program memory, code recovery and board repair are separate problems, and the second is often easier than customers expect: the K4 shares the same packages, the same 768 bytes of RAM and the same 640 bytes of EEPROM, and adds ROM the original never had. Whether that substitution is legitimate depends on the licence attached to the code, which is the customer’s call and not ours. The MC68HC11K4 article covers that part; MC68HC11KA4 is the pin-compatible predecessor Freescale later replaced with the MC68HC11KS2, and IC clone service covers producing programmed parts once a target device is settled.