PART 3 / LESSON 23 · Overview free · interactive lesson in the full course

Flash wear and persistent settings

Reason about erase constraints, storage endurance, interrupted writes and validation of stored records.

View lesson accessAll lessons

What the lesson covers

The course lesson is called The flash that wore out. The controller saves its settings to the same flash sector every time they change. After a week of heavy use the sector wears out and the unit forgets everything. And a power cut during a save once left it with half a record.

Before you start

Question to think about: How should a storage model distinguish a complete record from an incomplete update?

Preparation exercise: List the assumptions of a simulated store and the separate tests needed on actual flash hardware.

This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.

Related free reading

Test your understanding

Practice free firmware interview questions and mock interviews · Assess your readiness