<?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 Second FTM Dual Edge Capture --&amp;gt; Error in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1001998#M3989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to read two PWM Signals with known frequency. So I use 2 "FTM Dual Edge Capture" Blocks, with following parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Capture mode: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;continuous&lt;/P&gt;&lt;P&gt;Measurement: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;positive Pulse (rising-falling)&lt;/P&gt;&lt;P&gt;prescale factor: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first Block:&lt;/P&gt;&lt;P&gt;Module:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/P&gt;&lt;P&gt;Channel pair:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2-3&lt;/P&gt;&lt;P&gt;FTM input pin: PTC2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second block:&lt;/P&gt;&lt;P&gt;Module:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;Channel pair:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2-3&lt;/P&gt;&lt;P&gt;FTM input pin:&amp;nbsp;&amp;nbsp;&amp;nbsp;PTA15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I want to compile it, I get an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22995iB53A86B9C1A6AF6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;comment one out, it works, for both. But when I want to use both together I get that Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can help anyone to find the problem?&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;Felix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2020 09:48:48 GMT</pubDate>
    <dc:creator>felix_boeckmann</dc:creator>
    <dc:date>2020-01-13T09:48:48Z</dc:date>
    <item>
      <title>Second FTM Dual Edge Capture --&gt; Error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1001998#M3989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to read two PWM Signals with known frequency. So I use 2 "FTM Dual Edge Capture" Blocks, with following parameters:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Capture mode: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;continuous&lt;/P&gt;&lt;P&gt;Measurement: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;positive Pulse (rising-falling)&lt;/P&gt;&lt;P&gt;prescale factor: &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;32&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first Block:&lt;/P&gt;&lt;P&gt;Module:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/P&gt;&lt;P&gt;Channel pair:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2-3&lt;/P&gt;&lt;P&gt;FTM input pin: PTC2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second block:&lt;/P&gt;&lt;P&gt;Module:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;Channel pair:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;2-3&lt;/P&gt;&lt;P&gt;FTM input pin:&amp;nbsp;&amp;nbsp;&amp;nbsp;PTA15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I want to compile it, I get an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22995iB53A86B9C1A6AF6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I&amp;nbsp;comment one out, it works, for both. But when I want to use both together I get that Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can help anyone to find the problem?&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;Felix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 09:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1001998#M3989</guid>
      <dc:creator>felix_boeckmann</dc:creator>
      <dc:date>2020-01-13T09:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Second FTM Dual Edge Capture --&gt; Error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1001999#M3990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/felix.boeckmann@zf.com"&gt;felix.boeckmann@zf.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reporting this issue on our MBDT Community!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to replicate your error: indeed, when the code was generated, two sections were generated twice. I attached two files that must be replaced under src\mbdtbx_s32k\blocks\ftm folder path. Before that, please backup your existing files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please test them and confirm if this solved your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 13:03:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1001999#M3990</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-01-13T13:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Second FTM Dual Edge Capture --&gt; Error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1002000#M3991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius-Iucian Andrei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your fast help. Really great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it out, now he generate. But the application on the board doesn't start. I have a blinky LED to see if its running, but now its just on. When i comment one FTM block out, the board works (and my LED blinks).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any further idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 13:02:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1002000#M3991</guid>
      <dc:creator>felix_boeckmann</dc:creator>
      <dc:date>2020-01-14T13:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Second FTM Dual Edge Capture --&gt; Error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1002001#M3992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/felix.boeckmann@zf.com"&gt;felix.boeckmann@zf.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it was "Really great" if I was careful enough to provide the full patch. Sorry, my bad! :smileygrin:&lt;/P&gt;&lt;P&gt;Anyway, please also update at the same location "src\mbdtbx_s32k\blocks\ftm" the attached file&amp;nbsp;ftm_s32k_common_input.tlc.&lt;/P&gt;&lt;P&gt;It was not working now because the clock for the FTM module 1 was not initialized, the generated code now was only initializing the clock for the FTM0 module used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the fix using the attached example, but I did not change the description, so you need to connect the PWM2 outputs PTD10 and PTD11 to PTC2 and PTA15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 16:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1002001#M3992</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-01-14T16:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Second FTM Dual Edge Capture --&gt; Error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1002002#M3993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius-Iucian Andrei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, now it works. And now its in fact "really great" :smileyhappy:&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;Felix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2020 07:34:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Second-FTM-Dual-Edge-Capture-gt-Error/m-p/1002002#M3993</guid>
      <dc:creator>felix_boeckmann</dc:creator>
      <dc:date>2020-01-16T07:34:00Z</dc:date>
    </item>
  </channel>
</rss>

