Hi Uwe.
Thank you for your feedback. This indeed sheds some light on the problem! :)
On Sun, 18 Jan 2015 12:37:15 +0100, Uwe Bonnes wrote:
> Jens> Hi all. On Sun, 18 Jan 2015 01:01:57 +0100, Jens Bauer wrote:
>>> int main() { while(1) { __WFI(); } }
>
>> Note: If I change __WFI(); to __NOP(); there are no problems.
>
>> -One thing I forgot to say is that I'll usually need to take out
>> the external crystal, before I attempt to repeat a 'reset halt'
>> until I get the target to halt.
I also forgot to mention that I need to connect the RESET line and supply the
following in my .cfg file for this target:
reset_config srst_only srst_nogate
(and just to be on the safe side, I switch adapter_khz to 500)
> I have the same problems. In principle these problems should be solved by
> setting the Low Power debug bits similar like
>
> proc stm32_default_examine_end {} {
> # Enable debug during low power modes (uses more power)
> mww 0xe0042004 0x00000007 ;# DBGMCU_CR = DBG_STANDBY | DBG_STOP |
> DBG_SLEEP
>
> # Stop watchdog counters during halt
> mww 0xe0042008 0x00001800 ;# DBGMCU_APB1_FZ = DBG_IWDG_STOP |
> DBG_WWDG_STOP
> }
>
> $_TARGETNAME configure -event examine-end { stm32_default_examine_end }
A-ha. When my problems begin, I get the 'target not examined yet' until I can
get it to halt.
> However when some problem with OpenOCD and a STM32 in __WFI mode happens,
> it was hard to get the setup functional again.
Yes, but I've found out that acting like a monkey helps. ;)
Thank you for the information! :)
Love
Jens
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel