2017-09-15 04:21 PM
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-hal2017-09-15 04:58 PM
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?
2017-11-19 08:25 PM
Uhm.......I just open your ioc project.
It seems that you didn't even enable the LSE, dude!
So you wan to 'cubeMX' or not?