<?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>LPC MicrocontrollersのトピックUndefined reference to `CTIMER_SetupCapture'</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954654#M37885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What I used is Lpc845BRK, the code is from LPC845 SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to change PWM duty cycle every 4/8/16 PWM period, so I use CTIMER with capture mode to counter PWM rise edge, I have already included fsl_ctimer.h but an error occured, undefined reference to `CTIMER_SetupCapture'. I checked my project and I'm sure that fsl_ctimer.h and fsl_ctimer.c are in the drivers folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What makes me confused is that I write CTIMER_Init() before CTIMER_SetupCapture(), the error is not on the line of Init, but on SetupCapture line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2019 09:45:28 GMT</pubDate>
    <dc:creator>mjx1995mjx</dc:creator>
    <dc:date>2019-06-06T09:45:28Z</dc:date>
    <item>
      <title>Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954654#M37885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; What I used is Lpc845BRK, the code is from LPC845 SDK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to change PWM duty cycle every 4/8/16 PWM period, so I use CTIMER with capture mode to counter PWM rise edge, I have already included fsl_ctimer.h but an error occured, undefined reference to `CTIMER_SetupCapture'. I checked my project and I'm sure that fsl_ctimer.h and fsl_ctimer.c are in the drivers folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What makes me confused is that I write CTIMER_Init() before CTIMER_SetupCapture(), the error is not on the line of Init, but on SetupCapture line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2019 09:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954654#M37885</guid>
      <dc:creator>mjx1995mjx</dc:creator>
      <dc:date>2019-06-06T09:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954655#M37886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Can you try to delete the files from the driver folder and add them again using the SDK management tool. You can do this by right clicking the project, then scroll down to SDK Management then click SDK Manage Components. Here you can select the ctimer driver again. Build your project and let me know the results.&lt;/P&gt;&lt;P&gt;&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/86047iFB7812A0A1005C29/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;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:37:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954655#M37886</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-06-12T19:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954656#M37887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for your help.I followed your advise but not work.I delete the fsl_ctimer.h and fsl_ctimer.c from the driver folder, then I found&amp;nbsp; SDK management tool and selected ctimer, an error shown this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2019-06-13.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86885i4F704495B9BF9063/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-06-13.png" alt="2019-06-13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So I selected debug_console_lite, added files and built project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Unfortunately the error still exist.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2019-06-13 (2).png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/86886i1BA80471F217FDF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-06-13 (2).png" alt="2019-06-13 (2).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 02:33:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954656#M37887</guid>
      <dc:creator>mjx1995mjx</dc:creator>
      <dc:date>2019-06-13T02:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954657#M37888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to replicate the behavior you are experiencing with the examples available but have not had the same error. Is it possible for you to attach the example?&lt;/P&gt;&lt;P&gt;This way I can better assist you in finding the root cause of this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:24:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954657#M37888</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-06-13T17:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954658#M37889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have uploaded the code. Appreciate for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 06:55:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954658#M37889</guid>
      <dc:creator>mjx1995mjx</dc:creator>
      <dc:date>2019-06-14T06:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954659#M37890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I found what is going on. The reason why it is showing an undefined reference is because the function itself for the SetupCapture is commented out as it has a macro definition preventing its use.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I noticed that there is a typo in the definition as it does not make sense to be not defined and the value be one as it is right now. Try this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#if !defined(FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE) &amp;amp;&amp;amp; !(FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or as it is right now remove the exclamation mark at the beginning but define the macro at the beginning of the document.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#if defined(FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE) &amp;amp;&amp;amp; FSL_FEATURE_CTIMER_HAS_NO_INPUT_CAPTURE&lt;/STRONG&gt;&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/87053i67DD7176F73A724F/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;Try this and let me know if it works out for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:18:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954659#M37890</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-06-14T15:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954660#M37891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sabina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works! Maybe SDC need update,   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much~&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jun 2019 08:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954660#M37891</guid>
      <dc:creator>mjx1995mjx</dc:creator>
      <dc:date>2019-06-15T08:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference to `CTIMER_SetupCapture'</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954661#M37892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad it worked out and definitely will be reporting this so it can be fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you and have a great day!&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 00:56:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Undefined-reference-to-CTIMER-SetupCapture/m-p/954661#M37892</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2019-06-18T00:56:44Z</dc:date>
    </item>
  </channel>
</rss>

