Crack Locked MCU TMS320F28069 Flash

The TMS320F28069 is the largest member of the F2806x generation: two hundred and fifty-six kilobytes of flash, a hundred kilobytes of RAM, ninety megahertz, floating point, a control law accelerator, USB, and enough memory that designs stopped optimising. When a device of this size arrives locked, the interesting question is not whether it can be read but how much of it can be read without opening the package, because at this scale a partial answer is often enough to finish a job.

Size changes the strategy

On a sixteen kiloword device the program is small enough that losing any of it is fatal. On this device the array holds the application, the libraries, the tables, the emulated-EEPROM sectors and, quite often, a bootloader and a diagnostic image that the shipped product never runs. That distribution means a recovery which returns three quarters of the array can still contain the whole of the control loop. The first task with a locked device of this size is to find out what fraction is reachable, and the ways of finding out are cheaper than decapsulation.

What can be learned while it is locked

Execution is not blocked by security. A secured device runs normally, its converters convert, its modulation outputs switch, and its serial ports talk. Anything the firmware chooses to report can be observed: version strings on a maintenance port, the shape of a start-up handshake, the timing of a watchdog refresh. On a large device those observations map onto code regions, and a region that can be identified is a region that can be targeted. This is slow work and it is the reason some recovery projects are quoted by the week rather than by the device.

The top of the array

The last sector holds the interrupt vectors, the branch word that the boot ROM follows, and the eight password words. It is also the sector that a field update must handle most carefully, because a power failure during its rewrite leaves a device with no valid vectors. Units that arrive dead but not erased are usually in that state, and the repair is not an unlock: it is an erase and a re-program, which requires the image that the customer no longer has. That circularity is why the sector at the top deserves its own paragraph in every recovery report.

RAM on a device this size

A hundred kilobytes of RAM is divided into blocks, and the security module’s treatment of those blocks is not uniform across the family. Some are inside the perimeter and some are not, and the ones outside can be read while the device runs if anything is listening. On a design that stages a communication buffer or a parameter table in an unprotected block, that table is available without any attack at all. Finding out whether a particular product does this takes an afternoon with the schematic and the map file, and it is the cheapest hour in the whole project.

When opening is the answer

At this die size, decapsulation is a longer job than on a Piccolo: the array is large, the imaging is done in strips, and the reconstruction has to cope with a flash layout that repeats at regular intervals. It is done, and it returns the full two hundred and fifty-six kilobytes with the sector boundaries marked. The cost is a function of area and of how many passes the array needs, which is why an accurate quote requires the package marking rather than the orderable part number. The work is described at IC decapsulation service.

Related devices

The hundred and twenty-eight kilobyte members of the same generation are at TMS320F28062 and TMS320F28063, the sixty-seven and sixty-eight at TMS320F28067 and TMS320F28068F. The previous generation’s large part is TMS320F2809. For the surrounding service catalogue see microcontroller unlock service and microcontroller unlock.