Page 3 of 3

Re: RTC driver uses BKP registers!

Posted: Mon Dec 10, 2012 8:27 pm
by barthess
You are correct. I will fix it in nearest future.

Re: RTC driver uses BKP registers!

Posted: Wed Dec 12, 2012 3:09 pm
by barthess
Hi all.
I have tried to swap

Code: Select all

    RCC->BDCR |= RCC_BDCR_RTCEN;
    rtc_lld_set_prescaler();

lines. It works as expected on my hardware. But I am wandering is that order valid for all STM32F1x? Did you see any notes about that? I can not found any in RM0008.
Giovanni,
Is it worth to backport this change to stable branch?

Re: RTC driver uses BKP registers!

Posted: Wed Dec 12, 2012 3:43 pm
by Giovanni
Hi Barthess,

Yes, I would backport all changes.

All F1 devices are very similar, so if it works on one it should be valid also for the others.

Giovanni