<?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: Odd / Irrelevant Linker Warnings in CW v10.4 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243008#M9428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Success! That did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Stan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ONE NOTE: In order to follow the procedure in the manual, I had to apply a small edit to one of the make include files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ColdFire_Support\ewl\make.os I had to change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ifeq ($(OSTYPE), console)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ifeq ($(OS), Windows_NT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a Windows 7 box, but I would think that this would apply to any platform running the Win NT kernel. The problem is that there is no environment variable named OSTYPE, so the test in that line failed and caused make to assume that I was building in either Cygwin or Linux (not sure which, but it doesn't matter). I guess an alternative to editing the include file would be to create an environment variable named OSTYPE and set it equal to 'console', but that seems a bit kludgy to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks again, Stan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 05:51:58 GMT</pubDate>
    <dc:creator>chicagomike</dc:creator>
    <dc:date>2013-09-24T05:51:58Z</dc:date>
    <item>
      <title>Odd / Irrelevant Linker Warnings in CW v10.4</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243006#M9426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a ColdFire project in CW v10.4. My target system is MCF51JF128, and I'm incorporating the FS USB Stack v4.1.1. My development platform is Windows 7.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that when I build, I get several linker warnings that look like this:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:/Freescale/CW MCU v10.4/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Warning&lt;/P&gt;&lt;P&gt;&amp;gt;Source file "D:\workspace\ColdFire\ColdFire_Build_Tools\ewl\EWL_C\src\mem.c" &lt;/P&gt;&lt;P&gt;&amp;gt;not found, cannot display source&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The odd thing here is that I don't have a D: drive, and none of my source files are called mem.c. Also, this doesn't seem to affect my output image at all.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to clear up these warnings? I see that this question was already asked by another forum member several weeks ago, but no one ever answered him, so I'm asking again.&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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Sep 2013 18:30:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243006#M9426</guid>
      <dc:creator>chicagomike</dc:creator>
      <dc:date>2013-09-20T18:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Odd / Irrelevant Linker Warnings in CW v10.4</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243007#M9427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems this is an absolute path reference located in the standard EWL library linked with your project. I'd suggest you to rebuild the libs to update the source file paths to reflect your CodeWarrior install directory.&lt;/P&gt;&lt;P&gt;See below the snippet from ColdFire Compiler manual ("c:\Freescale\CW MCU v10.4\MCU\Help\PDF\MCU_ColdFire_Compiler.pdf"):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to rebuild the EWL Libraries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The files (viz. libm.a, libc.a. ...etc.) are present in the ewl\lib folder under a sub-folder &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;v&amp;lt;x&amp;gt;, where &amp;lt;x&amp;gt; is a number indicating the coldfire architecture. If the architecture &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;supports PIC/PID then the library files for them will be present in a sub-folder (called pi) &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for that architecture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The process to rebuild the EWL library files is given below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE&lt;/P&gt;&lt;P&gt;The user should have access to a "make" utility within DOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt; Open a DOS command prompt.&lt;/LI&gt;&lt;LI&gt; Define the CWINSTALL environment variable ...&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;For example, if the you CWINSTALL is in the folder C:\Program Files\Freescale\CW &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;MCU v10.x then you can define CWINSTALL as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set CWINSTALL='C:/Program Files/Freescale/CW MCU V10.x/MCU'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE&lt;/P&gt;&lt;P&gt;The single quote character (') is important because there are&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;spaces in the path.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp; 3. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Change your working directory to the " ewl" folder, for example, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;cd C:\Program Files\Freescale\CW MCU v10.x\MCU\ColdFire_Support\ewl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;4. To clean the existing library files ... &amp;lt;path_to_make_utility&amp;gt;\make -f makefile clean&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You could skip the &amp;lt; path_to_make_utility&amp;gt; if you have " make" in your PATH variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 5. All the library files can be re-built using the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; make -s -f makefile PLATFORM=CF all cleanobj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The "PLATFORM=CF" indicates that EWL is being re-built for ColdFire.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; 6. After the make command is complete, check the lib folder and its sub-folders for the &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;presence of libm.a, libc.a, ...etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The EWL library files are rebuilt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 13:43:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243007#M9427</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2013-09-23T13:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Odd / Irrelevant Linker Warnings in CW v10.4</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243008#M9428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Success! That did the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Stan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ONE NOTE: In order to follow the procedure in the manual, I had to apply a small edit to one of the make include files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ColdFire_Support\ewl\make.os I had to change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ifeq ($(OSTYPE), console)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ifeq ($(OS), Windows_NT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on a Windows 7 box, but I would think that this would apply to any platform running the Win NT kernel. The problem is that there is no environment variable named OSTYPE, so the test in that line failed and caused make to assume that I was building in either Cygwin or Linux (not sure which, but it doesn't matter). I guess an alternative to editing the include file would be to create an environment variable named OSTYPE and set it equal to 'console', but that seems a bit kludgy to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks again, Stan!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 05:51:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Odd-Irrelevant-Linker-Warnings-in-CW-v10-4/m-p/243008#M9428</guid>
      <dc:creator>chicagomike</dc:creator>
      <dc:date>2013-09-24T05:51:58Z</dc:date>
    </item>
  </channel>
</rss>

