Sign Up

Unlock the Gateway: Join the Embed Threads

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Unlock the Possibilities: Dive In with Login Access

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Embed Threads

Embed Threads

Embed Threads Navigation

  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Forum
  • Communities
  • Questions
    • New Questions
    • Must Read Questions
    • Trending Questions
    • Hot Questions
  • Polls
  • Groups
  • Add group
  • Badges
  • Users
  • Help
  • Blogs
  • Forum
  • About Us
  • Contact Us
  • Books
BHASKAR
  • 2
BHASKARBeginner
Asked: August 8, 20232023-08-08T04:18:56+00:00 2023-08-08T04:18:56+00:00In: Embedded Software Development

RTC IN STM32 DATE PROBLEM

  • 2

Hello everyone, I am using stm32 for RTC where I have encountered with a problem i.e whenever I do the reset or power off the board the clock is working fine which means it is showing the exact time even after that delay but the date is changing to another date. I have used the backup registers and still getting this problem. Help me to find a way. Thank you

question
  • 6 6 Answers
  • 477 Views
  • 0 Followers
  • 0
Share
  • Facebook
    Leave an answer

    Leave an answer
    Cancel reply

    Browse
    Captcha Click on image to update the captcha.

    6 Answers

    • Voted
    • Oldest
    • Recent
    1. alokm014 Enlightened
      2023-08-11T13:22:22+00:00Added an answer on August 11, 2023 at 1:22 pm

      You mentioned that you’ve used backup registers. Ensure that you are correctly reading from and writing to these registers. They are often used to store additional information, but if not used correctly, they can lead to unexpected behavior.

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Ritesh236 Explainer
      2023-08-09T17:44:29+00:00Added an answer on August 9, 2023 at 5:44 pm

      Hello,

      Can you please let me know that is there any fixed pattern like date is changed or any random date is set?

      Because there might issue into RTC or Timer library which are managing both date and time in which you are saying that time is properly managed while date is not there.

      Also there may be issue into storage and calculation of timing like in which format time and date are stored.

      Regards,
      Ritesh Prajapati

      • 0
      • Reply
      • Share
        Share
        • Share onFacebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
      • BHASKAR Beginner
        2023-08-10T03:53:17+00:00Replied to answer on August 10, 2023 at 3:53 am

        whenever I do the reset or power off the date is set to a particular date of 1/1/2000.Was it default? And I am using STM32F103xx ……..someone said it has a bug regarding this date criteria is this true?

        • 0
        • Reply
        • Share
          Share
          • Share onFacebook
          • Share on Twitter
          • Share on LinkedIn
          • Share on WhatsApp
        • Ritesh236 Explainer
          2023-08-10T15:58:36+00:00Replied to answer on August 10, 2023 at 3:58 pm

          Hello,

          Yes, 1/1/2000 is default date is set if we consider fresh or production board in which date or tiime is not set any time.

          So, Here, It seems like your device is not getting any configured time so that it is taking default time.

          Regards,
          Ritesh Prajapati

          • 0
          • Reply
          • Share
            Share
            • Share onFacebook
            • Share on Twitter
            • Share on LinkedIn
            • Share on WhatsApp
          • BHASKAR Beginner
            2023-08-11T04:28:10+00:00Replied to answer on August 11, 2023 at 4:28 am

            What is the solution for it?

            • 0
            • Reply
            • Share
              Share
              • Share onFacebook
              • Share on Twitter
              • Share on LinkedIn
              • Share on WhatsApp
            • Ritesh236 Explainer
              2023-08-11T17:22:27+00:00Replied to answer on August 11, 2023 at 5:22 pm

              Hello,

              you can use external RTC with coin cell in which you date and time will be stored permanently into your device with back up as well in case of device turned off.

              Also you can check date variable into your code which should be proper data type. If that is proper data type and if you are setting properly then there won’t be any issue.

              There may be chance into your system like if it is not getting proper date then it is going to set as default. so, please check that type of condition into it and try to debug from where are you getting default date.

              Regards,,
              Ritesh Prajapati

              • 0
              • Share
                Share
                • Share onFacebook
                • Share on Twitter
                • Share on LinkedIn
                • Share on WhatsApp

    Sidebar

    Ask A Question

    Stats

    • Questions 85
    • Answers 306
    • Best Answers 15
    • Users 798

    Free PDF Downloads

    A Roadmap to a Successful Career

    HTTP, WS and TLS: The Complete Guide

    Embedded Interview Questions

    • Popular
    • Answers
    • alokm014

      Embedded System Testing: Strategies and Approaches

      • 95 Answers
    • Paresh

      USB Serial Port giving junk data

      • 20 Answers
    • Shubha V

      Why can't we save the footprints in kicad and How ...

      • 14 Answers
    • D Sai krishna

      Error in final launch sequence

      • 7 Answers
    • Jagadesh

      SD card data logging

      • 7 Answers
    • 8xbet
      8xbet added an answer Excellent site you have got here.. It's hard to find… May 8, 2025 at 1:32 pm
    • ProxyDeals.com
      ProxyDeals.com added an answer Hi there, You have done a great job. I will… May 7, 2025 at 10:43 am
    • How to eliminate fan vibration?
      How to eliminate fan vibration? added an answer Very quickly this web site will be famous amid all… May 7, 2025 at 6:11 am
    • игры с модами на андроид
      игры с модами на андроид added an answer игры с модами на андроид — это замечательный способ получить… May 6, 2025 at 5:00 pm
    • plinko game
      plinko game added an answer The live dealer blackjack table is awesome! Also visit my… May 6, 2025 at 1:54 pm

    Explore

    • Forum
    • Communities
    • Questions
      • New Questions
      • Must Read Questions
      • Trending Questions
      • Hot Questions
    • Polls
    • Groups
    • Add group
    • Badges
    • Users
    • Help

    Footer

    Embed Threads

    Embed Threads

    Join us on a transformative journey where knowledge is amplified and solutions are empowered.

    About Us

    • Blogs
    • Forum
    • About Us
    • Contact Us
    • Books

    Legal Stuffs

    • Privacy Policy
    • Adsense Disclaimer

    Help

    • Help
    • Contact Us

    Follow

    © 2024 Embed Threads. All Rights Reserved
    With Love by Embed Threads.