AnsweredAssumed Answered

Detect BDM connection at runtime in MCF51AC256

Question asked by antoniomagrì on Feb 23, 2016
Latest reply on Mar 14, 2016 by antoniomagrì

I am trying to find a way to detect the presence of a debug connection at runtime. The idea is to use this with a custom implementation of assert() that would cause a break (via the HALT instruction) if the debugger is connected. The reason for this is that HALT will cause a reset if no debug connection is present and I want to avoid that. I found that in the S08 core I can test the DBGEN bit in DBGC (Debug Control) register, but there seems not to exist anything similar in the Coldfire V1.


Has anyone found a way to detect the presence of the debug interface at runtime?