<?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: FTM counter read inside interrupt / S32K144 in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1571432#M5366</link>
    <description>&lt;P&gt;Yes, you can put a breakpoint in the interrupt routine and then run step by step.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Dec 2022 22:37:20 GMT</pubDate>
    <dc:creator>_Leo_</dc:creator>
    <dc:date>2022-12-16T22:37:20Z</dc:date>
    <item>
      <title>FTM counter read inside interrupt / S32K144</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1565294#M5352</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to read a FTM counter inside an interrupt raised on CnV match of the same FTM timer.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;void vBIOS_CPG_Handler(oc_event_t event, void * userData)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;u16CounterValue = FTM_DRV_CounterRead(5);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;u16CounterValue2 = FTM_DRV_CounterRead(5);&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;A breakpoint on the last line will give me 2 values closed to each other for &lt;EM&gt;u16CounterValue and&amp;nbsp;u16CounterValue2&amp;nbsp;&lt;/EM&gt;as expected (few ticks difference).&lt;BR /&gt;&lt;BR /&gt;But If I watch the FTM-&amp;gt; CNT register, the value is not the same?&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;FTM5-&amp;gt;CNT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;46442&lt;BR /&gt;u16CounterValue&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22819&lt;BR /&gt;u16CounterValue2&amp;nbsp; &amp;nbsp; &amp;nbsp; 22821&lt;/P&gt;&lt;P&gt;Any idea why there is a difference?&lt;/P&gt;&lt;P&gt;Thks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 15:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1565294#M5352</guid>
      <dc:creator>CharlesAlbert</dc:creator>
      <dc:date>2022-12-06T15:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter read inside interrupt / S32K144</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1568589#M5358</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/209587"&gt;@CharlesAlbert&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;I'm very sorry for the delay. We are currently facing some backlog issues.&lt;/P&gt;
&lt;P&gt;Could you confirm that you are using FTM&lt;STRONG&gt;5&lt;/STRONG&gt; and S32K144 please?&lt;/P&gt;
&lt;P&gt;What happens is that the S32K144 only has FTM from 0 to 3 (&lt;EM&gt;Table 47-1. FTM instances and features&lt;/EM&gt; of &lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K1XXRM" target="_blank" rel="noopener"&gt;Reference Manual&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf86756_0-1670881502477.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/204144i8C8810423D9DCBF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf86756_0-1670881502477.png" alt="nxf86756_0-1670881502477.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 21:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1568589#M5358</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2022-12-12T21:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter read inside interrupt / S32K144</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1569754#M5362</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thx. I am using FTM5 on a S32K146!&lt;/P&gt;&lt;P&gt;I guess my issue is the debug, when breaking the FTM may continue to run or something.&lt;/P&gt;&lt;P&gt;If I make a breakpoint somewhere else in the code, the 2 variables seems to have an expected value.&lt;/P&gt;&lt;P&gt;i.e. if Cvn register is 500, I will see 525 for example which is ok as there is the time for the interrupt, few codes lines etc.&lt;/P&gt;&lt;P&gt;May the question is more if there is a way to do debug by breaking in the interrupt routine?&lt;/P&gt;&lt;P&gt;Thks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 13:40:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1569754#M5362</guid>
      <dc:creator>CharlesAlbert</dc:creator>
      <dc:date>2022-12-14T13:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: FTM counter read inside interrupt / S32K144</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1571432#M5366</link>
      <description>&lt;P&gt;Yes, you can put a breakpoint in the interrupt routine and then run step by step.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 22:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/FTM-counter-read-inside-interrupt-S32K144/m-p/1571432#M5366</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2022-12-16T22:37:20Z</dc:date>
    </item>
  </channel>
</rss>

