RTC Not Running
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-21 9:34 PM
Hi, I had configured the clock to LSI RC 37KHz using cubemx with AsynchPrediv is 124 and synchPredivdivider is 295 after the RTC initialisation i'm trying to read the time using HAL_RTC_GetTime() but i'm getting the values what i initialised but doesn't increment. can anyone suggest how to solve above issue.
Thanks & Regards,
Vijay Rakesh
- Labels:
-
RTC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-22 4:45 AM
Read out RCC registers and check if LSION=1 in RCC_CSR and if LSI is selected in RCC_BDCR.RTCSEL.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-22 9:38 PM
I had read out the registers LSION=1, RTCEN=1, RTCSEL=0x02 and LSIRDY=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-22 11:40 PM
Hummmm...
And RTC_ISR.INIT?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-23 12:54 AM
RTC_ISR.INIT was cleared i.e., RTC_ISR.INIT=0
Vijay Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-24 3:47 AM
Hi JW,
I'm awaiting for your valuable reply.
Vijay Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-24 4:40 AM
I have no more ideas.
You may perhaps look at some of the examples in Cube, run it on a "known good" board (such as Nucleo or Disco), and compare your code with the example and the registers in both cases.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-24 10:53 PM
OK, I will try another examples and actually i was running the code on Disco board.
Vijay Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-01-29 9:18 PM
Hi,
Now RTC is running on LSI Clock and i'm transmitting data via UART2 but the RTC is not displaying updated values but while on reset it is showing updated values as shown in below image.
Thanks & Regards,
Vijay Rakesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-06-19 1:11 AM
I have completely same problem with F745 both with internal and external crystal. In addition only SubSecond increase correctly.
Edit: Solve it. just read time AFTER "reading date". you can't read only time, interesting. Maybe someone explain this why.
