<?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>topic Re: K22 detect if in jtag debug mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475984#M28985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben Jonsson:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ARM register &lt;STRONG&gt;DHCSR&lt;/STRONG&gt; should help you to achieve what you need. See the next discussion about the same topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/358103"&gt;Flag Status: SRS1_JTAG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards!&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 00:45:23 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2016-03-16T00:45:23Z</dc:date>
    <item>
      <title>K22 detect if in jtag debug mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475983#M28984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there an easy way to detect if the program in a K22 is running from the debugger over the JTAG interface or if it is started standalone?&lt;/P&gt;&lt;P&gt;I have added some LEDs to the jtag interface pins which I want to use when not running from the debugger. I could check the _DEBUG define at compile time to enable the GPIOs instead of the JTAG interface but I would rather be able to do this at runtime so it works with any build.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2016 12:01:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475983#M28984</guid>
      <dc:creator>rubenjonsson</dc:creator>
      <dc:date>2016-03-14T12:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: K22 detect if in jtag debug mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475984#M28985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ruben Jonsson:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ARM register &lt;STRONG&gt;DHCSR&lt;/STRONG&gt; should help you to achieve what you need. See the next discussion about the same topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/358103"&gt;Flag Status: SRS1_JTAG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards!&lt;BR /&gt;Jorge Gonzalez&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 00:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475984#M28985</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-03-16T00:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: K22 detect if in jtag debug mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475985#M28986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works great, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:58:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22-detect-if-in-jtag-debug-mode/m-p/475985#M28986</guid>
      <dc:creator>rubenjonsson</dc:creator>
      <dc:date>2016-03-16T08:58:05Z</dc:date>
    </item>
  </channel>
</rss>

