Im still trying to get this to work, so I flashed the unit test application onto a few of our boards and scoped the signals. I tried running the rtc_clk unit tests and would get one of two possible outcomes from calibration:
Code: Select all
calibrate (0): 34.728 kHz
calibrate (1): 34.730 kHz
calibrate (2): 34.733 kHz
calibrate (3): 34.733 kHz
calibrate (4): 34.731 kHz
RTC_CAL_8MD256:
calibrate (0): 34.731 kHz
calibrate (1): 34.729 kHz
calibrate (2): 34.726 kHz
calibrate (3): 34.728 kHz
calibrate (4): 34.727 kHz
RTC_CAL_32K_XTAL:
calibrate (0): inf kHz
calibrate (1): inf kHz
calibrate (2): inf kHz
calibrate (3): inf kHz
calibrate (4): inf kHz
32K XTAL OSC has not started upswitching to RTC_SLOW_FREQ_8MD256: done
RTC_CAL_RTC_MUX:
calibrate (0): 34.725 kHz
calibrate (1): 34.726 kHz
calibrate (2): 34.729 kHz
calibrate (3): 34.729 kHz
calibrate (4): 34.725 kHz
RTC_CAL_8MD256:
calibrate (0): 34.728 kHz
calibrate (1): 34.727 kHz
calibrate (2): 34.729 kHz
calibrate (3): 34.731 kHz
calibrate (4): 34.732 kHz
RTC_CAL_32K_XTAL:
calibrate (0): inf kHz
calibrate (1): inf kHz
calibrate (2): inf kHz
calibrate (3): inf kHz
calibrate (4): inf kHz
Or:
Code: Select all
RTC_CAL_RTC_MUX:
calibrate (0): 34.728 kHz
calibrate (1): 34.727 kHz
calibrate (2): 34.726 kHz
calibrate (3): 34.727 kHz
calibrate (4): 34.726 kHz
RTC_CAL_8MD256:
calibrate (0): 34.728 kHz
calibrate (1): 34.730 kHz
calibrate (2): 34.730 kHz
calibrate (3): 34.728 kHz
calibrate (4): 34.731 kHz
RTC_CAL_32K_XTAL:
calibrate (0): 32.768 kHz
calibrate (1): 32.768 kHz
calibrate (2): 32.767 kHz
calibrate (3): 32.768 kHz
calibrate (4): 32.768 kHz
switching to RTC_SLOW_FREQ_32K_XTAL: done
RTC_CAL_RTC_MUX:
calibrate (0): 32.768 kHz
calibrate (1): 32.767 kHz
calibrate (2): 32.768 kHz
calibrate (3): 32.767 kHz
calibrate (4): 32.768 kHz
RTC_CAL_8MD256:
calibrate (0): 34.730 kHz
calibrate (1): 34.731 kHz
calibrate (2): 34.731 kHz
calibrate (3): 34.729 kHz
calibrate (4): 34.731 kHz
RTC_CAL_32K_XTAL:
calibrate (0): 32.767 kHz
calibrate (1): 32.768 kHz
calibrate (2): 32.768 kHz
calibrate (3): 32.768 kHz
calibrate (4): 32.768 kHz
switching to RTC_SLOW_FREQ_8MD256: done
RTC_CAL_RTC_MUX:
calibrate (0): 34.733 kHz
calibrate (1): 34.733 kHz
calibrate (2): 34.734 kHz
calibrate (3): 34.737 kHz
calibrate (4): 34.737 kHz
RTC_CAL_8MD256:
calibrate (0): 34.735 kHz
calibrate (1): 34.734 kHz
calibrate (2): 34.735 kHz
calibrate (3): 34.736 kHz
calibrate (4): 34.735 kHz
RTC_CAL_32K_XTAL:
calibrate (0): 32.767 kHz
calibrate (1): 32.768 kHz
calibrate (2): 32.767 kHz
calibrate (3): 32.768 kHz
calibrate (4): 32.768 kHz
In both cases, if I try to run the "Output 32k XTAL clock to GPIO25", I get a flat line while probing the XTAL_32KP line gets me the 32KHz clock as expected. Im maybe getting some noise one the 32K clock but I have to confirm with out hardware engineer if my setup is just a bit noisy. Other than that, even if it succeeds to calibrate, why am I getting a flat line on GPIO25?