2010-10-16 07:41 AM
LSE and STOP mode
2011-05-17 05:11 AM
Ok, built something similar for the VL Discovery board. With a one second period it works fine with and without the PWR_EnterSTOPMode()
I suspect your use of the 64 Hz / 16 ms period is a problem, my guess would be the restart time (HSI+LDO) exceeds 15-16 ms so the period of the LED toggle pushes out. I haven't had the time to measure the exact time, or find a good cite in the manual, but give it a try. Also using the following code in a tight loop on the Discovery VL + ST-LINK board causes the JTAG connection to FAIL and makes it impossible to communicate with. I'll need to go unbrick one of my boards. PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);2011-05-17 05:11 AM
You should use RTC_WaitForSynchro() after wakeup from stop mode before acessing RTC registers. Maybe this helps?
2011-05-17 05:11 AM
I'll try to measure the wake-up time of HSI + LDO.
But I would be very surprised if it would take more than 16ms !2011-05-17 05:11 AM
Datasheet says :
- wake-up from stop mode + ldo_low_power : 5.4µs - HSI startup time : 1 to 2µs we're are really far from the 16ms ^^ clive, did you test your Discovery VL at 64Hz ? Did you manage to reproduce my issue ?