PostHeaderIcon ATtiny84: What a Complete Image Looks Like on a Fully Used Array

Small families are built by putting several memory sizes in the same package, and the smaller members occupy only part of the address map. That leaves an unimplemented tail which reads as FF — a harmless artefact once recognised, and a persistent source of confusion before it is.

This member is the largest of the fourteen-pin group, so its array is fully populated. There is no unimplemented tail. Every address in the map corresponds to real cells, which means a large FF region is now a claim about content rather than about the die.

The map, and why it matters

Region Content Consequence of a gap
Vector table Reset and interrupt entries Device cannot be running the code you think
Start-up Clock and peripheral configuration Behaviour differs from the source you reconstruct
Application The bulk of the logic Missing functions, unresolvable calls
Tail FF if the build is smaller than the part Normal, not a fault

The fourth row is the one that changes meaning on a fully populated part. On a smaller sibling, FF at the top is expected. Here, FF at the top means the build did not use the space, which is common and worth stating explicitly in a report so that nobody later interprets it as truncation.

Four checks that establish completeness

The end-of-file marker. In a hex file, a missing terminator means truncation. Cheap to check, and it catches a partial write of the file itself rather than a partial read of the device.

The instruction encoding at the boundary. A file padded to a round length ends in FF, which is not a valid instruction. A file that ends in valid-looking code is telling you the real length is shorter than the file.

The vector table’s shape. On this family the reset vector is a jump, and the interrupt vectors follow at a fixed spacing. A table whose entries decode as valid jumps is aligned; a table that decodes as garbage is off by a byte or two.

Page-level double reads. Every page read twice, compared. A page that differs between passes was read at an inadequate margin, and its content is a hypothesis rather than data.

The four are independent, which is why doing all four is worth the few minutes. Each catches a different class of error, and a file that passes all four is defensible.

Why this family has no boot section

There is no self-programming path on these parts: no boot section, no boot lock bits, no SPM-based field update. The entire protection model is the two general lock bits.

That simplification is genuinely useful. There is no second container to reason about, no boot reset fuse to check, and no possibility that part of the program is privileged code in a separate region. The questions collapse to: is the array readable, and if not, what does the erase cost.

It also means a device cannot update itself. Any field update happens through the programming interface, which is why products built on this family tend to have a header on the board.

Lock state and what it changes

The four-state encoding applies as it does everywhere in the family: unlocked, mode 1 blocking programming, mode 2 and 3 blocking verification as well. In mode 1 the array is readable and the protection only prevents reflashing — a distinction worth making, because “protected” is often assumed to mean “unreadable” and does not.

For a device in mode 2, the only documented operation that opens it is the chip erase, which clears the array. There is no partial path, no page-level unlock, and no interface that behaves differently.

Reading the part properly

Power at the design rail, measured at the socket. Read signature and fuses before memory, because a part configured for a crystal that is not fitted will not run and therefore will not answer. Read the array in pages, twice each. Disassemble the vector table and confirm the reset vector lands where the code begins.

That sequence is unremarkable and it is also the one that produces a file nobody has to re-examine later. On a small, fully populated array the whole thing takes a few minutes, and the alternative — discovering three weeks later that the image was never verified — costs considerably more.

Related notes

FAQ

Is FF at the end of the image a fault? On a fully populated part it means the build did not use the space. That is normal and should be stated in the report.

Does this part support a bootloader? No. There is no boot section and no self-programming path.

Can a mode 1 part be read? Yes. Mode 1 blocks programming, not verification.

Why check the vector table instead of the whole file? Because it is the only region with a known structure that fails visibly when misaligned.

Conclusion

Completeness is a claim that has to be tested, not assumed from file size. On a fully used array the tests are the terminator, the boundary encoding, the vector table, and page-level double reads — four independent checks that together turn a plausible file into a verified one.

Comments are closed.