<?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 Add in new software component in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056024#M5702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi , I have using the &lt;SPAN&gt;MCUXpresso&lt;/SPAN&gt; IDE ( latest version from the NXP website ) and also &lt;SPAN&gt;MCUXpresso&lt;/SPAN&gt; SDK ( also latest version from the website) . I used I2C examples as a starting base . I want to add in some external files that I need to use for a project into this I2C examples project . &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new folders in the I2C projects and all the new files will be stored under this new folder&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;. I have modify the I2C code so that it can call some function from the new software component that I have just added . &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I have added the new files into the project and also put in the correct &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;include path setting in the IDE to point to the new folder where all the new files are , I was able to compile but cannot link . It always indicated " &lt;SPAN style="font-size:10.0pt;font-family:Consolas;mso-bidi-font-family:Consolas;color:black;background:#FEE7E0;"&gt;undefined reference to” . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have checked all my include headers for the calls that I have made , it is correct . but still I am having the same "undefined reference to”&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I put &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;the new folder with its new files under a already created folder from the &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;I2C examples , it can compile and linked . &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that if a new folder is created for the project, somehow it cannot recognise the new folder . The new folder has to be put into the already created folder from the examples . I give &lt;SPAN&gt;a&lt;/SPAN&gt; example for better clarify&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original SDK project examples&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frdmke06z_i2C_polling_b2b_trasnsfer_master&lt;/P&gt;&lt;P&gt; &amp;gt;Project setting&lt;/P&gt;&lt;P&gt;&amp;gt;Includes&lt;/P&gt;&lt;P&gt;&amp;gt;CMSIS&lt;/P&gt;&lt;P&gt;&amp;gt;board&lt;/P&gt;&lt;P&gt;&amp;gt;component&lt;/P&gt;&lt;P&gt;&amp;gt;device&lt;/P&gt;&lt;P&gt;&amp;gt;source&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;utilities&lt;/P&gt;&lt;P&gt;&amp;gt;debug&lt;/P&gt;&lt;P&gt;&amp;gt;doc&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="color: red;"&gt;newfolder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:black;"&gt;If the "&lt;SPAN&gt;newfolder&lt;/SPAN&gt;” is created like the above , it will have the error "undefined reference to” &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:black;"&gt;If the "&lt;SPAN&gt;newfolder&lt;/SPAN&gt;” is created under the already created folder coming from the example &lt;SPAN&gt;sdk&lt;/SPAN&gt; as shown below , it is OK . and I can see that under &lt;SPAN&gt;newfolder&lt;/SPAN&gt; , the subdir.mk &lt;SPAN&gt;makefile&lt;/SPAN&gt; is created where the above project &lt;SPAN&gt;strcture&lt;/SPAN&gt; has no subdir.mk &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frdmke06z_i2C_polling_b2b_trasnsfer_master&lt;/P&gt;&lt;P&gt; &amp;gt;Project setting&lt;/P&gt;&lt;P&gt;&amp;gt;Includes&lt;/P&gt;&lt;P&gt;&amp;gt;CMSIS&lt;/P&gt;&lt;P&gt;&amp;gt;board&lt;/P&gt;&lt;P&gt;&amp;gt;component&lt;/P&gt;&lt;P&gt;&amp;gt;device&lt;/P&gt;&lt;P&gt;&amp;gt;source&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="color: red;"&gt;newfolder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;utilities&lt;/P&gt;&lt;P&gt;&amp;gt;debug&lt;/P&gt;&lt;P&gt;&amp;gt;doc&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:black;"&gt;Note : the &lt;SPAN&gt;newfolder&lt;/SPAN&gt; will contain some .c and .h files . &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;I think it has to do &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;with some &lt;SPAN&gt;makefile&lt;/SPAN&gt; for the &lt;SPAN&gt;newfolder&lt;/SPAN&gt; but I am not sure . Please advice&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jul 2020 15:06:40 GMT</pubDate>
    <dc:creator>ThingPiaoChew</dc:creator>
    <dc:date>2020-07-02T15:06:40Z</dc:date>
    <item>
      <title>Add in new software component</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056024#M5702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi , I have using the &lt;SPAN&gt;MCUXpresso&lt;/SPAN&gt; IDE ( latest version from the NXP website ) and also &lt;SPAN&gt;MCUXpresso&lt;/SPAN&gt; SDK ( also latest version from the website) . I used I2C examples as a starting base . I want to add in some external files that I need to use for a project into this I2C examples project . &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a new folders in the I2C projects and all the new files will be stored under this new folder&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/SPAN&gt;. I have modify the I2C code so that it can call some function from the new software component that I have just added . &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; I have added the new files into the project and also put in the correct &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;include path setting in the IDE to point to the new folder where all the new files are , I was able to compile but cannot link . It always indicated " &lt;SPAN style="font-size:10.0pt;font-family:Consolas;mso-bidi-font-family:Consolas;color:black;background:#FEE7E0;"&gt;undefined reference to” . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have checked all my include headers for the calls that I have made , it is correct . but still I am having the same "undefined reference to”&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I put &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;the new folder with its new files under a already created folder from the &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;I2C examples , it can compile and linked . &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suspect that if a new folder is created for the project, somehow it cannot recognise the new folder . The new folder has to be put into the already created folder from the examples . I give &lt;SPAN&gt;a&lt;/SPAN&gt; example for better clarify&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original SDK project examples&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frdmke06z_i2C_polling_b2b_trasnsfer_master&lt;/P&gt;&lt;P&gt; &amp;gt;Project setting&lt;/P&gt;&lt;P&gt;&amp;gt;Includes&lt;/P&gt;&lt;P&gt;&amp;gt;CMSIS&lt;/P&gt;&lt;P&gt;&amp;gt;board&lt;/P&gt;&lt;P&gt;&amp;gt;component&lt;/P&gt;&lt;P&gt;&amp;gt;device&lt;/P&gt;&lt;P&gt;&amp;gt;source&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;utilities&lt;/P&gt;&lt;P&gt;&amp;gt;debug&lt;/P&gt;&lt;P&gt;&amp;gt;doc&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="color: red;"&gt;newfolder&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:black;"&gt;If the "&lt;SPAN&gt;newfolder&lt;/SPAN&gt;” is created like the above , it will have the error "undefined reference to” &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:black;"&gt;If the "&lt;SPAN&gt;newfolder&lt;/SPAN&gt;” is created under the already created folder coming from the example &lt;SPAN&gt;sdk&lt;/SPAN&gt; as shown below , it is OK . and I can see that under &lt;SPAN&gt;newfolder&lt;/SPAN&gt; , the subdir.mk &lt;SPAN&gt;makefile&lt;/SPAN&gt; is created where the above project &lt;SPAN&gt;strcture&lt;/SPAN&gt; has no subdir.mk &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frdmke06z_i2C_polling_b2b_trasnsfer_master&lt;/P&gt;&lt;P&gt; &amp;gt;Project setting&lt;/P&gt;&lt;P&gt;&amp;gt;Includes&lt;/P&gt;&lt;P&gt;&amp;gt;CMSIS&lt;/P&gt;&lt;P&gt;&amp;gt;board&lt;/P&gt;&lt;P&gt;&amp;gt;component&lt;/P&gt;&lt;P&gt;&amp;gt;device&lt;/P&gt;&lt;P&gt;&amp;gt;source&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;gt;&lt;SPAN style="color: red;"&gt;newfolder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN&gt;startup&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;utilities&lt;/P&gt;&lt;P&gt;&amp;gt;debug&lt;/P&gt;&lt;P&gt;&amp;gt;doc&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color:black;"&gt;Note : the &lt;SPAN&gt;newfolder&lt;/SPAN&gt; will contain some .c and .h files . &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;I think it has to do &lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;with some &lt;SPAN&gt;makefile&lt;/SPAN&gt; for the &lt;SPAN&gt;newfolder&lt;/SPAN&gt; but I am not sure . Please advice&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 15:06:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056024#M5702</guid>
      <dc:creator>ThingPiaoChew</dc:creator>
      <dc:date>2020-07-02T15:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add in new software component</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056025#M5703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="279768" data-username="ThingPiaoChew" href="https://community.nxp.com/people/ThingPiaoChew"&gt;Thing Piao Chew&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;my wild guess is that you have 'excluded' that new folder from the build, see &lt;A class="link-titled" href="https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/" title="https://mcuoneclipse.com/2014/07/22/exclude-source-files-from-build-in-eclipse/"&gt;Exclude Source Files from Build in Eclipse | MCU on Eclipse&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So make sure your folder shows that small blue 'C' on it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114464iD78C2BE5454E71D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. if you want to learn more about icon decorators in Eclipse, have a read at &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/07/30/icon-and-label-decorators-in-eclipse/" title="https://mcuoneclipse.com/2012/07/30/icon-and-label-decorators-in-eclipse/"&gt;Icon and Label Decorators in Eclipse | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 15:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056025#M5703</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-07-02T15:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add in new software component</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056026#M5704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes , it works now . I forgot about this  little tick box . thanks !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2020 15:27:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Add-in-new-software-component/m-p/1056026#M5704</guid>
      <dc:creator>ThingPiaoChew</dc:creator>
      <dc:date>2020-07-02T15:27:59Z</dc:date>
    </item>
  </channel>
</rss>

