Posts Tagged ‘öffnen Mikroprozessor-Flash- und EEPROM-Heximalprogramm’
TMS320F28335: What Decapsulation Gives You, and What It Does Not
Decapsulation has a reputation as the dramatic step — acid, a microscope, a device opened like an oyster. The reputation oversells both the difficulty and the payoff. Removing a package is a controlled chemical procedure with well-understood failure modes. What it buys is access: to the die surface, to the bond pads, and to a flash array that no longer has a security module between it and a probe.
What it does not buy is everything. Understanding the boundary is what keeps a decapsulation project from becoming an expensive detour.
What the package is protecting
Two things stand between an outside reader and the array: the access control logic, and the fact that the array is inside silicon. Removing the package addresses the second. The first either remains in the signal path or is bypassed by contacting the array directly.
That distinction defines the two families of technique:
| Approach | What it bypasses | What it requires |
|---|---|---|
| Contact the array through the die surface | The core and its access logic | Precise alignment, no damage to the array’s own decoding |
| Contact the test or debug pads | The package | Knowledge of the pad’s function |
| Read the die optically | Nothing electrical | That the cells are legible at the process node |
On a part of this generation the third is impractical — the array is a flash cell array, not a mask ROM, and its state is not visible as a pattern of doped regions. The first is a serious undertaking. The second is usually the productive one, because the pads exist for exactly this purpose and their function is documented for the silicon, even when the vendor does not document them for the customer.
Die markings, and why they matter more than expected
A decapsulated die carries laser or ink markings: a part number, a date code, sometimes a mask revision. These are the only reliable evidence of which silicon is present, and they answer questions that no electrical test can:
- Whether the part is what the package claims, which is not guaranteed on a counterfeit-heavy market.
- Which revision’s errata apply, since revisions change the behaviour of peripherals in ways that matter when reconstructing firmware.
- Whether two devices from different production runs are the same silicon, which decides whether they can be treated as a matched pair.
On a recovery project, the third item is often the one that changes the plan. A device whose die differs from the reference device cannot be verified against it, and the difference is invisible from the outside.
Preparing a device for decapsulation
Three steps precede any chemistry:
- Record behaviour. The device will not survive in a usable state. Voltage and current at every pin, boot time, communication responses, output waveforms — all of it has to be captured while the device is intact.
- Remove the board. A die on a populated board cannot be worked on while the surrounding components are in the way, and the heat involved is not kind to them.
- Photograph the package. Markings, pin one, orientation. After decapsulation the package is destroyed and the identification goes with it.
The first step is skipped routinely and is the single most expensive omission in the whole procedure. A decapsulated device whose behaviour was never measured is a device whose firmware can be read and whose purpose cannot be confirmed.
What the array looks like from inside
Once the passivation is removed, the flash array is a regular structure with visible decode circuitry between blocks. Access requires either probing the array’s own sense path or driving the internal bus from a point beyond the security module.
The practical difficulties are not exotic: probe positioning at the scale of a modern process, damage to the passivation from repeated contact, and the fact that the device is powered while being probed. Each is a handled problem in the field and each is a source of yield loss on any given device.
Reads obtained this way produce data, not meaning. Interpreting it is the same exercise as decoding any image: find the vector table, anchor on startup code, separate code from data.
What decapsulation does not recover
The list is worth stating plainly, because expectations built on the wrong list waste real money:
- Clock and peripheral configuration — unless it is in the code, it is not in the array, and it was set by code.
- Analog trim values — stored in a factory area that may or may not be part of the flash, and not part of the program image.
- The algorithm’s intent — the instructions come out; the meaning has to be reconstructed.
- Anything never programmed — a part that was erased before decapsulation yields an erased array, opened for nothing.
The last item happens when a device is removed from a product without confirming it still had its program. A part that had already been mass-erased, or had failed, is indistinguishable from a working one until it is opened.
When it is worth doing
The decision rule is straightforward. Decapsulation is worth it when the array contains something that cannot be obtained another way, and when obtaining it justifies a destroyed device.
That means: the device must be working and programmed, no sibling unit must be available with the same build, and the program must be the goal rather than the part. If a sibling unit exists, reading that unit — or simply duplicating it — answers the question without destroying anything.
Where a sibling does not exist, and the device is the last of its build, decapsulation is often the only route to the contents. It is then a one-way operation on a unique object, and the preparation steps become the entire value of the project.
Related reading
- TMS320F28234 and decoding what comes out — how to turn array data into an understanding of the firmware.
- TMS320F28067 and the electrical route — the alternative when the array is reachable without opening anything.
- TMS320F28075 and zone configuration — configuration that lives in OTP and does not survive the array.
FAQ
Does decapsulation damage the device? It ends its useful life as a component. The die remains readable, which is the point.
Can the security module be bypassed by probing? The array can be reached through the die surface, past the access logic. That is the practical reason decapsulation is considered at all.
Do I need the device to be working first? It helps enormously. Behaviour recorded before opening is the only way to confirm what the firmware was for.
Are die markings reliable? They are the best available evidence of silicon revision, and revision drives errata, which drives behaviour.
Is optical reading of a flash array practical? Not on a part of this generation. Flash cell state is not legible as a surface pattern.
Conclusion
Decapsulation is a reliable procedure with a narrow payoff: array access and die identification. It does not recover configuration, trim or intent, and it destroys the device it is performed on. The projects that go well are the ones where the device was measured first and where no sibling unit existed — because in every other case there was a cheaper way to the same answer.