2.**`flash_read_safe`** prints the metadata for easy debugging.
2.**`flash_read_safe`** prints the metadata for easy debugging.
3.**`flash_erase_safe`** resets the sector and **clears** metadata to avoid corrupted reads.
3.**`flash_erase_safe`** resets the sector and **clears** metadata to avoid corrupted reads.
4. A **simple CLI** provides an accessible way to test each operation and confirm correctness.
4. A **simple CLI** provides an accessible way to test each operation and confirm correctness.
**Final outcome**:
- This **fulfills all Worksheet 1 Part 1** requirements.
- Use **structured data** in flash, track **write counts**, and demonstrate robust read/write/erase operations with **interrupt safety** and **bounds-checking**.