<?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 if a debugger is connected in firmware.</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612716#M13014</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really appreciated the method Tom provided, it is much useful!! For ColdFire V1 itself it is not possible for the processor to &lt;SPAN class=""&gt;detect&lt;/SPAN&gt; when the &lt;SPAN class=""&gt;BDM&lt;/SPAN&gt; is attached. The pins related with the &lt;SPAN class=""&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. So customer should consider other way to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 08:45:40 GMT</pubDate>
    <dc:creator>miduo</dc:creator>
    <dc:date>2016-10-28T08:45:40Z</dc:date>
    <item>
      <title>Detect if a debugger is connected in firmware.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612712#M13010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our code, we use the HALT assembly instruction of the ColdFire in our ASSERT statements to stop our debugger to alert the developer of a serious error. Although ASSERT code should be removed when not debugging, sometimes it can be missed, causing our devices to inadvertently halt when an assert occurs. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's possible, it would be great if the firmware could detect whether a debugger is connected, and if it is not, then to branch around the HALT instruction and take alternate action.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone aware of whether this is possible? Do any of the BDM registers contain such information?&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&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 13:56:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612712#M13010</guid>
      <dc:creator>markthedark</dc:creator>
      <dc:date>2016-10-06T13:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Detect if a debugger is connected in firmware.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612713#M13011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search this forum for the last time this same question was asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/624440?commentID=624440#comment-624440"&gt;https://community.nxp.com/message/624440?commentID=624440#comment-624440&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would help if you said WHICH chip you're using. They're not all the same (MCF51 vs MCF54 etc).&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, 06 Oct 2016 22:23:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612713#M13011</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-10-06T22:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Detect if a debugger is connected in firmware.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612714#M13012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. The MCU is the MCF51MM256. Your clever suggestion in the other post to use a special RAM location is a good idea. I'll give that a try.&lt;/P&gt;&lt;P&gt;It's a shame there isn't a register that the firmware could read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 03:06:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612714#M13012</guid>
      <dc:creator>markthedark</dc:creator>
      <dc:date>2016-10-07T03:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Detect if a debugger is connected in firmware.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612715#M13013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had this problem on an MPC860 a very long time ago (when the MPC860 was a new chip :-).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When the debugger was connected, some of the debug registers changed from being read/write to read-only, and I detected that. The Debug controller in the ColdFire chips doesn't have that feature (or a lot of other useful ones the MPC860 had). The MPC860 Data Sheet was at Revision 5 in 2001, so that's a long time ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make that "RAM Location" a named global in your program. That should be in the symbol table, so you should be able to set that variable by name to something other than the default value it is loaded with from the debugger. If the Debugger is scriptable, you should be able to "hook the load" so it writes to this variable after downloading the code. Don't use uninitialised static RAM for this, as it could initialise with any 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>Fri, 07 Oct 2016 04:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612715#M13013</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2016-10-07T04:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Detect if a debugger is connected in firmware.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612716#M13014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really appreciated the method Tom provided, it is much useful!! For ColdFire V1 itself it is not possible for the processor to &lt;SPAN class=""&gt;detect&lt;/SPAN&gt; when the &lt;SPAN class=""&gt;BDM&lt;/SPAN&gt; is attached. The pins related with the &lt;SPAN class=""&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. So customer should consider other way to do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 08:45:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Detect-if-a-debugger-is-connected-in-firmware/m-p/612716#M13014</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2016-10-28T08:45:40Z</dc:date>
    </item>
  </channel>
</rss>

