<?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: Got undefined reference to `GPIO_ReadPinInput' in one MCUXpresso C++ Project but not in another similar Project in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990596#M55685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;It's working! But I still don't understand why in MK50DN512exPrj_cpp&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;fsl_gpio.h don't have to be included and works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2019 15:39:20 GMT</pubDate>
    <dc:creator>yinni</dc:creator>
    <dc:date>2019-12-03T15:39:20Z</dc:date>
    <item>
      <title>Got undefined reference to `GPIO_ReadPinInput' in one MCUXpresso C++ Project but not in another similar Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990594#M55683</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 am new to MCU and have been trying to incorporate an USB SDK example (usb_device_msc_sdcard_lite_bm) for twrk60d100m board into my own MCUXpresso C++ project based on MK50DN512CLL10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example is a C project which is beyond my control when importing the SDK example from MCUXpresso.&lt;/P&gt;&lt;P&gt;I took three steps:&lt;/P&gt;&lt;P&gt;1. Modify the clockConfig.c in the example to suit my board and make it work (Has finished with help from&amp;nbsp;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica',sans-serif; color: #666666;"&gt;Mark from NXP community&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;2. Create a new C++ project with board&amp;nbsp;&lt;SPAN&gt;MK50DN512CLL10 in MCUXpresso, and copied the source files and&amp;nbsp;other required folders from the working USB example to the newly created C++ project (named MK50DN512exPrj), disabled the main () in disk_sdcard.c, added&amp;nbsp;USB_DeviceApplicationInit and&amp;nbsp;USB_DeviceMscAppTask functions in disk_sdcard.h, finally made it work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. Copy the source files and the required folders from the step 2 project my C++ project, surprisingly&amp;nbsp;it doesn't work when I add&amp;nbsp;USB_DeviceApplicationInit() function in the main () of my project and the error is&amp;nbsp;undefined reference to `GPIO_ReadPinInput'. But I did not have this problem in the step 2 project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I could not figure out what's wrong. The attached are the two C++ project,&amp;nbsp;MK50DN512exPrj is working while&amp;nbsp;Kinetis Firmware_20191129_usb3 has the aforementioned problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any advice is appreciated&amp;nbsp;much!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 22:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990594#M55683</guid>
      <dc:creator>yinni</dc:creator>
      <dc:date>2019-11-29T22:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Got undefined reference to `GPIO_ReadPinInput' in one MCUXpresso C++ Project but not in another similar Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990595#M55684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please&amp;nbsp; include fsl_gpio.h in fsl_host.c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 09:03:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990595#M55684</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2019-12-03T09:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Got undefined reference to `GPIO_ReadPinInput' in one MCUXpresso C++ Project but not in another similar Project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990596#M55685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jing,&lt;/P&gt;&lt;P&gt;It's working! But I still don't understand why in MK50DN512exPrj_cpp&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;fsl_gpio.h don't have to be included and works well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 15:39:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Got-undefined-reference-to-GPIO-ReadPinInput-in-one-MCUXpresso-C/m-p/990596#M55685</guid>
      <dc:creator>yinni</dc:creator>
      <dc:date>2019-12-03T15:39:20Z</dc:date>
    </item>
  </channel>
</rss>

