<?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: GNU Linker not resolving a symbol in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478454#M5361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to but the SW is proprietary, so I am not allowed&lt;/P&gt;&lt;P&gt;to release it. A "simple" version of the project works correctly.&lt;/P&gt;&lt;P&gt;I am guessing that somehow it is the 3rd party SW. It was&lt;/P&gt;&lt;P&gt;developed to execute on an 8051 using the old Franklin C&lt;/P&gt;&lt;P&gt;compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your offer to help.&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 14 Dec 2015 19:05:51 GMT</pubDate>
    <dc:creator>richardfox75</dc:creator>
    <dc:date>2015-12-14T19:05:51Z</dc:date>
    <item>
      <title>GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478448#M5355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using KDS 3.00 with all of the latest updates installed. For some&lt;/P&gt;&lt;P&gt;reason the linker is not resolving the address of one symbol.&lt;/P&gt;&lt;P&gt;I have a function say App_Run() in one C file and the call of&lt;/P&gt;&lt;P&gt;the function in another C file. At the completion of my project&lt;/P&gt;&lt;P&gt;build the Linker gives an error message that my App_Run()&lt;/P&gt;&lt;P&gt;is undefined.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the dis-assembly of the two files shows the&lt;/P&gt;&lt;P&gt;function definition in one file and the function call in the&lt;/P&gt;&lt;P&gt;other file. Have not been able to successfully build my&lt;/P&gt;&lt;P&gt;project. Have to comment out the function call for the&lt;/P&gt;&lt;P&gt;project to build. Cannot figure out why the Linker&lt;/P&gt;&lt;P&gt;is complaining.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 18:52:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478448#M5355</guid>
      <dc:creator>richardfox75</dc:creator>
      <dc:date>2015-12-11T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478449#M5356</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;Have you declared a prototype in the source "C" file and then declared it extern in the second/calling location?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&amp;nbsp; main.c has the function &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;App_Run(); in it but at top of file you have prototype void App_Run(void);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;in SomeOtherFile.c you have prototype at top of file like following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;extern void App_Run(void);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Later in some function you call it as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;App_Run();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Is that how you have it configured?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Any chance the call is in a piece of code that actually does not get called?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;David &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 19:02:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478449#M5356</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-12-11T19:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478450#M5357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response. Yes I have declared a prototype with and without &lt;/P&gt;&lt;P&gt;adding "extern" to the definition. The function that I am having a problem&lt;/P&gt;&lt;P&gt;with is the first call in main() to initialize the HW and SW, so it is&lt;/P&gt;&lt;P&gt;definitely being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried everything that I can think of. My processor is a Kinetis&lt;/P&gt;&lt;P&gt;MK22FN with 256K of Flash memory. The size of my application is&lt;/P&gt;&lt;P&gt;just under 12K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that I am modifying third party SW which is using the&lt;/P&gt;&lt;P&gt;main() to call every other function in the application. So it would be&lt;/P&gt;&lt;P&gt;tedious to start stubbing code out, and then trying the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another project which is very similar, but much smaller, and&lt;/P&gt;&lt;P&gt;it builds correctly.&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>Fri, 11 Dec 2015 19:59:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478450#M5357</guid>
      <dc:creator>richardfox75</dc:creator>
      <dc:date>2015-12-11T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478451#M5358</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;Have you applied this patch:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/" title="http://mcuoneclipse.com/2015/03/29/solving-the-8192-character-command-line-limit-on-windows/"&gt;Solving the 8192 Character Command Line Limit on Windows | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 20:12:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478451#M5358</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-12-11T20:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478452#M5359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I have applied the patch. It did not solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 14 Dec 2015 13:32:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478452#M5359</guid>
      <dc:creator>richardfox75</dc:creator>
      <dc:date>2015-12-14T13:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478453#M5360</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;Sorry that was not the solution.&lt;/P&gt;&lt;P&gt;Can you post a simplified version of the project with the issue?&lt;/P&gt;&lt;P&gt;FYI - I'm heading out tomorrow on Bereavement followed by Holiday PTO.&amp;nbsp; I will try to point someone else to help.&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>Mon, 14 Dec 2015 17:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478453#M5360</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-12-14T17:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478454#M5361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to but the SW is proprietary, so I am not allowed&lt;/P&gt;&lt;P&gt;to release it. A "simple" version of the project works correctly.&lt;/P&gt;&lt;P&gt;I am guessing that somehow it is the 3rd party SW. It was&lt;/P&gt;&lt;P&gt;developed to execute on an 8051 using the old Franklin C&lt;/P&gt;&lt;P&gt;compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your offer to help.&lt;/P&gt;&lt;P&gt;Regards,&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>Mon, 14 Dec 2015 19:05:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478454#M5361</guid>
      <dc:creator>richardfox75</dc:creator>
      <dc:date>2015-12-14T19:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: GNU Linker not resolving a symbol</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478455#M5362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;On this assumption:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file.h has void App_Run( void );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file.c has void App_Run( void ){ }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and they are not linking check the file.h header guard to see if it is using the same define as some other header.&lt;/P&gt;&lt;P&gt;The 'simple' project won't include duplicated header guard which is why it works and the real one does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#error Am I here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to file.h and see if complication stops at that point, as it should if the header really being used.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 14:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/GNU-Linker-not-resolving-a-symbol/m-p/478455#M5362</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-12-15T14:01:15Z</dc:date>
    </item>
  </channel>
</rss>

