Hi,
I want to use the RTC with LFCLK_IN as the clock source for LFCLK, instead of the LFOSC as this internal oscillator has big tolerance.
So I removed the 32KHz Xtal on the board, and installed R11 with 50 Ohm resistor.
Here's the idea, the clock source for external LFCLK_IN is from one of the PWM pin. Basically it is the 32MHz HFOSC divides down to 32.768KHz and output at pin PB15, then jumps back to pin PA4.
It's kind of running now and RTC calendar works fine, but whenever the RESET button S3 is pressed, the program hangs up. The only thing can bring it back is to unplug the USB power and plug back in.
As I read somewhere, once the ext LFCLK is select the LFOSC can't be re-enabled unless we do a BOOTRST.
But what is BOOTRST? Unplug power does same thing? Can we do it in SW?
Is this setup possible or it will hang up in the field and require a power recycle like that ?
Thanks