Operates. This led me astray:
1) To apply the divider is necessary to disable the battery.
2) RTC-> PRLL displayed incorrectly after a power failure.
Time is depending on the the constant STM32_LSEKLK even after a power failure.
Thank you very much for your help.
Search found 7 matches
- Mon Sep 22, 2014 6:12 pm
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
- Thu Sep 18, 2014 12:50 pm
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
Re: The RTC driver topic
1) If I turn off the power for 10 seconds after the power is turned on time correctly
2) No boot, only ChibiOS
3) ChibiOS / RT 2.6.4
I was sure. Now I doubt. I also recheck.
2) No boot, only ChibiOS
3) ChibiOS / RT 2.6.4
I was sure. Now I doubt. I also recheck.
- Thu Sep 18, 2014 12:16 pm
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
Re: The RTC driver topic
That does not explain if do:
Clock runs slower (twice) just before the power failure. This can be seen without equipment.
While it may be you are right. Today, I double-check.
Code: Select all
#define STM32_LSECLK 65536Clock runs slower (twice) just before the power failure. This can be seen without equipment.
While it may be you are right. Today, I double-check.
- Thu Sep 18, 2014 11:58 am
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
Re: The RTC driver topic
First, the problem revealed that the clock does not depend on STM32_LSECLK. Then I found out that depends, but after a power reset to 32768 and the clock runs slower.
1. Yes, I used to do that BKP->RTCCR, but the problem is the same as with RTC->PRLL.
2. The value of what I'm reading to a speed of ...
1. Yes, I used to do that BKP->RTCCR, but the problem is the same as with RTC->PRLL.
2. The value of what I'm reading to a speed of ...
- Thu Sep 18, 2014 11:33 am
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
Re: The RTC driver topic
What does it matter if, after a power failure the clock starts to go slower? The device operates year. Would like to adjust the accuracy. Compared with the clock on my computer, which is synchronized with the network. First, the problem revealed that the clock does not depend on STM32_LSECLK. Then I ...
- Thu Sep 18, 2014 11:24 am
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
Re: The RTC driver topic
Not so easy. If you do not turn off the main power the clock will go right (divider 32770). After a power off-on the clock runs slower (divider 32768). That is, the clock is correct to the first power outage.
- Thu Sep 18, 2014 8:27 am
- Forum: Development and Feedback
- Topic: The RTC driver topic
- Replies: 228
- Views: 143769
Re: The RTC driver topic
Many thanks for ChibiOS. Made it easy to start using STM32. I found the wrong job for RTCv1 stm32f1.
The initial conditions and settings:
1. stm32f100c8, external crystal resonator 32768 for RTC and has battery backup.
2. settings:
#define STM32_LSECLK 32770
#define STM32_HSECLK 8000000
#define ...
The initial conditions and settings:
1. stm32f100c8, external crystal resonator 32768 for RTC and has battery backup.
2. settings:
#define STM32_LSECLK 32770
#define STM32_HSECLK 8000000
#define ...