<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>ColdFire/68K Microcontrollers and ProcessorsのトピックRe: Detect BDM connection at runtime in MCF51AC256</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479693#M12710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to have the debugger write a special value to a RAM location, and have the code check for that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Mar 2016 01:38:39 GMT</pubDate>
    <dc:creator>TomE</dc:creator>
    <dc:date>2016-03-03T01:38:39Z</dc:date>
    <item>
      <title>Detect BDM connection at runtime in MCF51AC256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479691#M12708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone found a way to detect the presence of the debug interface at runtime?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2016 12:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479691#M12708</guid>
      <dc:creator>antoniomagrì</dc:creator>
      <dc:date>2016-02-23T12:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Detect BDM connection at runtime in MCF51AC256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479692#M12709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Unfortunately for ColdFire V1 it is not possible for the processor to &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;detect&lt;/SPAN&gt; when the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;BDM&lt;/SPAN&gt; is attached. The pins related with the &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;BDM&lt;/SPAN&gt; are out of the memory map so the processor cannot read those pins. And there has no register bit for this purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Feb 2016 07:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479692#M12709</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2016-02-26T07:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Detect BDM connection at runtime in MCF51AC256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479693#M12710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be able to have the debugger write a special value to a RAM location, and have the code check for that value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 01:38:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479693#M12710</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-03-03T01:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Detect BDM connection at runtime in MCF51AC256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479694#M12711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have the assert call a function that has the ONE COPY of the HALT instruction in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp; from the debugger, set a breakpoint on that function (and therefore on the HALT instruction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when the code fails the asserts and goes to call the HALT function it ends up in the debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:14:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479694#M12711</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-03-07T07:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Detect BDM connection at runtime in MCF51AC256</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479695#M12712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response,&lt;/P&gt;&lt;P&gt;as for the idea of using a special ram location to check for "debugger connected" condition, I will try that, if it can be done automatically that would be a plus...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of the HALT instruction was to actually not need a breakpoint added, so in that case I could just not use HALT and set the debugger to break on the failed assertion function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 13:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-BDM-connection-at-runtime-in-MCF51AC256/m-p/479695#M12712</guid>
      <dc:creator>antoniomagrì</dc:creator>
      <dc:date>2016-03-14T13:44:44Z</dc:date>
    </item>
  </channel>
</rss>

