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?