Skip to main content
eva2
Associate
February 24, 2011
Question

RTC IRQ not working

  • February 24, 2011
  • 2 replies
  • 639 views
Posted on February 24, 2011 at 16:28

RTC IRQ not working

    This topic has been closed for replies.

    2 replies

    eva2
    eva2Author
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 14:25

    Thanks,

    yes the standby was a result of the complete project,

    I do not need to wake up every second in standy but I used that interrupt

    to check if the RTC was running, kept the main in an endless loop now,

    and I get the IRQ. I ll implement serial communication in the full project

    to read the RTC counter after wakeup from wakeup pin.

    Thanks

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

    Any idea what is missing?

    Well two obvious problems here are that you aren't handling the exit from STANDBY at all, and that the RTC Second interrupt will not bring you out of STANDBY. There are probably others, but these seem pretty fundamental.

    I'd suggest you look at the RM0008 STM32 Reference Manual, and then look at the ST library code examples (V2.x within Keil or IAR). Specifically \Examples\ST\STM32F10xFWLib\Examples\PWR\STANDBY

    A side effect of you stripping down the code is that it probably initializes and enters STANDBY in well under a second, so you wouldn't see an 1 Hz interrupt.

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