Skip to main content
hhosburg
Associate II
April 25, 2011
Question

RTC writing counter register while running

  • April 25, 2011
  • 2 replies
  • 378 views
Posted on April 25, 2011 at 16:58

RTC writing counter register while running

    This topic has been closed for replies.

    2 replies

    hhosburg
    hhosburgAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 14:32

    Thanks for this,

    now setting RTC clock registers are working.

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:32

    You are probably missing

      /* Enable PWR and BKP clocks */

      RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE);

      /* Allow access to BKP Domain */

      PWR_BackupAccessCmd(ENABLE);

    or you haven't actually disabled to the RTC interrupt.

    The examples for the RTC are not particularly complete/comprehensive.
    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..