Hello,

e.g. when the user program used WFI() or WFE() on STM32 and the CPU is idle
most of the time, openocd won't connect or looses connection soon. So cfg
files start to introduce an "examine-end event" that changes some register
(DBGMCU_CR) to allow debug when idle or in standby. DBGMCU_CR is
preserved until a power reset. When debugging a low-power application, this
may result in high power surge after the debugger has exited, or the user
has to remove power from the device.

Should openocd care to restore the original DBGMCU_CR content on exit? And if,
what event should do the restore and how/where to preserve the content?

Or is this situation better handled by the user program? But then OpenOCD
needs to announce this behaviour clearly.

Bye

-- 
Uwe Bonnes                b...@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to