<?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: How to use Math Library in MQX KSDK in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431409#M2575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried as you show me,&lt;/P&gt;&lt;P&gt;But now it is shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Building target: K64_MQX_KSDK_Example.elf'&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -T C:\Freescale\KSDK_1.2.0\platform\devices\MK64F12\linker\gcc\MK64FN1M0xxx12_flash.ld -Xlinker --gc-sections -LC:\Freescale\KSDK_1.2.0\lib\ksdk_mqx_lib\kds\K64F12\debug -LC:\Freescale\KSDK_1.2.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx_stdlib -LC:\Freescale\KSDK_1.2.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx -Wl,-Map,"K64_MQX_KSDK_Example.map" -Xlinker --cref -Xlinker -static&amp;nbsp; -Xlinker -z -Xlinker muldefs&amp;nbsp; -Xlinker --undefined=__isr_vector&amp;nbsp; -Xlinker --defsym=__stack_size__=0x400&amp;nbsp; -Xlinker --defsym=__heap_size__=0x200 -o "K64_MQX_KSDK_Example.elf"&amp;nbsp; ./Sources/main.o&amp;nbsp; ./KSDK_Files/board.o ./KSDK_Files/gpio_pins.o ./KSDK_Files/pin_mux.o&amp;nbsp; ./Debug_Console/fsl_debug_console.o ./Debug_Console/fsl_misc_utilities.o ./Debug_Console/print_scan.o&amp;nbsp; ./BSP_Files/init_bsp.o ./BSP_Files/mqx_main.o&amp;nbsp; C:/Freescale/KSDK_1.2.0/lib/ksdk_mqx_lib/kds/K64F12/debug/libksdk_platform_mqx.a C:/Freescale/KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a C:/Freescale/KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a -lksdk_platform_mqx -l_mqx_stdlib -l_mqx -lgcc -lc -lsupc++ -lm -lnosys&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-signalr.o): In function `_kill_r':&lt;/P&gt;&lt;P&gt;signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-signalr.o): In function `_getpid_r':&lt;/P&gt;&lt;P&gt;signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-closer.o): In function `_close_r':&lt;/P&gt;&lt;P&gt;closer.c:(.text._close_r+0xc): undefined reference to `_close'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-fstatr.o): In function `_fstat_r':&lt;/P&gt;&lt;P&gt;fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-isattyr.o): In function `_isatty_r':&lt;/P&gt;&lt;P&gt;isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-lseekr.o): In function `_lseek_r':&lt;/P&gt;&lt;P&gt;lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [K64_MQX_KSDK_Example.elf] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Aug 2015 14:00:44 GMT</pubDate>
    <dc:creator>homarpizar</dc:creator>
    <dc:date>2015-08-29T14:00:44Z</dc:date>
    <item>
      <title>How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431399#M2565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I try to use any function of the Math.h using KDS MQX, when I compile it show me next error:&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="62793_62793.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120530i7E786E8F80341AC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="62793_62793.png" alt="62793_62793.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52417i1FB6947BCB4949AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I´d already included the &amp;lt;math.h&amp;gt; library.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone knows how can i solve this problem?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-339180"&gt;dac_adc_1.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2015 23:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431399#M2565</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-11T23:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431400#M2566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Homar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please, what do you try for the project? Can you upload it? Or can you send the part of code where you include the Math.h ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 14:21:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431400#M2566</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-08-12T14:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431401#M2567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Iva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure, I've already upload the project.&lt;/P&gt;&lt;P&gt;The problem occurs in the main.c at the line 314.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it could help, I based the project on the next article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103405"&gt;How To: Create a New MQX RTOS for KSDK Project in KDS&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Omar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 19:41:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431401#M2567</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-12T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431402#M2568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Homar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m sorry for my late response. Please, can you try CMSIS library?&lt;/P&gt;&lt;P&gt;Math library is optimized for the M4 core and uses M4 core instructions.&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2013/02/14/tutorial-using-the-arm-cmsis-library/" title="http://mcuoneclipse.com/2013/02/14/tutorial-using-the-arm-cmsis-library/"&gt;Tutorial: Using the ARM CMSIS Library | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know, if it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:44:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431402#M2568</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-08-20T19:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431403#M2569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Iva.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just watch something weird, when I use any function of &amp;lt;math.h&amp;gt; if I use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sqrt(100); &lt;/P&gt;&lt;P&gt;Everything it´s OK, the project runs normally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I use: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable=100;&lt;/P&gt;&lt;P&gt;root= sqrt(variable);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project doesn't runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regarts.&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 23:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431403#M2569</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-27T23:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431404#M2570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;have you included math.h with&lt;/P&gt;&lt;P&gt;#include &amp;lt;math.h&amp;gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;And if you compile your code, there are no compiler warnings?&lt;/P&gt;&lt;P&gt;And what does mean "the project doesn't run" exactly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 04:52:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431404#M2570</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-08-28T04:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431405#M2571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I included math.h with &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;#include &amp;lt;math.h&amp;gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Despite that, if I use any math function like this:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;variable=100;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;root= sqrt(variable);&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;When I compile, it appears:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54146iE2605577A32A5B1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But if I want to use constants as parameter or when the parameter it´s declared as " #define PARAM 100", like this:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sqrt(100);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;or &lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;#define PARAM 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;sqrt(PARAM);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P&gt;And then I compile, no errors or warnings appearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done each step following this: &lt;A href="https://community.nxp.com/docs/DOC-103405"&gt;How To: Create a New MQX RTOS for KSDK Project in KDS&lt;/A&gt;&amp;nbsp; and I´m using the FRDM-K64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can help me.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 05:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431405#M2571</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-28T05:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431406#M2572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;can you share what is shown in the Console view (build output)?&lt;/P&gt;&lt;P&gt;The console view shows more details than the Problems view.&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, 29 Aug 2015 05:18:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431406#M2572</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-08-29T05:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431407#M2573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Erich,&lt;/P&gt;&lt;P&gt;Here is the result of the console view:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Building target: K64_MQX_KSDK_Example.elf'&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -T C:\Freescale\KSDK_1.2.0\platform\devices\MK64F12\linker\gcc\MK64FN1M0xxx12_flash.ld -nostartfiles -nodefaultlibs -Xlinker --gc-sections -LC:\Freescale\KSDK_1.2.0\lib\ksdk_mqx_lib\kds\K64F12\debug -LC:\Freescale\KSDK_1.2.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx_stdlib -LC:\Freescale\KSDK_1.2.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx -Wl,-Map,"K64_MQX_KSDK_Example.map" -Xlinker --cref -Xlinker -static&amp;nbsp; -Xlinker -z -Xlinker muldefs&amp;nbsp; -Xlinker --undefined=__isr_vector&amp;nbsp; -Xlinker --defsym=__stack_size__=0x400&amp;nbsp; -Xlinker --defsym=__heap_size__=0x200 -o "K64_MQX_KSDK_Example.elf"&amp;nbsp; ./Sources/LED_RGB.o ./Sources/fsl_pit_irq.o ./Sources/main.o ./Sources/pdb_trigger.o&amp;nbsp; ./KSDK_Files/board.o ./KSDK_Files/gpio_pins.o ./KSDK_Files/pin_mux.o&amp;nbsp; ./Debug_Console/fsl_debug_console.o ./Debug_Console/fsl_misc_utilities.o ./Debug_Console/print_scan.o&amp;nbsp; ./BSP_Files/init_bsp.o ./BSP_Files/mqx_main.o&amp;nbsp; C:/Freescale/KSDK_1.2.0/lib/ksdk_mqx_lib/kds/K64F12/debug/libksdk_platform_mqx.a C:/Freescale/KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a C:/Freescale/KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a -lksdk_platform_mqx -l_mqx_stdlib -l_mqx -lgcc -lc -lsupc++ -lm -lnosys&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libm.a(lib_a-w_sqrt.o): In function `sqrt':&lt;/P&gt;&lt;P&gt;w_sqrt.c:(.text.sqrt+0x40): undefined reference to `__aeabi_dcmplt'&lt;/P&gt;&lt;P&gt;w_sqrt.c:(.text.sqrt+0x92): undefined reference to `__aeabi_ddiv'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libm.a(lib_a-e_sqrt.o): In function `__ieee754_sqrt':&lt;/P&gt;&lt;P&gt;e_sqrt.c:(.text.__ieee754_sqrt+0x156): undefined reference to `__aeabi_dmul'&lt;/P&gt;&lt;P&gt;e_sqrt.c:(.text.__ieee754_sqrt+0x15e): undefined reference to `__aeabi_dadd'&lt;/P&gt;&lt;P&gt;e_sqrt.c:(.text.__ieee754_sqrt+0x182): undefined reference to `__aeabi_dsub'&lt;/P&gt;&lt;P&gt;e_sqrt.c:(.text.__ieee754_sqrt+0x18a): undefined reference to `__aeabi_ddiv'&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [K64_MQX_KSDK_Example.elf] Error 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 05:46:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431407#M2573</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-29T05:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431408#M2574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a problem of your linker settings. You have both -nostartfiles and -nodefaultlibs enabled, so the linker does not link with the standard libraries (which include the math functions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22137i7C11EF9CC8B51377/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 08:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431408#M2574</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-08-29T08:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431409#M2575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried as you show me,&lt;/P&gt;&lt;P&gt;But now it is shown:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Building target: K64_MQX_KSDK_Example.elf'&lt;/P&gt;&lt;P&gt;'Invoking: Cross ARM C++ Linker'&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections&amp;nbsp; -g3 -T C:\Freescale\KSDK_1.2.0\platform\devices\MK64F12\linker\gcc\MK64FN1M0xxx12_flash.ld -Xlinker --gc-sections -LC:\Freescale\KSDK_1.2.0\lib\ksdk_mqx_lib\kds\K64F12\debug -LC:\Freescale\KSDK_1.2.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx_stdlib -LC:\Freescale\KSDK_1.2.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx -Wl,-Map,"K64_MQX_KSDK_Example.map" -Xlinker --cref -Xlinker -static&amp;nbsp; -Xlinker -z -Xlinker muldefs&amp;nbsp; -Xlinker --undefined=__isr_vector&amp;nbsp; -Xlinker --defsym=__stack_size__=0x400&amp;nbsp; -Xlinker --defsym=__heap_size__=0x200 -o "K64_MQX_KSDK_Example.elf"&amp;nbsp; ./Sources/main.o&amp;nbsp; ./KSDK_Files/board.o ./KSDK_Files/gpio_pins.o ./KSDK_Files/pin_mux.o&amp;nbsp; ./Debug_Console/fsl_debug_console.o ./Debug_Console/fsl_misc_utilities.o ./Debug_Console/print_scan.o&amp;nbsp; ./BSP_Files/init_bsp.o ./BSP_Files/mqx_main.o&amp;nbsp; C:/Freescale/KSDK_1.2.0/lib/ksdk_mqx_lib/kds/K64F12/debug/libksdk_platform_mqx.a C:/Freescale/KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx_stdlib/lib_mqx_stdlib.a C:/Freescale/KSDK_1.2.0/rtos/mqx/lib/frdmk64f.kds/debug/mqx/lib_mqx.a -lksdk_platform_mqx -l_mqx_stdlib -l_mqx -lgcc -lc -lsupc++ -lm -lnosys&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-signalr.o): In function `_kill_r':&lt;/P&gt;&lt;P&gt;signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-signalr.o): In function `_getpid_r':&lt;/P&gt;&lt;P&gt;signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-closer.o): In function `_close_r':&lt;/P&gt;&lt;P&gt;closer.c:(.text._close_r+0xc): undefined reference to `_close'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-fstatr.o): In function `_fstat_r':&lt;/P&gt;&lt;P&gt;fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-isattyr.o): In function `_isatty_r':&lt;/P&gt;&lt;P&gt;isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'&lt;/P&gt;&lt;P&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m/fpu\libc.a(lib_a-lseekr.o): In function `_lseek_r':&lt;/P&gt;&lt;P&gt;lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'&lt;/P&gt;&lt;P&gt;collect2.exe: error: ld returned 1 exit status&lt;/P&gt;&lt;P&gt;make: *** [K64_MQX_KSDK_Example.elf] Error 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 14:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431409#M2575</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-29T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431410#M2576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that this MQX project somehow has additional dependency e.g. on some I/O functions.&lt;/P&gt;&lt;P&gt;I see you have&lt;/P&gt;&lt;P&gt;-lnosys&lt;/P&gt;&lt;P&gt;in your linker flags: try to remove that option and instead link with the system library?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Aug 2015 19:55:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431410#M2576</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-08-30T19:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Math Library in MQX KSDK</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431411#M2577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I removed nosys from the Cross ARM C++ Linker Libraries, but I don´t know how to link with the system library.&lt;/P&gt;&lt;P&gt;Can you help me, please?&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 22:01:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-Math-Library-in-MQX-KSDK/m-p/431411#M2577</guid>
      <dc:creator>homarpizar</dc:creator>
      <dc:date>2015-08-31T22:01:09Z</dc:date>
    </item>
  </channel>
</rss>

