AnsweredAssumed Answered

How can I detect if a debugger is attached to a Kinetis via SWD_CLK and SWD_DIO?

Question asked by Mark Minich on May 29, 2015
Latest reply on Jun 3, 2015 by ZhangJennie

I want to determine at runtime if a debugger is attached, and disable/enable printf()'s based on that. (Yes, I understand that this alters the timing of things and thus an application's behavior.) How can I tell if a debugger is attached to the Kinetis's SWD_CLK or SWD_DIO pins? Though I'd expect it to not matter as far as the solution goes, I'm using P&E Multilink. My part is a MKL26Z128VFM4 (KL26 sub-family).