Skip to main content
truongtanduong
Visitor II
March 7, 2016
Question

STM32F303REs RTC Error

  • March 7, 2016
  • 1 reply
  • 592 views
Posted on March 07, 2016 at 04:06

Hi all,

I have designed a device to track data of car. I have used the STM32F303RE and FreeRTOS to program its operation. 

When I use SD card task to read data from SD, it take a long time (about 30 minutes) to get data. After that, I found an error relate to RTC of MCU. I have displayed time and day of RTC on Terminal and got a result: 00:68:68 19/02/2000. And the interrupt of RTC also has not operated (I have used AlarmA interrupt of RTC to generate 1 second interrupt). But when I reset device, RTC operated well, time and day displayed correctly.

I have tried to understand this error but not successful.

Could anyone give me some advice to resolve this problem?

Thank you very much.

#!stm32-!cubemx-!rtc-!timeout #!stm32-!cubemx-!rtc
    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    March 7, 2016
    Posted on March 07, 2016 at 19:27

    Wouldn't the RTC naturally interrupt on a 1Hz basis, doesn't seem like you'd need an Alarm setting.

    Really can't make much sense of your problem from the description, perhaps you can provide a better foundation, with the code configuring the RTC, and the code getting 00:68:68 numbers. Make sure you understand the difference with BIN and BCD modes.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..