<?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>Kinetis Design Studio中的主题 Re: How print double with newlib-nano ?</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644121#M8375</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;Yes, your example meet my requirement.&lt;/P&gt;&lt;P&gt;I am using cortex m0+ and you seem test on cortex m4 (k22). Am I wrong ?&lt;/P&gt;&lt;P&gt;CM0+ doesn't have fpu, maybe something is wrong with link option ?&lt;/P&gt;&lt;P&gt;My link option are :&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -O3 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall&amp;nbsp; -g3 -T "../MKL46Z256xxx4_flash.ld" -Xlinker --gc-sections -Wl,-Map,"FreedomKL46Z.map" --specs=nano.specs -u _printf_float -specs=nosys.specs -Xlinker -z -Xlinker muldefs -o "FreedomKL46Z.elf" -Wl,--start-group&amp;nbsp; [*.o files] -lc -lgcc -Wl,--end-group -Lm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 09:20:34 GMT</pubDate>
    <dc:creator>jeremypont</dc:creator>
    <dc:date>2016-12-07T09:20:34Z</dc:date>
    <item>
      <title>How print double with newlib-nano ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644117#M8371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I try to print double max value (DBL_MAX) on uart and I have hardfault interrupt.&lt;/P&gt;&lt;P&gt;I use newlib-nano with flag -u _printf_float.&lt;/P&gt;&lt;P&gt;I have the same issue with standard libc.&lt;/P&gt;&lt;P&gt;If I&amp;nbsp; print "small" double, it works.&lt;/P&gt;&lt;P&gt;I use kds3.0 with gcc 4.8.&lt;/P&gt;&lt;P&gt;My targer is kl46z on freedom board.&lt;/P&gt;&lt;P&gt;Do you have any idea why it doesn't work ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 09:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644117#M8371</guid>
      <dc:creator>jeremypont</dc:creator>
      <dc:date>2016-12-02T09:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How print double with newlib-nano ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644118#M8372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;Could you please show your code for print, for sorry i don't know&lt;/P&gt;&lt;P&gt;what's the "double max value" and "small" double .&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>Tue, 06 Dec 2016 03:15:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644118#M8372</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-06T03:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How print double with newlib-nano ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644119#M8373</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;I try to print value with this line :&lt;/P&gt;&lt;P&gt;double doubleValue = DBL_MAX;&lt;/P&gt;&lt;P&gt;printf("doubleValue : %.16lE - %.16lf\n", doubleValue, doubleValue);&lt;/P&gt;&lt;P&gt;When I say "small" double, I mean doubleValue = 1.825 for example.&lt;/P&gt;&lt;P&gt;Double maximum value is DBL_MAX from float.h.&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 07:29:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644119#M8373</guid>
      <dc:creator>jeremypont</dc:creator>
      <dc:date>2016-12-06T07:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: How print double with newlib-nano ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644120#M8374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i do not know what do you want to do , i test on my side ,the result is that :&lt;/P&gt;&lt;P&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/16173i6AC09375FC6AB47C/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;Does it can meet your requirement ?&lt;/P&gt;&lt;P&gt;If not , please describe it to me what the result you want to .&lt;/P&gt;&lt;P&gt;If yes, i will tell you how to configure on KDS .&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>Wed, 07 Dec 2016 08:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644120#M8374</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-07T08:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How print double with newlib-nano ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644121#M8375</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;Yes, your example meet my requirement.&lt;/P&gt;&lt;P&gt;I am using cortex m0+ and you seem test on cortex m4 (k22). Am I wrong ?&lt;/P&gt;&lt;P&gt;CM0+ doesn't have fpu, maybe something is wrong with link option ?&lt;/P&gt;&lt;P&gt;My link option are :&lt;/P&gt;&lt;P&gt;arm-none-eabi-g++ -mcpu=cortex-m0plus -mthumb -O3 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall&amp;nbsp; -g3 -T "../MKL46Z256xxx4_flash.ld" -Xlinker --gc-sections -Wl,-Map,"FreedomKL46Z.map" --specs=nano.specs -u _printf_float -specs=nosys.specs -Xlinker -z -Xlinker muldefs -o "FreedomKL46Z.elf" -Wl,--start-group&amp;nbsp; [*.o files] -lc -lgcc -Wl,--end-group -Lm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:20:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644121#M8375</guid>
      <dc:creator>jeremypont</dc:creator>
      <dc:date>2016-12-07T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How print double with newlib-nano ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644122#M8376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;I also use the board of FRDM-KL46.&lt;/P&gt;&lt;P&gt;Please add &amp;nbsp; &amp;nbsp; -specs=rdimon.specs&amp;nbsp;&amp;nbsp; into linker flag :&lt;/P&gt;&lt;P&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/9677iDDC96784FE7B9CB1/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 also attached my project , you can test on your side .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice Yang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 04:08:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/How-print-double-with-newlib-nano/m-p/644122#M8376</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-12-08T04:08:58Z</dc:date>
    </item>
  </channel>
</rss>

