<?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: KDS 3.00 linker not resolving function references in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464298#M4922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;Are you using header files for your declarations?&lt;/P&gt;&lt;P&gt;If not please review following link: &lt;A href="http://www.tutorialspoint.com/cprogramming/c_header_files.htm" title="http://www.tutorialspoint.com/cprogramming/c_header_files.htm"&gt;C Header Files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As Carlos requested a small example project goes a long way to clarifying things.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2016 22:49:58 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-01-08T22:49:58Z</dc:date>
    <item>
      <title>KDS 3.00 linker not resolving function references</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464296#M4920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been having problems with the KDS 3 linker not resolving function references. I have prototypes for&lt;/P&gt;&lt;P&gt;all of the functions. But I am unable to call a function, say App_Run() from the main.c file.This morning&amp;nbsp; I believe&lt;/P&gt;&lt;P&gt;that I have figured out what is happening. My task is to port software from an old product to new hardware,&lt;/P&gt;&lt;P&gt;replacing an 8051 with an ARM processor. The software was originally built with the Franklin C compiler,&lt;/P&gt;&lt;P&gt;so all of the file names are in upper case DOS file names). The code contained in a file named UMAIN05.C is &lt;/P&gt;&lt;P&gt;the old main() function, it calls all of the other functions in the project.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears that the KDS tools process the files in alphabetical order. When I attempt to call my App_Run() function&lt;/P&gt;&lt;P&gt;which is defined in this file I get undefined references from the linker. However, if I rename the file UMAIN05.C&lt;/P&gt;&lt;P&gt;to say _main.c then the linker is able to resolve the references to function App_Run(). This does not solve my&lt;/P&gt;&lt;P&gt;problem because the file name UMAIN05.C is one of the last file names in the 8051 software. With the new file&lt;/P&gt;&lt;P&gt;name all of the functions which are defined in this file _main.c, are now flagged as undefined references. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The references between files main.c and _main.c are now resolved, but all of the functions in files named Uxxxxxx.c&lt;/P&gt;&lt;P&gt;are not resolved.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;File named _main.c is processed before file named main.c, but is also processed before all of the other files in my&lt;/P&gt;&lt;P&gt;project. Since file main.c is generated by Processor Expert, I can't change it. It looks like I will have to change all of the file&lt;/P&gt;&lt;P&gt;names in the old software. Am I correct? Is there some way to resolve this with out changing file names? Is this really&lt;/P&gt;&lt;P&gt;what the KDS tools are doing? I have changed some of the file names and now these renamed files have function &lt;/P&gt;&lt;P&gt;references resolved.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anybody seen this type of issue?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Richard Fox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 19:25:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464296#M4920</guid>
      <dc:creator>richardfox75</dc:creator>
      <dc:date>2016-01-05T19:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.00 linker not resolving function references</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464297#M4921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not seen this issue before, would it be possible that you upload a sample project where we can reproduce this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Carlos Mendoza&lt;/P&gt;&lt;P&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 21:34:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464297#M4921</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2016-01-08T21:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.00 linker not resolving function references</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464298#M4922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;Are you using header files for your declarations?&lt;/P&gt;&lt;P&gt;If not please review following link: &lt;A href="http://www.tutorialspoint.com/cprogramming/c_header_files.htm" title="http://www.tutorialspoint.com/cprogramming/c_header_files.htm"&gt;C Header Files&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As Carlos requested a small example project goes a long way to clarifying things.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 22:49:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464298#M4922</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-01-08T22:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: KDS 3.00 linker not resolving function references</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464299#M4923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I downloaded the latest GNU ARM tools from the launchpad.&lt;/P&gt;&lt;P&gt;After I replaced the tools that KDS was pointing to with the&lt;/P&gt;&lt;P&gt;new tool directories, my project compiles and links with no&lt;/P&gt;&lt;P&gt;errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dick Fox&lt;/P&gt;&lt;P&gt;Firmware  Engineer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NATIONAL CONTROLS CORPORATION BUSINESS UNIT&lt;/P&gt;&lt;P&gt;INSTRUMENTATION AND SPECIALTY CONTROLS DIVISION&lt;/P&gt;&lt;P&gt;1725 Western Dr | West Chicago, IL 60185 | &lt;A href="http://www.ametekncc.com" target="test_blank"&gt;http://www.ametekncc.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Phone: (630)621-3118 | email: Dick Fox@ametek.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jan 2016 00:15:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/KDS-3-00-linker-not-resolving-function-references/m-p/464299#M4923</guid>
      <dc:creator>richardfox75</dc:creator>
      <dc:date>2016-01-12T00:15:40Z</dc:date>
    </item>
  </channel>
</rss>

