[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] Restoring register content on exit.
From:       Uwe Bonnes <bon () elektron ! ikp ! physik ! tu-darmstadt ! de>
Date:       2015-03-18 14:35:15
Message-ID: 21769.36131.234994.257470 () gargle ! gargle ! HOWL
[Download RAW message or body]

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                bon@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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic