<?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: sprintf with float specifier - how to make it work? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521621#M32753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is crashing: can you increase the heap and stack size? printf() uses more stack and potentially heap memory (depending on the library).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2020 15:18:57 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2020-07-15T15:18:57Z</dc:date>
    <item>
      <title>sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521617#M32749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using KDS 3.2.0 with the MKE02Z64VLC4 processor and need to use the sprintf/snprintf functions with the float specifier %f.&amp;nbsp; However, it will not work.&amp;nbsp; It shows nothing.&amp;nbsp; I some other posts that have work-around suggestions and various things to try.&amp;nbsp; I just want to know what is the correct/recommended way of enabling sprintf/snprintf to use floating point data types for the format specifier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 14:35:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521617#M32749</guid>
      <dc:creator>blsousan</dc:creator>
      <dc:date>2016-06-15T14:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521618#M32750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;have you added&lt;/P&gt;&lt;P&gt;-u _printf_float&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;See &lt;A href="https://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/" title="https://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/"&gt;https://mcuoneclipse.com/2014/07/11/printf-and-scanf-with-gnu-arm-libraries/&lt;/A&gt;&lt;/P&gt;&lt;P&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>Wed, 15 Jun 2016 14:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521618#M32750</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2016-06-15T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521619#M32751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked - but I had to add it as (add the equal sign):&lt;/P&gt;&lt;P&gt;-u=_printf_float&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then select the checkbox in the linker options to adding support for float in printf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:44:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521619#M32751</guid>
      <dc:creator>blsousan</dc:creator>
      <dc:date>2016-06-15T19:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521620#M32752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also having this problem, my program crashes on the first sprintf that uses a double argument.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked the box "Use float with nano printf(-u _printf_float)", and it behaves the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MK61FN1M0VMJ12 on KDS 3.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is after the program working great with no issues on Codewarrior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am in the same boat as others, running out of ideas to fix this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 13:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521620#M32752</guid>
      <dc:creator>williamcarlisle</dc:creator>
      <dc:date>2020-07-15T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521621#M32753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it is crashing: can you increase the heap and stack size? printf() uses more stack and potentially heap memory (depending on the library).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:18:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521621#M32753</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-07-15T15:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521622#M32754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having trouble finding a define for the heap, I used this thread for assistance. &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/04/17/changing-heap-and-stack-size-for-nxp-kinetis-sdk-v2-0-gcc-projects/" title="https://mcuoneclipse.com/2016/04/17/changing-heap-and-stack-size-for-nxp-kinetis-sdk-v2-0-gcc-projects/"&gt;Changing Heap and Stack Size for NXP Kinetis SDK V2.0 gcc Projects | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The linker file has nothing mentioning the heap.&lt;/P&gt;&lt;P&gt;Using the MQX Stack Usage view in KDS, it appears that none of my tasks are running over. This is pretty quick upon startup, so there are only a few tasks running at the point it crashes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 15:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521622#M32754</guid>
      <dc:creator>williamcarlisle</dc:creator>
      <dc:date>2020-07-27T15:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521623#M32755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Some more info - This is what shows in the console when the system crashes on the sprintf with a float.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BusFault: An imprecise (asynchronous) data access error has occurred. &lt;BR /&gt;HardFault: A fault has been escalated to a hard fault.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 17:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/521623#M32755</guid>
      <dc:creator>williamcarlisle</dc:creator>
      <dc:date>2020-07-27T17:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: sprintf with float specifier - how to make it work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/1156528#M58203</link>
      <description>&lt;P&gt;This is still not working for me, and after an exhaustive search I have found no solution to get this working.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 21:51:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/sprintf-with-float-specifier-how-to-make-it-work/m-p/1156528#M58203</guid>
      <dc:creator>williamcarlisle</dc:creator>
      <dc:date>2020-09-21T21:51:10Z</dc:date>
    </item>
  </channel>
</rss>

