Search found 5 matches

by pepahajek
Sat May 18, 2013 1:32 pm
Forum: STM32 Support
Topic: STM32F103 wake-up from stop mode
Replies: 17
Views: 22024

Re: STM32F103 wake-up from stop mode

Look at the os\hal\platforms\STM32F1xx\ext_lld_isr.c there is an IRQ handle defined as

CH_IRQ_HANDLER(RTCAlarm_IRQHandler) {
..
..
but in my opinion RTCAlarm_IRQHandler is wrong name for "RTC_Alarm_IRQHandler" (difference in one character) which is defined in os\hal\platforms ...
by pepahajek
Sat May 18, 2013 1:10 pm
Forum: STM32 Support
Topic: STM32F103 wake-up from stop mode
Replies: 17
Views: 22024

Re: STM32F103 wake-up from stop mode

Here is a code http://pastebin.com/mjskWx1t where a RTC Alarm is connected to the 17th EXTI line and is able to leave STOP mode. Use "sleep" command in shell to get to STOP mode.
by pepahajek
Thu May 16, 2013 10:07 pm
Forum: STM32 Support
Topic: STM32F103 wake-up from stop mode
Replies: 17
Views: 22024

Re: STM32F103 wake-up from stop mode

I have had a mistake in code which put it into STOP mode. See example here http://tinyurl.com/d58szpu it uses EXTI line to waking up from stop mode.

My problem now is how to use RTC alarm as a EXTI line in order to wake up CPU.
by pepahajek
Thu May 16, 2013 11:24 am
Forum: STM32 Support
Topic: STM32F103 wake-up from stop mode
Replies: 17
Views: 22024

Re: STM32F103 wake-up from stop mode

Regarding Application Note AN2629 http://www.st.com/st-web-ui/static/acti ... 171691.pdf
in STOP mode it is possible to wake up without system reset.
by pepahajek
Thu May 16, 2013 8:50 am
Forum: STM32 Support
Topic: STM32F103 wake-up from stop mode
Replies: 17
Views: 22024

STM32F103 wake-up from stop mode

Hi,

I have a problem with the stop mode on STM32. What I need is to go to the Stop mode (or any suitable low power mode), after some time to wake-up CPU by RTC and continue code execution from the point where I went to Stop mode.

I use following code to go to the Stop mode


/* going to ...