Page 2 of 2

Re: 32k_N XTAL - TXCO

Posted: Thu May 11, 2023 9:12 am
by Sprite
Can you set CONFIG_SLOW_CLK_CAL_CYCLES to 0? This should disable calibration and would make the ESP32 use the external clock input without trying to see if it works first. Then please make sure that the clock indeed keeps running at 1sec/1sec when in deep sleep to verify it actually works.

Re: 32k_N XTAL - TXCO

Posted: Thu May 11, 2023 9:20 am
by Lancsrick
Will do thanks. Is the best way to verify 1 sec/1sec to do a millis() output after 15min or so?

Re: 32k_N XTAL - TXCO

Posted: Fri May 12, 2023 6:53 am
by Sprite
No, because when the ESP32 runs as normal, the clock is derived from the 40MHz crystal. Best to print gettimeofday() output, then deep sleep for e.g. 15 minutes, then wake up and print it again. The deep sleep shuts down the 40MHz crystal making the ESP use the RTC clock for timekeeping.

Re: 32k_N XTAL - TXCO

Posted: Fri May 12, 2023 6:56 am
by Lancsrick
Thanks.

Re: 32k_N XTAL - TXCO

Posted: Tue May 16, 2023 9:23 am
by Lancsrick
Thank you for all the help finally got to the bottom of this. My pull up value was too high - once I changed to just 10k then things seem to be ok. That's a pull up to a 680k/220k voltage divider off 3.3v.

I don't get any calibration message on startup, but the serial monitor error message on not finding the external oscillator vanishes so I think I'm golden now.

Thanks again.

Re: 32k_N XTAL - TXCO

Posted: Wed May 17, 2023 7:50 am
by Sprite
Interesting - guess there's something with the rise time that trips up the ESP or something. Thanks for posting the solution!