cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f429, RTC and LSE Problem

celalhancer
Associate
Posted on September 16, 2017 at 01:21

Hello,

I have a problem with rtc.

When I use LSI with RTC everything ok.

But when I select LSE, program stuct at void _Error_Handler.

The problem is at this function.

while((hrtc->Instance->ISR & RTC_ISR_INITF) == (uint32_t)RESET)

 {

   if((HAL_GetTick() - tickstart ) > RTC_TIMEOUT_VALUE)

    {

      return HAL_TIMEOUT;

     }

 }

I changed RTC_TIMEOUT_VALUE 1000 to 9000 but still not OK.

How can I solve this problem ?

I use stm32f429i discovery board (I had already soldered 32.762khz xtall) and

my .ioc file at link, and  I use cubemx ver 4.21.0 and keil.

https://www.dropbox.com/s/jethyab2u0nuhih/akv_prjct.ioc?dl=0

 

Best regards

Celal HANCER

#lse-rtc #stm32f429i-discovery #rtc-hal
2 REPLIES 2
Posted on September 16, 2017 at 01:58

If the crystal doesn't oscillate software inspection isn't going to fix it.

So a 6pF crystal, the capacitors, resistors or solder bridges?

When you set LSE_ON does LSE_RDY go high? Can you see oscillations at the pin? Can you route it out of MCO and confirm frequency?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Zt Liu
Senior III
Posted on November 20, 2017 at 05:25

Uhm.......I just open your ioc project. 

It seems that you didn't even enable the LSE, dude!

0690X00000602VaQAI.bmp0690X00000602VtQAI.bmp

So you wan to  'cubeMX' or not?