Our design is made with a STM32F207ZG microcontroller and we have some problems with the RTC peripheral. We have an external 32.768 kHz oscillator (LSE).
Using the ST library, the initialization of the RTC goes out with ERROR on test of ISR.RSF bit and ISR.INITF bit in RTC_WaitForSynchro() and RTC_Init(&RTC_InitStructure) functions.
We checked the signal 32 KHz on the MC01 (PA8) pin and it is OK.
If we try with LSI clock source, it is OK : no ERROR.
What happens ? Do you have an idea ?
This is our source code (with RTX kernel) :
int main (void)
__task void _HORLOGE_Initialiser (void)
while(RCC_GetFlagStatus(RCC_FLAG_LSERDY) == RESET);
// Calendar Configuration
RTC_InitStructure.RTC_AsynchPrediv = 0x7F;
RTC_InitStructure.RTC_SynchPrediv = 0xFF;
RTC_InitStructure.RTC_HourFormat = RTC_HourFormat_24;