2016-03-20 05:39 AM
hello
i am working on an stm32f205 project. before adding the RTC part , the stbby modeworks fine.when i added the RTC part (i tested it and it works fine), but my system dont want toget in stby mode. the RTC wakeup and alarms are all disabled.thanks2016-03-20 06:46 AM
I have a 205 project where it all seems to work, I wonder what you're doing wrong.
Think about how you can present your problem in a way it might be solved.2016-03-20 08:12 AM
hello clive1
thanks for the response.i have set a push button to enter standby mode, after pressing this button for 1.3s the MCU goes to standby mode. when i push again the button the MCU restarts in run mode.i added the RTC part. now when i press the push button the MCU executes the standby mode function , but it goes imeediately into Run Mode.thanks2016-03-20 10:35 AM
Perhaps you have neglected to clear some pending state or EXTI?
2016-03-21 03:08 AM
2016-03-21 04:49 AM
2016-03-21 04:59 AM
Hi taleb_bendiab.zakari,
You have to ensure that all wakeup sources' flags are cleared before entering the standby mode, otherwise it will enter and exit instantly by watching one wakeup source activated. Try always to apply the following sequence before in low power application: • Disable all used wakeup sources, • Clear all related wakeup flags, • Re-enable all used wakeup sources, • Enter Standby modeThe wakeup flags that you consider in your case are :
PWR_FLAG_WU, PWR_FLAG_SB, RTC_FLAG_WUTF.
If entering and exiting the standby mode several times , check my recommendation in this [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F437%20exiting%20standby%20incorrectly¤tviews=63]discussion. The application note http://www.stmicroelectronics.com.cn/st-web-ui/static/active/jp/resource/technical/document/application_note/DM001214pdfcontains an application similar to your case, you may get inspired for your hole application. -Hannibal-2016-03-21 07:21 AM
2016-03-23 04:23 AM
Hi taleb_bendiab.zakari,
Nice. Keep up the good work. -Hannibal-