cancel
Showing results for 
Search instead for 
Did you mean: 

RTC on STM32F746G-DISCO Ploblem

gtopba
Associate II
Posted on December 05, 2015 at 09:10

Hi

I'm trying to get the RTC work on STM32F746G-DISCO Board. The problem I'm facing is the calendar counter except SubSeconds stop counting after calling the function HAL_RTC_GetTime() since the first time. I've tried using STM32CubeMX to generate projects with all kind of clock sources and also the provided Demonstration project for STM32F7. The result was the same.

There is one line of code in the HAL_RTC_GetTime() function which is ''sTime->SubSeconds = (uint32_t)(hrtc->Instance->SSR);''. If I comment this line out, the RTC time Hour, Minuet, Second will count normally. Can anybody explain this to me how can it effect the counter? My c programming skill is not good enough to understand this.

I'm using Keil ARM-MDK.

Thank you

0 REPLIES 0