On Wed, Oct 30, 2013 at 8:45 PM, Dan Dev <[email protected]> wrote:
> Paul,
>
> Yes, using FreeRTOS, entering "sleep" mode and calling WFI from the idle
> task (lowest priority). Not sure how familiar you are with the STM32, but
> I'm calling the standard peripheral library PWR_EnterSleepMode(
> PWR_Regulator_ON, PWR_SLEEPEntry_WFI ) right now, which sets the voltage
> regulator to low power mode and calls WFI. Does OpenOCD require special
> handling with sleep states?
>
>
Yes, probably. I'm not too familiar with the L family yet, but STM32F1 has
three bits in DBGMCU_CR that keeps the clocks running during standby, stop
and sleep, making the debug logic accessible. I'm guessing the same feature
is available for STM32L as well. Of course you'll not get the same level of
power saving, but during debugging, that shouldn't be a problem.
It's probably a good idea to enable this feature in the reset init handler.
I don't use power saving much so I haven't really tried it out, but I
usually do something like this for STM32F1:
stm32.cpu configure -event reset-init {
# Stop watchdog counters and all timers except TIM1 during halt,
enable clocks during sleep
mww 0xe0042004 0x1feb07
}
/Andreas
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel