RTC driver uses BKP registers!

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: RTC driver uses BKP registers!

Post by barthess »

You are correct. I will fix it in nearest future.
User avatar
barthess
Posts: 861
Joined: Wed Dec 08, 2010 7:55 pm
Been thanked: 7 times

Re: RTC driver uses BKP registers!

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: RTC driver uses BKP registers!

Post 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
Post Reply