<?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 Replacing default IRQ Handler for FTM component in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Replacing-default-IRQ-Handler-for-FTM-component/m-p/1921169#M9952</link>
    <description>&lt;P&gt;I'm creating a project for a FRDM-KE02Z40M board and need to replace the default IRQ handler for FTM2 with my own.&amp;nbsp; When I add FTM2 device in the Components tab of the Peripherals perspective it brings in files named fsl_adapter_ftm.c and .h in the component folder.&amp;nbsp; fsl_adapter_ftm.c contains a function declartion named &lt;SPAN&gt;FTM2_IRQHandler and that conflicts with my declaration of a function with the same name. (build error: multiple definition of `FTM2_IRQHandler').&amp;nbsp; I can get it to build by deleting the declaration in fsl_adapter_ftm.c but I think there should be a way&amp;nbsp; to do this without modifying a SDK file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried selecting a custom handler name in the component config but that didn't help even though my code at that point didn't include any reference to the original handler name (the name does show up in a declare generated during "Update Code" in the Peripherals perspective.&lt;/P&gt;&lt;P&gt;The handler in &lt;SPAN&gt;fsl_adapter_ftm&lt;/SPAN&gt;.c appears to utilize a callback function but I couldn't figure out how to use that either and in any case I'd prefer to eliminate the generated handler completely and write my own.&amp;nbsp; What do I need to change to make this work without modifying the SDK generated files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached zip file contains the entire project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 04:44:52 GMT</pubDate>
    <dc:creator>lfisher51</dc:creator>
    <dc:date>2024-07-31T04:44:52Z</dc:date>
    <item>
      <title>Replacing default IRQ Handler for FTM component</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Replacing-default-IRQ-Handler-for-FTM-component/m-p/1921169#M9952</link>
      <description>&lt;P&gt;I'm creating a project for a FRDM-KE02Z40M board and need to replace the default IRQ handler for FTM2 with my own.&amp;nbsp; When I add FTM2 device in the Components tab of the Peripherals perspective it brings in files named fsl_adapter_ftm.c and .h in the component folder.&amp;nbsp; fsl_adapter_ftm.c contains a function declartion named &lt;SPAN&gt;FTM2_IRQHandler and that conflicts with my declaration of a function with the same name. (build error: multiple definition of `FTM2_IRQHandler').&amp;nbsp; I can get it to build by deleting the declaration in fsl_adapter_ftm.c but I think there should be a way&amp;nbsp; to do this without modifying a SDK file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I tried selecting a custom handler name in the component config but that didn't help even though my code at that point didn't include any reference to the original handler name (the name does show up in a declare generated during "Update Code" in the Peripherals perspective.&lt;/P&gt;&lt;P&gt;The handler in &lt;SPAN&gt;fsl_adapter_ftm&lt;/SPAN&gt;.c appears to utilize a callback function but I couldn't figure out how to use that either and in any case I'd prefer to eliminate the generated handler completely and write my own.&amp;nbsp; What do I need to change to make this work without modifying the SDK generated files?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attached zip file contains the entire project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 04:44:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Replacing-default-IRQ-Handler-for-FTM-component/m-p/1921169#M9952</guid>
      <dc:creator>lfisher51</dc:creator>
      <dc:date>2024-07-31T04:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing default IRQ Handler for FTM component</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Replacing-default-IRQ-Handler-for-FTM-component/m-p/1923926#M9957</link>
      <description>&lt;P&gt;&lt;A id="link_6" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237457" target="_self" aria-label="View Profile of lfisher51"&gt;&lt;SPAN class=""&gt;hi,lfisher51&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you, I will gladly help you with this.&lt;/P&gt;
&lt;P&gt;I checked your project and it seems that only fsl_adapter_ftm.c does not fsl_adapter_ftm.h.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_0-1722594705755.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291689i642924CBE0D3538B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_0-1722594705755.png" alt="XuZhang_0-1722594705755.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;​I think fsl_adapter_timer.h is fsl_adapter_ftm.h in your project. If so, try modifying your code in the following ways.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="XuZhang_1-1722594714489.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/291690i93E3FCE4DF8706F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="XuZhang_1-1722594714489.png" alt="XuZhang_1-1722594714489.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xu Zhang&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 10:32:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Replacing-default-IRQ-Handler-for-FTM-component/m-p/1923926#M9957</guid>
      <dc:creator>Joey_z</dc:creator>
      <dc:date>2024-08-02T10:32:22Z</dc:date>
    </item>
  </channel>
</rss>

