<?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: Which library is required for using KL devices? in Kinetis Design Studio</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308625#M119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select Cortex-m0plus (rather than Cortex-m4) the following functions are missing at the moment:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__aeabi_uidiv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__aeabi_idiv&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;__gnu_thumb1_case_uqi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__gnu_thumb1_case_uhi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't yet see where libraries are being linked and also I haven't been able to locate the libary files themselves in the package.&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;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 15:01:01 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2014-05-02T15:01:01Z</dc:date>
    <item>
      <title>Which library is required for using KL devices?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308623#M117</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 notice that K devices build without there being any libraries specified but KL devices doen't - there are missing low-level calls required by the compiler.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using CW10.5 I found that KL devices needed the library "&lt;STRONG&gt;${MCUToolsBaseDir}/ARM_GCC_Support/ewl/lib/armv6-m&lt;/STRONG&gt;"&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;What is suitable in the KDS environment?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 06:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308623#M117</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-05-02T06:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Which library is required for using KL devices?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308624#M118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;The GNU ARM Embedded toolchain in CodeWarrior is different from the one used in KDS.&lt;/P&gt;&lt;P&gt;The CodeWarrior 'ewl' library is a CodeWarrior (Embedded Warrior Library) specific one. KDS is using open source libraries instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which low level calls are you missing? The GNU toolchain in KDS automatically links with the newlib. You can change this to the newlib-nano with using the -nanolibc linker option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 08:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308624#M118</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-05-02T08:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Which library is required for using KL devices?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308625#M119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I select Cortex-m0plus (rather than Cortex-m4) the following functions are missing at the moment:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__aeabi_uidiv&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__aeabi_idiv&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;__gnu_thumb1_case_uqi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;__gnu_thumb1_case_uhi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't yet see where libraries are being linked and also I haven't been able to locate the libary files themselves in the package.&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;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 15:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308625#M119</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-05-02T15:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Which library is required for using KL devices?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308626#M120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;I'm using cortex-m0plus too, and do not see any missing functions:&lt;/P&gt;&lt;P&gt;make all&lt;/P&gt;&lt;P&gt;'Building target: FRDM-KL25Z_bare.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&amp;nbsp; -g3 -T "LinkerFile.ld" -Xlinker --gc-sections -L"C:/tmp/wsp_KDS_v1.0.1/FRDM-KL25Z_bare/Project_Settings/Linker_Files" -Wl,-Map,"FRDM-KL25Z_bare.map" -nanolibc -o "FRDM-KL25Z_bare.elf"&amp;nbsp; ./Sources/cfmconfig.o ./Sources/main.o&amp;nbsp; ./Project_Settings/Startup_Code/Vectors.o ./Project_Settings/Startup_Code/startup.o&lt;/P&gt;&lt;P&gt;'Finished building target: FRDM-KL25Z_bare.elf'&lt;/P&gt;&lt;P&gt;' '&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM GNU Print Size'&lt;/P&gt;&lt;P&gt;arm-none-eabi-size --format=berkeley "FRDM-KL25Z_bare.elf"&lt;/P&gt;&lt;P&gt;&amp;nbsp; text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bss&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dec&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hex&amp;nbsp;&amp;nbsp;&amp;nbsp; filename&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1136&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2568&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a08&amp;nbsp;&amp;nbsp;&amp;nbsp; FRDM-KL25Z_bare.elf&lt;/P&gt;&lt;P&gt;'Finished building: FRDM-KL25Z_bare.siz'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my program is using __udivsi3 and __divsi3.&lt;/P&gt;&lt;P&gt;So it looks to me that you are linking with libraries which have been built with differernt settings or with a different compiler?&lt;/P&gt;&lt;P&gt;The thing is that KDS is *not* using the launchpad GNU ARM gcc, but a GNU ARM gcc.&lt;/P&gt;&lt;P&gt;It looks like you need a launpad GNU ARM toolchain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my project attached as a reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 07:45:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308626#M120</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-05-03T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Which library is required for using KL devices?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308627#M121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich&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;I found that I can built for the Cortex M4 without using default libraries (-nostdlib) but I need to enable default libraries for the Cortex M0plus (just use -nostartfiles).&lt;/P&gt;&lt;P&gt;Therefore when I use this setting it then works form both core types and there doesn't look to be any side-effects for the Cortex-4 sinc ethe generated coded is the same.&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;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 14:35:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Which-library-is-required-for-using-KL-devices/m-p/308627#M121</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-05-03T14:35:09Z</dc:date>
    </item>
  </channel>
</rss>

