A battery-powered Wi-Fi logger wakes every minute to upload data. It gets a more accurate 40 MHz passive crystal and meets the original RF reference requirement, but its logged wake times do not become more regular. The CC3235S uses separate fast and slow clocks. First decide whether the endpoint being measured is the RTC wake event or the first log produced by the restored application.
Use the RTC clock to calculate the sleep interval
TI assigns the 40 MHz fast reference to the internal processor and WLAN subsystem and the 32.768 kHz slow clock to the RTC. A 40 MHz passive crystal connects across the WLAN oscillator pins. A separate 32.768 kHz crystal or a compatible external slow clock can supply the RTC. Improving the fast crystal does not change the slow reference that counts the attempted sleep interval.
The stated slow-clock accuracy includes initial tolerance, temperature, and aging, with a ±150 ppm bound. One nominal minute is 32,768 times 60, or 1,966,080 slow-clock periods. At +150 ppm that count finishes in about 59.991 seconds, while at −150 ppm it takes about 60.009 seconds. This approximately nine-millisecond difference accounts only for clock frequency. Other delays can move the application log by more than that.
Check whether the board uses a slow crystal or an external slow-clock source. For the latter, follow TI's input circuit at RTC_XTAL_P and RTC_XTAL_N and match the VIO levels. If another board drives that input, shutting it down can remove the RTC clock. Verify continuity through sleep without loading a passive oscillator circuit enough to alter its behavior.
Allow for work after the wake request
The hibernate timing diagram distinguishes sleep end, hardware wake, firmware initialization, and application load. For the CC3235S, TI gives 1.7 milliseconds per kilobyte for application loading. A hypothetical 16-kilobyte image takes 27.2 milliseconds in that part of the sequence. Timing differs on the other family variant. A log emitted by application code can arrive later than the timer request by more than the nine-millisecond clock example, even with a correct slow clock.
TI also describes longer initialization in particular cases, including patch loading and occasional calibration. Do not use one ordinary run as the limit. Cold power-up has separate oscillator and reset timing. Hibernate retains the RTC, whereas shutdown switches it off and uses nRESET to enter and exit. An incorrect power mode calls for a different correction than changing crystal accuracy.
Record separate sleep and recovery timing
Correlate the application request to enter hibernate, any externally observable recovery activity, and the first application output. If the RTC request cannot be probed directly, label that limit and retain the accessible count and measurement reference. Keep image size, network conditions, and wake source constant. Distinguish wake timing from reconnection or first-packet delay.
When comparing new 40 MHz passive crystals, keep the sleep configuration and slow-clock circuit unchanged and verify WLAN timing separately. For an outlying interval, record the power mode, measured slow-clock behavior, application revision, and which event the log actually marks. That makes the next hardware or firmware change testable.
A longer interval provides another comparison. At ±150 ppm, ten nominal minutes produce about 90 milliseconds of error from the slow-clock frequency alone. A similar initialization path does not simply take ten times longer. Run both intervals with the same image and wake source. A roughly proportional change points back to the slow-clock scale. A nearly fixed additional delay calls for an initialization and loading check. Record the path for outliers, since calibration or networking can introduce additional variation.
Document when firmware schedules the next interval. If it waits for the application to reconnect and finish sending before beginning another one-minute countdown, the transmission interval also includes that work. Scheduling to an absolute target on an independent timebase yields different behavior. Verify the actual policy with a repeatable network setup.
If another board now supplies the slow clock, capture it while the product is truly in its low-power state. Preserve the source's power domain and continuity evidence. Keep fast-crystal qualification, sleep timing, and application recovery results distinct.
When comparing a day of records, mark cycles triggered by power loss, pin reset, or external wake. Keep them out of an estimate based on scheduled RTC expirations.
