AnsweredAssumed Answered

RTC not ticking

Question asked by apple.john on Aug 10, 2012
Latest reply on Aug 10, 2012 by Clive One
Dear all,

I am having a problem making the RTC of my STM32 Discovery F4 work. I have taken the example code from STM32 Std Peripheral Library, RTC_Timer folder but it does not work. The MCU is able to detect the LSERDY flag and the program exits the while loop:

/* Wait till LSE is ready */

 

 

 

 

while(RCC_GetFlagStatus(RCC_FLAG_LSERDY) == RESET)

 

{

}


 

after a few miliseconds. However, it does not generate 8 interrupts per second as promised.

I suspect that it is because I have soldered the 32.768KHz oscillator directly onto the PC14 and PC15 header pins. Would that be the cause of the problem? If it is, where is the correct place to solder the oscillator? Thanks.

Outcomes