TMS320F28375: There Is No Cipher Here to Decrypt
“Decrypt” is the word people reach for, and on this part it describes something that does not exist. There is no algorithm turning plaintext into ciphertext at program time, no key schedule, no block structure. The flash contains instructions in the form the core executes them. The security module decides whether a given requester is allowed to see them.
That is not a distinction in vocabulary. It changes the whole shape of the problem. With a cipher, effort scales with key length and there is a mathematical question to attack. With an access gate, effort scales with how the gate is configured and what the requester can legitimately do — which is an engineering question, and one that has answers.
What the two-zone arrangement actually does
This part splits its protected memory into two zones, each with a password and each with an OTP configuration block. The zones govern flash sectors and RAM blocks. A requester inside zone one can read zone one’s flash; a requester inside zone two can read zone two’s. Neither can read the other unless the configuration links them.
The gate applies to reads as data. It does not stop the core from fetching instructions from the zone it is executing in, because that would stop the product from working.
| Requester | Target | Result |
|---|---|---|
| Zone one code | Zone one flash | Allowed |
| Zone one code | Zone two flash | Zeros |
| Debug interface, unlocked zone | That zone’s flash | Allowed |
| Debug interface, locked zone | That zone’s flash | Zeros |
Why “reading zeros” is the whole story
Every protected read returns zero. Not an error, not a trap, not a flag. This means:
- A locked part is not distinguishable from an erased part by reading.
- Software running inside the zone cannot detect that it is being denied — it never asks for memory outside its own zone, by construction.
- An attempt that half-succeeds looks identical to one that failed, unless the target address is known to have been populated.
The last point is the practical one. Verification requires an address that is known to contain code. The vector table is the standard choice: if the reset vector reads as a plausible branch, the zone is open; if it reads as zero, it is closed.
Configuration is the real target
Because there is no cipher, the informative object is not the code — it is the configuration that decides who may read the code. On this family the OTP block holds, per zone:
- a lock field deciding whether the password may be changed;
- a CRC lock, enforcing an integrity check over the zone;
- a RAM allocation field, deciding whether code outside the zone may claim the zone’s RAM;
- an execute-only field, which permits fetching but not reading.
Each of these is a bit or a small field, and each is readable before any password is supplied. That makes the configuration the correct first read on any unknown device — it is small, it is outside the gate, and it tells you which of several quite different situations you are in.
Execute-only, and why it is not a lock
An execute-only zone is the most misunderstood state on this family. It permits the core to fetch from the zone and denies data reads. Code runs perfectly. Any attempt to copy it as data returns something that is not the code.
From outside, such a device looks normal and is fully functional. From inside, a debugger that has unlocked the zone still cannot read the array as data — the restriction is on the access type, not on the password.
Recovering code from an execute-only zone is therefore not a matter of finding a better key. It is a matter of obtaining the instructions through a path that the hardware permits: execution. That means observation — timing, bus activity, outputs — and reconstruction, not extraction.
What the CRC lock adds
When the CRC lock is set, the zone’s protected region is covered by a checksum held in OTP. Modifying the array without updating the CRC produces a device that fails its own integrity check at boot.
This matters for two reasons. It prevents the simplest form of modification — patching a few words to change behaviour — and it leaves evidence: a device that will not boot after a partial write is telling you that the check exists and that the write was incomplete.
For a recovery project the CRC is a gift, because it constrains the image. A candidate reconstruction that satisfies the checksum is almost certainly correct in structure, even if individual words are uncertain.
Order of operations on an unknown device
- Read the OTP configuration for both zones. This is always possible and always informative.
- Determine, per zone, whether it is populated, open, locked or execute-only.
- For open zones, read normally and verify against the vector table.
- For locked zones, the question becomes whether the password is available from the product’s own material — production records, build systems, vendor documentation.
- For execute-only zones, plan for observation rather than extraction.
- Only after all of the above, consider physical approaches.
Step four deserves emphasis. On products built by an organisation that still exists, the password is frequently recorded somewhere — in a production script, in a build configuration, in a programming file. Asking is cheaper than any technique in this article.
The limits, stated plainly
- Code behind a locked zone with an unknown password is not recoverable by any electrical means.
- Code in an execute-only zone is not recoverable as data at all.
- Configuration recovered without the code is still useful, because it tells you what the next reader will face.
A device can be simultaneously healthy, functional, and permanently closed. Recognising that early is worth more than any amount of procedure.
Related reading
- TMS320F28075 and the zone-link pointer — the same architecture in its single-link form.
- TMS320F2809 and the unlock sequence — the older, single-module equivalent.
- TMS320F28335 and the physical route — what opening the package changes, and what it does not.
FAQ
Is the flash content encrypted? No. It is stored as instructions and gated by an access check at read time.
Can a locked zone be read through the debug interface? Only after the zone is unlocked with its password. Until then, reads return zeros.
What does execute-only protect against? Data reads and copies. It does not prevent execution, which is the point of the mode.
Does the CRC lock prevent modification? It makes modification detectable, and a device that fails its own check at boot will not run.
Is the configuration readable on a locked part? Yes. The OTP block sits outside the gate, which is why reading it first is the right move.
Conclusion
There is no cipher on the F28375, and treating the problem as decryption sends effort in the wrong direction. The gate is configuration, the configuration is readable, and the difficulty is almost always in establishing which zone is in which state. That is measurable in an hour; a cryptographic framing is unmeasurable forever.