HI,

Jonathan
Gerd v. Egidy wrote:
> Hi,
> 
>> We try to use openocd with an stm32l1x target (discovery) with sleep
>> mode. 
> 
> I have no experience with these, I tried it with a stm32f4discovery.
> 
>> We try using DBGMCU_STANDBY | DBGMCU_STOP | DGBMCU_SLEEP in the
>> config register without success.
> 
> After setting these it worked for me.
> 
> Are you sure the registers are really set when you are trying to
> debug? Maybe some other initialization code in your program (e.g.
> from a library) resets them after you wrote them first. Something
> like this hit me several times.   
> 

We have looked at it and all 3 bits look OK. 

On the stm32l1x We have other sleep mode. LOW POWER SLEEP MODE. I don't know
if this can be the cause of this.

The MSI clock are on range0 (65K with a prescaler of 2).

> Try to connect to your device once with openocd and then verify the
> register values from the openocd shell. 
> 

In sleep mode I cannot connect oocd. So this is hard to check.


Thanx.

Jonathan



------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to