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
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..