Hello,
We have an nrf51822 system where disconnecting the battery is problematic, and the sharing of the reset line between SWD and reset function has been a real source of problems for us. It's time for me to understand the subtleties a little better.
I found a post where it explains how to get the reset line out of debug mode and into standard reset functionality, which we need to do operate in normal mode in our system. I have been doing this programmatically in my code by modifying the reset register in the power peripheral, but it would be preferable to do this with a programming tool instead. Is this possible?
One thing that I don't know how to do is get back from standard reset functionality to debug mode. The Eclipse IDE and Segger setup seems to do this for me sometimes, but some times the chip gets wedged and we have to take things apart and disconnect the battery to restore function. It would great to understand what might be happening here and how to avoid this situation.
Finally, I have implemented a comprehensive logging facility using RTT over the SWD, which I've used to great effect in debug mode, where the GDB server provides an adapter for JLinkRTTClient to use. It would be great to hook up to the chip already running in "normal" (non-debug) mode and monitor via RTT, but so far when I try to do this it seems to stop the program and the whole system gets jammed up. Is it possible to tap into SWD RTT without "disturbing" a running program? And if so, what tool would I use to do this?
Thanks immensely for any help, especially since I've asked several questions here.
- Andy