When nRF52840 selects the low-frequency crystal oscillator LFXO and starts LFCLK, internal LFRC can supply the clock initially. Once the crystal starts, hardware switches to LFXO and generates LFCLKSTARTED for the selected crystal. A counter advancing proves there is a low-frequency source, not that the crystal has taken over. This matters for products that require an external timing reference immediately after startup.
1. Separate selection, temporary clocking, and takeover
Startup includes selecting LFXO, requesting startup, and receiving the crystal-ready event. LFRC can already clock a counter between those steps. An application that sets “crystal good” when a timer first increments can mistake temporary operation for completion. Log the selected source, first count, event, and state separately. Generic “clock enabled” messages do not resolve the sequence.
| Observation | Meaning |
|---|---|
| LFXO selected | Desired source, not started status |
| Counter advances | A low-frequency clock is available, possibly LFRC |
| Current LFCLKSTARTED received | With LFXO selected for this start, the crystal has started |
| Steady accuracy passes | Separate test, not established by the event |
Check whether a power transition, system restart, or different task reconfigured the clock. An old event is not evidence of readiness in the current sequence. When a system driver or wireless stack controls the clock, query its documented interface rather than modifying registers behind its back. Concurrent software activity can otherwise look like a component failure.
2. Know which work has to wait
Button scanning, display initialization, and buffer setup may not depend on crystal precision and can proceed separately. If the product requires crystal-based capture from the start, for example for comparable timestamps across two instruments, wait for confirmed takeover before starting precision timing. Log a timeout rather than silently passing because the internal source still increments the counter. Whether temporary RC operation is allowed depends on the feature.
Do not turn a typical value into an acceptance deadline
The product specification gives a typical LFXO startup time of 0.25 s. It does not guarantee a maximum for every fitted crystal, board, supply, and temperature. Supply ramp, lot variation, and effective loading can matter. Choose the application's timeout using relevant tests and failure handling, and wait on the event or driver indication rather than assuming a fixed delay proves readiness. Record the request, event, and timeout separately.
At a nominal 32.768 kHz, 250 ms corresponds to 8192 ticks. This is illustrative; if LFRC drove the interval, those are not crystal-derived ticks. Use an independent reference to compare when takeover occurs across boards instead of measuring the clock using itself.
3. Automatic takeover is not permission to rewrite the source while running
Nordic also says LFCLKSRC cannot be written while LFCLK runs. The built-in LFRC-to-LFXO transition during startup does not mean application code can freely change the selection in operation. If reconfiguration is required, follow the driver's stop/start rules and check whether clients can tolerate an interruption. Stopping the clock during logging or wireless operation may disrupt another feature. Do not reset clocks in service just to see whether a symptom goes away.
Start with observations that do not disturb the system
Read the current configuration, driver state, and event output, then capture a cold start. Use a designated sample for a controlled comparison between an internal-reference and external-reference firmware configuration. Record events and counter behavior under identical conditions rather than inferring the source from one screen update. Preserve existing data and label the test as a controlled experiment if it changes operating state.
4. Check the exact crystal if hardware investigation is needed
Epson lists 32.768 kHz, 9 pF FC-135 Q13FC13500003 in its nRF52xxx/53xxx application material. That is an ordering lead, not a direction to fit 9 pF on each side or a substitute for board checks of ESR, startup, and drive. Check exact part, pads, loop layout, external capacitors, and assembly options. The same frequency marking appears on different sizes and load options.
For samples with slower crystal-ready events, hold firmware, supply, temperature, and measurement method steady. Compare with a known-good board. A probe on a crystal node can add load and change startup, so begin with status and buffered observation where available. If probing the node is necessary, record probe type and load and do not attribute probing-induced changes to the original design.
5. Record hardware and firmware outcomes separately
Keep the chosen source, startup request, first count, LFCLKSTARTED, timeout behavior, and steady test results as distinct observations. Record exact crystal, board revision, supply, and temperature, and whether the test used a cold boot or reinitialization. Timestamping products should identify records made before takeover and use a confirmed crystal-backed start for precision comparisons. Continued counting without the selected crystal event can serve functions that do not depend on external accuracy but does not qualify the crystal.
During pilot production, a dedicated sample intentionally lacking the watch crystal can check that the procedure does not pass a running counter as a working crystal. Keep it separate from deliverable units. Repeat cold starts on positive samples to distinguish slow startup from a loss in operation. Save both pre- and post-recovery records rather than letting steady operation obscure an earlier fault.
For enclosed products, record temperatures under the actual test conditions. If two units behave differently, compare firmware, driver settings, and crystal lot before assigning the difference to a supplier.
Early counting is expected. Confirm takeover with the startup event, then verify accuracy independently.
