2012-02-17 08:37 AM
We use a strategy to wake up the STM32F103 from standby mode by means of the wakeup pin and/or from the RTC alarm. In our implementation it appears that the wakeup from the RTC alarm does occur when the wakeup pin is in a high state during standby. When the wakeup pin is in a low state this functions perfectly. Is it possible to have a wakeup from standby with the wakeup pin enabled and in a high state during standby? What are the necessary conditions to achieve this?
#stm32l151-standby-wakeup #rtc-standby-wakeup #wakeyp #rtc-alarm #standby2013-04-05 01:13 AM
2013-04-16 03:04 AM
A bit of progress,
ST have now confirmed that they are able to replicate this fault using the project I sent on the eval board. Here's hoping for either confirmation of silicon problem that may get fixed in a new die spin, or even better no silicon problem but a description on how to configure this feature without getting the problem.2013-04-16 03:32 AM
Thanks for reporting the progress.
Care to publish the example you gave to ST? JW2013-04-21 09:18 AM
Dear all,
Here is the official ST statement on this issue : To avoid having the application blocked in Standby mode in this use case, please apply this specific wakeup clearing sequence: 1) Disable wakeup sources first, before clearing the wake-up flag. 2) Then re-enabling the wakeup sources before going into standby. If the wake-up line is still present ( maintained to 1), the above sequence will regenerate a rising edge and the device will not not be blocked in standby mode for ever. We will update you on our action plan for corrective actions and documentation follow-up later on. Cheers, STOne-32.2014-04-06 04:39 AM
Hello,
Thanks for this solution. The encountered the same problem using the stm32f4 discovery board, and using the PWR_STANDBY example. When I pushed the button, it entered standby mode (indicating by the LED ceasing to toggle), and woke up after the 5s alarm due to the RTC. Pushing the button again before that 5ms failed to wake it up however. As suggested, I moved the line PWR_WakeUpPinCmd(ENABLE); from the main function, to the line after the line clearing the wake up flag, PWR->CR |= PWR_CR_CWUF;After this it workedJonathan2014-04-10 08:40 AM
Hi Jonathan,
For F4 devices, the workaround is already described in thehttp://www.st.com/st-web-ui/static/active/en/resource/technical/document/errata_sheet/DM00037591.pdf
(2.1.5 subsection). -Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2014-05-13 07:36 PM
Interesting thread. Does this apply to the STM32F072 as well?