After restart, the calendar shows the correct time but the last displayed record is missing. Separate record generation, display, and confirmed completion in nonvolatile storage. A 32.768 kHz crystal can keep the calendar running without preserving the last record.
Use synthetic development data and offline failure scenarios. Keep user records, production power, and batteries outside the test. The clock and nonvolatile store can have different power domains and stop at different times. Check the actual schematic.
Display and persistent storage are separate events
A new reading can appear on screen as soon as it enters a memory queue. Batching, scheduling, internal writes, and completion acknowledgments can follow. Identify which filesystem or device layer confirms persistence. A successful function return may mean only that the next layer accepted the data.
A backup supply can keep the real-time clock running from one minute into the next while storage and its processor have stopped. Conversely, storage can preserve a numbered record while the calendar becomes invalid. Observe both separately.
Distinguish an interrupted write, which can leave partial data or an incomplete marker, from a queued write that never started. Recovery should recognize usable records using the design's validated rules. Check the actual guarantees and their conditions for the device and product.
Worked example: the display can lead confirmation by 37 ms
Suppose a record enters the queue at 100 ms, appears at 108 ms, and meets the specified completion criterion at 145 ms. The display leads confirmed persistence by 145 − 108 = 37 ms. A simulated power loss at 120 ms comes 12 ms after display and 25 ms before confirmation. The record can be absent after restart under this model.
In another model, generation is at 100 ms, storage confirmation at 106 ms, and display at 108 ms. A loss at 107 ms can leave a recoverable record that nobody saw. These timings illustrate possible event order, independent of any actual write speed or power-loss protection duration.
Define “last record” in acceptance. Retaining every externally acknowledged record and retaining the last acquired reading are different requirements. Determine the agreed acknowledgment boundary before judging a missing record.
Reproduce the timeline offline
Establish a baseline with synthetic IDs and no restart. Compare acquisition, display, storage confirmation and readback. Then test approved simulated faults or dedicated data before confirmation, after confirmation, and with write status unknown. After restart compare calendar validity and recovery by the same record ID. Use disposable test samples.
| Boundary | Keep | Use |
|---|---|---|
| Acquisition | Synthetic ID, timestamp, and valid state | Confirm that the record was generated |
| Display | When it appeared and whether persistence was acknowledged | Separate display from write completion |
| Storage | Controlled states, confirmation point, and valid readback | Locate the interrupted step |
| After restart | Calendar validity, last recoverable ID, and warnings | Separate clock retention from record loss |
If internal storage logs are unavailable, ask where the product acknowledges completion externally and verify expected behavior on both sides in the offline model. A development tool's completion message does not verify all caches. If hardware validation requires a controlled device and only user equipment is available, record the remaining hardware condition and stop destructive testing.
Use a distinct ID for every synthetic event. Equal timestamps can refer to two events, and repeated reporting can produce two rows from one event. Verify omissions, duplicates, and order independently of calendar adjustments.
Specify the real-time clock and storage recovery separately
Epson's FC-135 is a 32.768 kHz passive quartz crystal. Its manufacturer lists a 7 pF load option with order-code base Q13FC13500002. Verify packaging suffix, full specifications, equivalent series resistance, drive, temperature, and land pattern. This is a board-level candidate. Validate storage and power-loss recovery independently.
For storage, specify write completion, supply and environmental conditions, and actual recovery behavior. Before and after a substitution, verify calendar retention and target-record recovery separately. Investigate the reference clock if time changes, the calendar becomes invalid, or timing evidence is abnormal. If records go missing only before persistence, start with storage and firmware.
Differentiate individual writes and batch commits. A batch acknowledgment may occur after its first record was displayed. Use offline events immediately before and after batch completion and after the next batch starts. Verify readability, sequence IDs, and original content for both batches.
If the fault occurs during shutdown or a late flush, log the shutdown request, when new records cease, and the last storage acknowledgment. The design determines whether writes continue after a shutdown request. If the safe power-off boundary is unclear, document the unresolved acceptance item.
Frequently asked questions
The screen says “saved.” Does that count as a pass? Check whether it means accepted, queued, or durably stored, then verify recovery under the corresponding conditions.
A record is always missing at the end. Could the crystal be slightly slow? Compare generation ID, storage acknowledgment, and readback to find which stage was incomplete before attributing a timing error.
