<?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: Count clock cycles of a particular algorithm in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394376#M2476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I am using the KL03 baremetal. Using the timers make sense. I was hoping for cycle count, but the timer approach will work as well I guess, I am thinking on counting a few microseconds with a core clock on the 1/2 MHz range, so I think it should not overflow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 02:30:08 GMT</pubDate>
    <dc:creator>carlostadeoorte</dc:creator>
    <dc:date>2015-06-12T02:30:08Z</dc:date>
    <item>
      <title>Count clock cycles of a particular algorithm</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394374#M2474</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;I would like to know if any of you know how to count the cycles (or instruction count) executed between 2 breakpoints on KDS?.&amp;nbsp; Alternatively do any of you know if there is a way to know the timestamp between two breakpoints.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 21:31:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394374#M2474</guid>
      <dc:creator>carlostadeoorte</dc:creator>
      <dc:date>2015-06-11T21:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count clock cycles of a particular algorithm</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394375#M2475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;Which Kinetis device are you using?&lt;/P&gt;&lt;P&gt;Are you using RTOS?&amp;nbsp; If yes which?&lt;/P&gt;&lt;P&gt;If MQX please review this previous Community Post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/450715"&gt;Re: elapsed time in nanoseconds&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If baremetal then you could use a PIT timer to is derived from the Peripheral Bus Clock (1/2 the core clock) and start the timer are one breakpoint and stop it at the second breakpoint.&amp;nbsp; Be careful the PIT has not overflown.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 22:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394375#M2475</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-06-11T22:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count clock cycles of a particular algorithm</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394376#M2476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I am using the KL03 baremetal. Using the timers make sense. I was hoping for cycle count, but the timer approach will work as well I guess, I am thinking on counting a few microseconds with a core clock on the 1/2 MHz range, so I think it should not overflow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 02:30:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Count-clock-cycles-of-a-particular-algorithm/m-p/394376#M2476</guid>
      <dc:creator>carlostadeoorte</dc:creator>
      <dc:date>2015-06-12T02:30:08Z</dc:date>
    </item>
  </channel>
</rss>

