<?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: .elf error in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428747#M3663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Please show the detail error in "Console" window .&lt;/P&gt;&lt;P&gt;(2)&amp;nbsp; Please tell me Your KDS version , and the chip part number .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 01:14:41 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2015-06-05T01:14:41Z</dc:date>
    <item>
      <title>.elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428746#M3662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After adding and removing a WAIT component in my project, I rebuilt and got an .elf error. Here is the complete error message:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;make: *** [Ultrasonic Flow Sensor.elf] Error 1&lt;/P&gt;&lt;P&gt;Location: line 0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's odd because this is literally all of the information that KDS gives me. &lt;/P&gt;&lt;P&gt;How can I fix this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428746#M3662</guid>
      <dc:creator>kevynschwab</dc:creator>
      <dc:date>2015-06-04T12:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: .elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428747#M3663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kevyn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) Please show the detail error in "Console" window .&lt;/P&gt;&lt;P&gt;(2)&amp;nbsp; Please tell me Your KDS version , and the chip part number .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 01:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428747#M3663</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-06-05T01:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: .elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428748#M3664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for responding to me. The error message is accompanied by very little information. Here is what the console contains upon building my project:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;08:55:42 **** Incremental Build of configuration Debug for project Ultrasonic Flow Sensor ****&lt;/P&gt;&lt;P&gt;make all&lt;/P&gt;&lt;P&gt;'Building target: Ultrasonic Flow Sensor.elf'&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -T "C:/Users/kschwab/workspace.kds/Ultrasonic Flow Sensor/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:/Users/kschwab/workspace.kds/Ultrasonic Flow Sensor/Project_Settings/Linker_Files" -Wl,-Map,"Ultrasonic Flow Sensor.map" -nanolibc -o "Ultrasonic Flow Sensor.elf"  ./Sources/Events.o ./Sources/Scheduler.o ./Sources/SpiCommunication.o ./Sources/UartCommunication.o ./Sources/main.o ./Sources/myMain.o  ./Project_Settings/Startup_Code/startup.o  ./Generated_Code/AS1.o ./Generated_Code/ASerialLdd1.o ./Generated_Code/BitIoLdd1.o ./Generated_Code/BitIoLdd2.o ./Generated_Code/BitIoLdd3.o ./Generated_Code/BitIoLdd4.o ./Generated_Code/BitIoLdd5.o ./Generated_Code/BluLedDout.o ./Generated_Code/Cpu.o ./Generated_Code/GrnLedDout.o ./Generated_Code/Maxim_pullUpResistor.o ./Generated_Code/PE_LDD.o ./Generated_Code/RedLedDout.o ./Generated_Code/RtiTimer.o ./Generated_Code/SInt.o ./Generated_Code/SM1.o ./Generated_Code/SMasterLdd1.o ./Generated_Code/SlaveSelect.o ./Generated_Code/TU1.o ./Generated_Code/TimerIntLdd1.o ./Generated_Code/Vectors.o&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++: error: unrecognized command line option '-nanolibc'&lt;/P&gt;&lt;P&gt;make: ***  Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;08:55:45 Build Finished (took 2s.714ms)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is not a description of the error, only the Error 1 identification. I am using KDS to debug my code on a KL25Z-128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevyn Schwab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 13:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428748#M3664</guid>
      <dc:creator>kevynschwab</dc:creator>
      <dc:date>2015-06-05T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: .elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428749#M3665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;gt; arm-none-eabi-g++: error: unrecognized command line option '-nanolibc'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The -nanolibc option is only supported by KDS2. In KDS3 you need to use -specs=nano.specs instead. This will be in the linker settings of the project properties. You can also use the KDS upgrade assistant to help make the necessary changes, it's in the Project menu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="https://community.nxp.com/docs/DOC-103698"&gt;Kinetis Design Studio: Migrating KDS V2.0.0 Projects to GNU Tools for ARM Embedded (Launchpad, KDS V3.0.0)&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 08:46:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428749#M3665</guid>
      <dc:creator>joeseymour</dc:creator>
      <dc:date>2015-06-08T08:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: .elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428750#M3666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I utilized the Upgrade Assistant as Joe advised, and it did remove the ‘-nanolibc’ error. However, I am still getting the same ***  Error 1. My console now looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;07:36:04 **** Incremental Build of configuration Debug for project Ultrasonic Flow Sensor ****&lt;/P&gt;&lt;P&gt;make all&lt;/P&gt;&lt;P&gt;'Building target: Ultrasonic Flow Sensor.elf'&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections  -g3 -T "C:/Users/kschwab/workspace.kds/Ultrasonic Flow Sensor/Project_Settings/Linker_Files/ProcessorExpert.ld" -Xlinker --gc-sections -L"C:/Users/kschwab/workspace.kds/Ultrasonic Flow Sensor/Project_Settings/Linker_Files" -Wl,-Map,"Ultrasonic Flow Sensor.map" --specs=nano.specs -specs=nano.specs -specs=nosys.specs -o "Ultrasonic Flow Sensor.elf"  ./Sources/Events.o ./Sources/Scheduler.o ./Sources/SpiCommunication.o ./Sources/UartCommunication.o ./Sources/exit.o ./Sources/main.o ./Sources/myMain.o  ./Project_Settings/Startup_Code/startup.o  ./Generated_Code/AS1.o ./Generated_Code/ASerialLdd1.o ./Generated_Code/BitIoLdd1.o ./Generated_Code/BitIoLdd2.o ./Generated_Code/BitIoLdd3.o ./Generated_Code/BitIoLdd4.o ./Generated_Code/BitIoLdd5.o ./Generated_Code/BluLedDout.o ./Generated_Code/Cpu.o ./Generated_Code/GrnLedDout.o ./Generated_Code/Maxim_pullUpResistor.o ./Generated_Code/PE_LDD.o ./Generated_Code/RedLedDout.o ./Generated_Code/RtiTimer.o ./Generated_Code/SInt.o ./Generated_Code/SM1.o ./Generated_Code/SMasterLdd1.o ./Generated_Code/SlaveSelect.o ./Generated_Code/TU1.o ./Generated_Code/TimerIntLdd1.o ./Generated_Code/Vectors.o&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++: fatal error: c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/nano.specs: attempt to rename spec 'link' to already defined spec 'nano_link'&lt;/P&gt;&lt;P&gt;compilation terminated.&lt;/P&gt;&lt;P&gt;make: ***  Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;07:36:06 Build Finished (took 1s.55ms)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I notice that there is a fatal error for arm-none-eabi-g++;  attempt to rename spec ‘link’ to already defined spec ‘nano_link’.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your help, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 12:45:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428750#M3666</guid>
      <dc:creator>kevynschwab</dc:creator>
      <dc:date>2015-06-08T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: .elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428751#M3667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because you have specified nano.specs twice: "--specs=nano.specs -specs=nano.specs" in you command line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you ticked the "Use newlib-nano" checkbox as well as putting "-specs=nano.specs" in the Other linker options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that there is a bug in the current version of KSDK Eclipse plugin where it will re-insert "-specs=nano.specs" in the Other linker options section whenever you generate the Processor Expert code. So you should avoid the checkbox.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 15:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428751#M3667</guid>
      <dc:creator>jamiepacker</dc:creator>
      <dc:date>2015-06-08T15:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: .elf error</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428752#M3668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure enough, that did the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I un-checked the “Use newlib-nano” box and left “-specs=nano.specs -specs=nosys.specs” in the “Other linker flags” text box under Properties\C/C++ Build\Settings\Tool Settings\Cross ARM C++ Linker\Miscellaneous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:26:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/elf-error/m-p/428752#M3668</guid>
      <dc:creator>kevynschwab</dc:creator>
      <dc:date>2015-06-08T16:26:41Z</dc:date>
    </item>
  </channel>
</rss>

