TMS320F243: When the Peripheral Set Decides What a Firmware Image Means
Parts in a family share a core, an instruction set and a security model, and differ in what surrounds the core. That difference is usually treated as a selection detail — this one has more timers, that one has a different package. For firmware analysis it is the opposite of a detail: the peripheral set is the vocabulary in which the code is written.
The F243 is the case in point. Its array and protection work like the F241’s. Its firmware does not look anything like the F241’s, because the peripherals it drives are different, and the addresses it touches are different in ways a disassembly shows immediately.
The package tells you less than you think
A package code names a pin count and a thermal characteristic. It does not name the memory size, the peripheral mix, or the revision. Reading a part number as a specification is how two devices end up treated as interchangeable when they are not.
On a device being analysed after the fact, the reliable statements are the ones measured: which pins carry activity, which peripheral registers are written at startup, and what the resulting outputs look like. Everything else is inference from a marking that may not even be the original.
| Evidence | What it reliably tells you |
|---|---|
| Pin activity during operation | Which peripherals the design uses |
| Startup register writes | Which peripherals the firmware configures |
| Package marking | Claimed part number; verify, do not assume |
| Die marking after decapsulation | Actual silicon revision |
Peripheral differences change the code, not just the wiring
Consider what a firmware image consists of. Most of it, in volume terms, is peripheral handling: setting up timers, servicing conversions, formatting communications, sequencing outputs. Change the peripheral set and that majority changes, even though the core is identical and the algorithm is the same.
That has a practical consequence for comparison. Two images from two parts in the same family will not resemble each other, and their dissimilarity says nothing about whether they implement the same function. Comparing them at the level of instruction sequences is meaningless; comparing them at the level of observable behaviour is the only comparison that holds.
What “secured” means in a service context
These devices were programmed on production lines, and the password was set by whatever tool did the programming. In the years since, the tool, the record of the password, and often the vendor have gone.
So the realistic starting position is: the device is locked, the password is unknown, and there is no organisation left to ask. That is a different problem from a device locked by a deliberate security decision, and it deserves a different response — often the practical answer is a functional replacement rather than an extraction.
The distinction matters because it changes what counts as success. Recovering a 1990s motor controller’s exact image is rarely necessary. Restoring the machine it drives is.
Analysing a device whose array you cannot read
The method that works on this generation, in order:
- Map the board. Which pins of the device go where. This is measurable and requires no access to memory.
- Characterise the inputs and outputs. For a control device: what it senses, what it drives, with what timing and resolution.
- Identify the control law from response. Step, ramp, load change. The response reveals the structure — proportional, integral, feed-forward, limit behaviour.
- Identify the communication. Protocol, frame rate, message format. A bus capture gives this in minutes.
- Rebuild to the specification. Not to the instruction stream — to the observed behaviour.
The order is deliberate. Each step is cheap and independent, and the first four together produce a specification complete enough to rebuild from, without ever touching the protected region.
Where the security model intrudes
Two places only:
Erase granularity. On this generation the array erases coarsely, so there is no option to clear a small region and leave the rest. Any attempt to remove protection by erasing removes everything.
Read substitution. Protected reads return uniform values, so a partially successful attempt is hard to distinguish from a failed one. Verification requires a known-populated address, and on a device whose contents are unknown, no such address exists in advance.
Everything else about the analysis — the board, the timing, the protocol — proceeds regardless of the lock state, which is why the behavioural route is the productive one on a device this old.
Revisions and why they matter here
Silicon revisions on a part of this age fix errata, and the errata include peripheral behaviour that firmware written for one revision may not tolerate on another. A rebuilt implementation that works on one unit and fails on another is often a revision difference rather than a coding error.
The check is to compare the die marking of a working unit against the marking of a suspect one, or, failing that, to test the specific peripheral behaviour that differs between revisions. This is where decapsulation occasionally earns its cost — not for the array, but for the marking.
Practical summary
- Treat the part number as a claim and the measurements as facts.
- Expect the firmware to be dominated by peripheral handling, and therefore to differ entirely between family members.
- On a locked service device, rebuild to behaviour; the specification is the deliverable.
- Check revision before blaming a rebuild for a difference.
Related reading
- TMS320F241 and the loader path — the sibling part, and the interface both share.
- TMS320F240 and protection as a programming option — the security model in its original form.
- TMS320F28335 and decapsulation as a source of markings — when the die has to be read to identify the silicon.
FAQ
Are the F241 and F243 interchangeable? Only if the design does not use the peripherals that differ. Their firmware, and often their pin behaviour, is not.
Does the lock prevent behavioural analysis? No. Measuring the board, the timing and the protocol requires no access to memory.
Is extraction the normal outcome on devices this old? Rarely. Reconstruction to an observed specification is more common and more useful.
Why do two units behave differently on the same rebuild? Usually a silicon revision difference in peripheral behaviour.
Can the revision be determined without decapsulation? Sometimes, through revision-specific behaviour. Otherwise the die marking is the reliable source.
Conclusion
The F243 differs from its siblings in the part of the firmware that dominates it — the peripherals — so an image from one part says little about the other even when the algorithm is the same. On a locked device of this generation the productive route is specification: board, timing, protocol, response, rebuild. The lock blocks one source of information; it does not block the others.