<?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>Kinetis Microcontrollers中的主题 How to enable SWO Interrupt stats K64F</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875615#M52073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to enable the SWO on my FRDM K64F board.&amp;nbsp; I am able to connect to the mcu with my multilink FX fine with the SWD protocol.&amp;nbsp; The issue I am having is that I can not get the SWO features to work.&amp;nbsp; I have setup the SWO pin using the config tool as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTA2 (pin 36) is configured as TRACE_SWO */&lt;BR /&gt; PORT_SetPinMux(PORTA, 2U, kPORT_MuxAlt7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I connect with the P&amp;amp;E multilink all of the SWO options are grey and none of those options work.&amp;nbsp; Is there anything else that needs to be done in order to get the SWO to output the interrupt statistics?&amp;nbsp; I have searched and how not found much information.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2019 03:43:43 GMT</pubDate>
    <dc:creator>krzysztofszot</dc:creator>
    <dc:date>2019-02-20T03:43:43Z</dc:date>
    <item>
      <title>How to enable SWO Interrupt stats K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875615#M52073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to enable the SWO on my FRDM K64F board.&amp;nbsp; I am able to connect to the mcu with my multilink FX fine with the SWD protocol.&amp;nbsp; The issue I am having is that I can not get the SWO features to work.&amp;nbsp; I have setup the SWO pin using the config tool as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTA2 (pin 36) is configured as TRACE_SWO */&lt;BR /&gt; PORT_SetPinMux(PORTA, 2U, kPORT_MuxAlt7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I connect with the P&amp;amp;E multilink all of the SWO options are grey and none of those options work.&amp;nbsp; Is there anything else that needs to be done in order to get the SWO to output the interrupt statistics?&amp;nbsp; I have searched and how not found much information.&amp;nbsp; Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2019 03:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875615#M52073</guid>
      <dc:creator>krzysztofszot</dc:creator>
      <dc:date>2019-02-20T03:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SWO Interrupt stats K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875616#M52074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is a MCUXpresso_IDE_SWO_Trace.pdf in your MCUXpresso install directory. It guides you use SWO function step by step. Please follow it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 07:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875616#M52074</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-02-22T07:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SWO Interrupt stats K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875617#M52075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jing,&lt;/P&gt;&lt;P&gt;I read the document you mentioned, and it was not really any help the only "step by step" part was for LPC mcu's.&amp;nbsp; I figured it out on my own however.&amp;nbsp; The K64F mcu also needs the trace clock enabled, which there is no mention of in the document you mentioned.&amp;nbsp; I will include what I did here in case anybody else has the same issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the clock initialization part of the code add the following define&amp;nbsp;&lt;/P&gt;&lt;P&gt;#define SIM_TRACE_CLK_SEL_CORE_SYSTEM_CLK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1U&amp;nbsp; /*!&amp;lt; Trace clock select: Core/system clock */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then enable the trace clock with the line below&lt;/P&gt;&lt;P&gt;/* Set debug trace clock source. */&lt;BR /&gt;CLOCK_SetTraceClock(SIM_TRACE_CLK_SEL_CORE_SYSTEM_CLK);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly enable the clock for port A, and setup pin 36 for SWO trace.&lt;/P&gt;&lt;P&gt;/* Port A Clock Gate Control: Clock enabled */&lt;BR /&gt;CLOCK_EnableClock(kCLOCK_PortA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* PORTA2 (pin 36) is configured as TRACE_SWO */&lt;BR /&gt;PORT_SetPinMux(PORTA, 2U, kPORT_MuxAlt7);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above still does not work with the multilink FX, as far as getting interrupt traces, but will allow to debug.&amp;nbsp; However if using a j-link it all works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Feb 2019 14:43:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875617#M52075</guid>
      <dc:creator>krzysztofszot</dc:creator>
      <dc:date>2019-02-23T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable SWO Interrupt stats K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875618#M52076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Krzysztof,&lt;/P&gt;&lt;P&gt;This doc if fit for all MCU which is supported by MCUXpresso, not only for LPC.&lt;/P&gt;&lt;P&gt;PTA2 is default for SWO, you needn't config it.&lt;/P&gt;&lt;P&gt;The P&amp;amp;E Micro debug chain will automatically calculate the target clock speed therefore this configuration step is not required to establish trace capture.&lt;/P&gt;&lt;P&gt;But not all PE multilink are supported. There is version limit&lt;BR /&gt;• Multilink Universal RevD&lt;BR /&gt;• Multilink Universal FX Rev C&lt;BR /&gt;• Multilink ACP Rev B&lt;/P&gt;&lt;P&gt;So,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Note that only recent versions of P&amp;amp;E probes support SWO&lt;/LI&gt;&lt;LI&gt;For more information on SWO trace with P&amp;amp;E probes, please see the P&amp;amp;E Micro blog article at:&lt;UL&gt;&lt;LI&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.pemicro.com%2Fblog%2Findex.cfm%3Fpost_id%3D165" rel="nofollow" target="_blank"&gt;http://www.pemicro.com/blog/index.cfm?post_id=165&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 05:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-enable-SWO-Interrupt-stats-K64F/m-p/875618#M52076</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-02-25T05:29:03Z</dc:date>
    </item>
  </channel>
</rss>

