The TMS320F2801 is the smallest of the hundred megahertz C28x devices: sixteen kilowords of flash, six kilowords of single-access RAM, three enhanced pulse-width-modulation units with six outputs, two capture inputs, one encoder interface, and a hundred-pin low-profile quad flatpack under the PZA suffix. It is old enough that new designs no longer choose it and common enough that service requests still arrive every week from people maintaining drives and welders built between 2005 and 2012.
The RAM on this device is not one region. It is L0, M0 and M1, four kilowords in L0 and one each in the other two, and the split is not administrative. The security module protects L0 and leaves M0 and M1 outside its perimeter. That single architectural decision defines what is and is not readable on a locked device: a program that keeps its working state in M0 and M1 has left that state in the open, and a device that has been running can have those blocks read by anything that can talk to the port, security or no security. It is a narrow door and it is a real one.
Flash, the one-time-programmable block and L0. That is the protected set, and the eight password words at the top of the array guard all three together. The consequence is that a partial recovery is architecturally possible: on a device whose code has been written to stage data through unprotected RAM, a capture taken while it runs contains fragments of tables, buffers and sometimes entire routines copied to RAM for speed. We have reconstructed working control loops from nothing but unprotected RAM contents and a great deal of patience, and it is worth knowing that the possibility exists before quoting a customer for a full decapsulation.
At ten nanoseconds per cycle the flash cannot supply an instruction every cycle, so the array is read with wait states and the pipeline mode is what makes the device usable at its rated speed. Code that must run without wait states is copied to RAM at start-up, which is why the initialisation sequence on a 2801 contains a block of word copies that look like data movement and are actually the relocation of the inner loop. A recovered image without those copies identified is a program whose timing cannot be reproduced.
With the password, the port returns the array in a couple of minutes: sixteen kilowords, sector by sector, with the OTP block read separately because it sits at a different address and holds different things. Without the password, the device is either approached through its unprotected RAM while running, or opened. The hundred-pin package is a good one to work with, the die is central and the array is small enough to image in two passes. Reports for this part carry the RAM map as a separate file, since the RAM contents of a running capture are a snapshot and not a program.
Many products of this era set the password to something memorable, because the development team had to type it every day. Eight characters of ASCII, stored as eight sixteen-bit words with the bytes in whichever order the programming tool used. Before any physical work we try the obvious candidates in both byte orders: the product name, the customer’s initials, the date of the design freeze, the word password itself. It succeeds perhaps one time in twenty, and one time in twenty is worth twenty minutes of a bench slot.
The larger members of the same generation are TMS320F2802, TMS320F2806 and TMS320F2806PZS, with the sixty-four and hundred and twenty-eight kiloword parts at TMS320F2808 and TMS320F2809. The later Piccolos that replaced this device in new designs start at TMS320F28027. The wider C2000 catalogue is indexed under MCU crack service, and the category page under microcontroller unlock.