PostHeaderIcon MSP430F2352: Identifying the Sub-Family Before Choosing a Route

Two parts can carry similar markings, run the same core at the same voltage, and still require different extraction routes, because the route depends on which bootstrap loader is present, where the calibration constants live, and which serial module the design used. Getting that wrong means a session spent probing an interface the device does not implement.

On this part the question is not academic. The F2 and G2 lines are closely related, and a plan written for one will nearly work on the other, which is worse than not working at all — it produces partial success and misleading conclusions.

What actually differs

The differences that matter for extraction are specific and few.

The calibration table. One line stores factory calibration constants in the information memory with a structure that describes itself; the other stores them at fixed addresses without a descriptor. The consequence is that a routine which walks the table on one device reads nonsense on the other.

The serial module. The two lines do not use the same peripheral for I2C and SPI. Register layouts, interrupt flags and initialisation sequences differ, so a monitor program written against one will not drive the other.

The bootstrap loader. Its presence, its transport and its version differ by part and by revision. On some parts of this class it is absent or minimal, which removes the most convenient non-invasive route entirely.

Property Why it changes the plan
Calibration table layout Determines whether constants are found by walking or by fixed address
Serial module type Determines which monitor code will run
Loader presence and version Determines whether any loader route exists at all
Information memory size Determines whether staging space is available on-chip

Measurements that settle it

Four checks, in increasing order of effort, are enough to identify what is on the board.

  1. Read the device descriptor area if the part has one. Its presence and its first entries identify the device family directly.
  2. Read the information memory and look at the layout of the calibration constants: a described structure with lengths and tags, or a run of values at fixed offsets.
  3. Query the loader and record its version response. The response format is characteristic.
  4. Initialise the suspected serial module and confirm it moves a byte. A wrong guess leaves the module silent.

The order matters because the first two require no execution on the device beyond a memory read, and the last requires code. Starting with the cheapest check and stopping as soon as the answer is unambiguous is the discipline that keeps sessions short.

Reading calibration without disturbing it

The information memory is not part of the main array, and on many parts it is readable even when the main array is protected. That makes it the natural first read on an unknown device: it costs nothing and it often produces the identification.

A caution that applies to every read of this region: some of it is written by the factory and some of it is available to the application. A device whose application has stored data there will not match a factory layout, and mistaking application data for calibration values produces exactly the kind of confidently wrong conclusion that this article is about.

The discriminator is consistency. Factory values in this region follow a pattern across parts of the same type; two devices of the same marking should have byte-identical factory regions and different application regions. Comparing two is the fastest way to tell which is which.

The loader question

Where the loader exists, it is the least invasive route to a working extraction, because it requires nothing but a serial connection and the correct password. Where it does not exist, or where its transport is not brought out on the board, the route closes.

The loader password deserves a note here because it is frequently misunderstood. It is not a stored secret compared against a stored value. It is derived from a region of the device’s own memory, which means a device whose vector table can be read has a loader that can be entered, and a device whose vector table cannot be read does not.

That relationship is the reason a device with an intact but unknown program is sometimes easier than a device with a damaged one: the vector table is both the entry point of the program and the key to the loader.

What protection actually means on this core

There is no read-protect bit that can be set for one region and not another. The mechanism is a single fuse-equivalent location in the array, and its state is binary: either the debug interface can access the array, or it cannot.

That simplicity is useful. It means the state can be established in one transaction, and it means that partial protection does not exist — a claim that a device is partly readable is almost always a claim about a different device or a different interface.

It also means the failure modes are limited. A device that will not respond is not in a third protection state; it is either not running or not connected properly, and those are electrical questions.

Route selection

With the identification done, the choice is short:

  • Loader available and vector table readable: use the loader, expect a clean extraction.
  • Loader available but the vector table is not readable: the loader is closed; treat as locked.
  • No loader: the debug interface is the only path, which requires the protection to be absent.
  • Protection present and no loader: physical work, or a reimplementation against the measured behaviour.

Writing that list down before touching hardware prevents the most common waste in this work, which is attempting routes in the order they were learned rather than the order they are likely to succeed.

Related reading

FAQ

Can the sub-family be identified from the package marking? Usually, but revisions within a marking can differ in loader version.

Is the information memory protected? Often not, which is why it is the best first read.

Does the loader password come from the vector table? On this class of device, yes, which links the two questions directly.

Is there partial protection? No. The state is binary.

Conclusion

Identify the sub-family before choosing a route. The descriptor area, the calibration layout, the loader version and one byte through the serial module will tell you which device you have, and the route selection that follows is short enough to write on one line. Most wasted sessions on these parts come from skipping that step.

Comments are closed.