PostHeaderIcon MSP430G2413: Five Questions to Answer Before the Session Starts

The technical part of this work is usually decided in the first hour. Everything after that is execution. The projects that fail are almost always the ones where a question that should have been asked at the start was asked at the end, when a device has already been sacrificed.

These are the five questions. Each one has a technical basis, and each one has an answer that changes the plan.

One: is the part still available

A device in production can be bought. That sounds like a reason not to need the work, and it frequently is — a customer asking for extraction of a current-production part sometimes wants a second source, and sometimes has simply not checked the price of a new one.

The technical question behind it is different. A part in production is still supported, which means its documentation is accurate, its errata are current, and its protection mechanisms are the ones in the datasheet rather than the ones a revision introduced eight years ago.

For an obsolete part those assumptions fail, and the work becomes partly archaeological. Both are legitimate jobs; they are not the same job.

Two: what is the protection state

Three states, three plans.

Unprotected means the array can be read and the project is a transfer. Protected with a derivable password means the project is a derivation. Protected with an unknown password means the project is either analysis or physical work.

Establishing the state is one session and should never be skipped, because the difference between the second and third rows is the difference between a day and a month.

Three: is there a second unit

A single sample constrains every method to the non-destructive ones. Two samples allow one to be used to establish what a procedure does before the other is exposed to it.

That is not a small advantage. On a device where the protection transition is irreversible, having a unit that can be ruined converts an experiment into a calculation. Where there is only one unit, the same work becomes a decision made without evidence.

A related question: is the unit functioning. A device that does not run is not a candidate for most methods, and establishing that it runs is part of the first session.

Four: is the program the only asset

The program is frequently not the thing the customer needs, even when they say it is.

The parameters may be in a serial memory on the board. The calibration may be on a sensor. The identity may be in a separate chip. The mechanical design and the bill of materials may be enough to rebuild the product with a new program.

Where the surrounding assets exist, the project is a board-level recovery rather than an extraction, and the microcontroller may not need to be opened at all. Asking what the product does, and what else on the board holds the answer, is the single most valuable question in this list.

Five: is the program even in this device

This is the question that is asked least and matters most on modern designs.

A growing number of products keep their program in an external serial flash and use the microcontroller only as a loader and an executor, or run directly from an external memory. In that case the internal array holds a boot routine and nothing of value, and the protected microcontroller is not the target.

The signal is an external memory device on the board whose size matches the product’s ambition, plus a program image in the internal array that is too small to be the product. Where that combination appears, the external device is the subject, and it is frequently unprotected.

Observation What it suggests
External serial memory larger than a few kilobytes The program may be there
Internal image too small for the product’s function The internal array is a loader
Microcontroller with an external memory interface in use Code may execute in place
Internal image that contains protocol code and peripheral setup The program is internal after all

The cases that have no route

Two situations are worth recognising early because they have no technical solution at any price.

A device whose protection is permanent by design, with the debug interface fused off and no loader, and with no export path in its program, has no route that does not involve the physical layer of the die.

A device whose program is encrypted in an external memory, with the key held in a protected internal region that itself cannot be read, has no route short of the same.

Recognising these is not pessimism. It is the difference between declining a project and spending a month discovering that it should have been declined.

What the answers produce

Five answers produce one of four plans: a transfer, a derivation, a board-level recovery, or a decline.

That is a coarse output for an hour of questions, and it is far more accurate than the plan produced by starting at the bench and seeing what happens. The rest of this series describes the execution of each plan; this article describes choosing between them.

Related reading

FAQ

Is an obsolete part always harder? It is less documented, which matters more than the silicon.

Why does a second unit matter so much? It converts an irreversible decision into a test.

Can the program be in an external memory? Frequently, on designs newer than the microcontroller family.

Is declining ever the right answer? When the protection is permanent and there is no export path, yes.

Conclusion

Ask the five questions before the session. Availability, protection state, sample count, asset location and the location of the program itself decide the plan, and four of the five can be answered without touching the device. The bench is for execution, not for discovery.

Comments are closed.