<?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 Unable to sprintf float value with redlib(semihost-nf) in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046401#M5604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to sprintf a float value with redlib(semihost-nf). What i've done:&lt;/P&gt;&lt;P&gt;- set&amp;nbsp;&lt;STRONG&gt;PRINTF_FLOAT_ENABLE=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- set&amp;nbsp;&lt;STRONG&gt;SCANF_FLOAT_ENABLE=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- removed&amp;nbsp;&lt;STRONG&gt;CR_INTEGER_PRINTF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example code:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;char text_buffer[64]&lt;/P&gt;&lt;P&gt;snprintf(text_buffer, sizeof(text_buffer), "declination: %.2f\r\n" , 5.25);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what else might be wrong?&lt;/P&gt;&lt;P&gt;It's working on newlib(semihost) but semihosting on that lib is just too slow and i would rather to stay on redlib.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 14:45:36 GMT</pubDate>
    <dc:creator>akimata</dc:creator>
    <dc:date>2020-06-30T14:45:36Z</dc:date>
    <item>
      <title>Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046401#M5604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to sprintf a float value with redlib(semihost-nf). What i've done:&lt;/P&gt;&lt;P&gt;- set&amp;nbsp;&lt;STRONG&gt;PRINTF_FLOAT_ENABLE=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- set&amp;nbsp;&lt;STRONG&gt;SCANF_FLOAT_ENABLE=1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- removed&amp;nbsp;&lt;STRONG&gt;CR_INTEGER_PRINTF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example code:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;char text_buffer[64]&lt;/P&gt;&lt;P&gt;snprintf(text_buffer, sizeof(text_buffer), "declination: %.2f\r\n" , 5.25);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what else might be wrong?&lt;/P&gt;&lt;P&gt;It's working on newlib(semihost) but semihosting on that lib is just too slow and i would rather to stay on redlib.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046401#M5604</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2020-06-30T14:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046402#M5605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;choose a different redlib library. nf means 'no-float'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 14:51:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046402#M5605</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-30T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046403#M5606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried also redlib(semihost) and redlib(semihost-mb) and noone of them works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 15:09:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046403#M5606</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2020-06-30T15:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046404#M5607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is what I have:&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/114216iEAEADFB4BF8039F7/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;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114217iB24369B9C7693BED/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/114218i3058E84CBC1E9EBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 15:39:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046404#M5607</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-30T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046405#M5608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what i got in the settings. The weirdest part is that i created new project and it's working just fine there, but i cannot get it to work on my project so i just generated whole new project and copied files there and problem solved!. Still have no clue why didn't it work on my last project tho.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 17:11:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046405#M5608</guid>
      <dc:creator>akimata</dc:creator>
      <dc:date>2020-06-30T17:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046406#M5609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;correction: nf means no-files (not no-float)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046406#M5609</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-30T18:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046407#M5610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could it be that you changed something in the linker settings? I would compare those.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:23:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046407#M5610</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-06-30T18:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046408#M5611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to remove CR_INTEGER_PRINTF in Preprocessor configuration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:48:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1046408#M5611</guid>
      <dc:creator>zhiqunhu</dc:creator>
      <dc:date>2020-06-30T18:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to sprintf float value with redlib(semihost-nf)</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1926767#M9961</link>
      <description>&lt;P&gt;I had the same problem and i solved it after correcting the preprocess&amp;nbsp; symbol:&lt;/P&gt;&lt;P&gt;CR_INTEGER_PRINTF&amp;nbsp; to _CR_INTEGER_PRINTF.&lt;/P&gt;&lt;P&gt;(was missing the preceding underscore)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 23:43:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Unable-to-sprintf-float-value-with-redlib-semihost-nf/m-p/1926767#M9961</guid>
      <dc:creator>georgeliolidis</dc:creator>
      <dc:date>2024-08-06T23:43:27Z</dc:date>
    </item>
  </channel>
</rss>

