<?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 Lpc1769 software floating point unit (FPU) - ( for printf family) in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc1769-software-floating-point-unit-FPU-for-printf-family/m-p/946932#M37664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;I use gnu arm on eclipse ( lpc1769 m3 cortex ). I want to convert float value to string with sprintf but it doesnt work.&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;I add -u_printf_float to linker option but it is didnt work because m3 cortex has not hard FPU.&amp;nbsp; Therefore i add&amp;nbsp;&lt;SPAN style="color: #686c6e; background-color: rgba(0, 0, 0, 0.075);"&gt;-mfloat-abi=soft&lt;/SPAN&gt; to linker option for use software FPU but it doesnt work. How can i solve this problem.&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;int&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; main&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #f0f0f0; border: 0px; margin: 0px 0px 0.8em; padding: 10px;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;    &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;InitBoard&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;         &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;float&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; flt &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;1.1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;char&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; msg&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;256&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;];&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        sprintf&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;msg &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"number is %.3f "&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; flt&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;while&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;){&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;             KC_UART_sendstring&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;LPC_UART0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; msg&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;             delay_ms&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;500&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2019 18:40:46 GMT</pubDate>
    <dc:creator>ramazan_kurban3</dc:creator>
    <dc:date>2019-07-19T18:40:46Z</dc:date>
    <item>
      <title>Lpc1769 software floating point unit (FPU) - ( for printf family)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc1769-software-floating-point-unit-FPU-for-printf-family/m-p/946932#M37664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;I use gnu arm on eclipse ( lpc1769 m3 cortex ). I want to convert float value to string with sprintf but it doesnt work.&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;I add -u_printf_float to linker option but it is didnt work because m3 cortex has not hard FPU.&amp;nbsp; Therefore i add&amp;nbsp;&lt;SPAN style="color: #686c6e; background-color: rgba(0, 0, 0, 0.075);"&gt;-mfloat-abi=soft&lt;/SPAN&gt; to linker option for use software FPU but it doesnt work. How can i solve this problem.&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;/P&gt;&lt;P style="color: #0c0d0e; background-color: #ffffff; border: 0px; margin: 0px 0px 0.8em;"&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;int&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; main&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;void&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #f0f0f0; border: 0px; margin: 0px 0px 0.8em; padding: 10px;"&gt;&lt;CODE style="background-color: #f0f0f0; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;    &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;InitBoard&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;();&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;         &lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px;"&gt;float&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; flt &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;1.1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;char&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; msg&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;[&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;256&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;];&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        sprintf&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;msg &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;"number is %.3f "&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; flt&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px;"&gt;while&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;){&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;             KC_UART_sendstring&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;LPC_UART0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt; msg&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;             delay_ms&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px;"&gt;500&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;        &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px;"&gt;}&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:40:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc1769-software-floating-point-unit-FPU-for-printf-family/m-p/946932#M37664</guid>
      <dc:creator>ramazan_kurban3</dc:creator>
      <dc:date>2019-07-19T18:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc1769 software floating point unit (FPU) - ( for printf family)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc1769-software-floating-point-unit-FPU-for-printf-family/m-p/946933#M37665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="344981" data-username="ramazan.kurban3@gmail.com" href="https://community.nxp.com/people/ramazan.kurban3@gmail.com"&gt;Ramazan Kurban&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please show what's the data inside msg[] when it doesn't work。&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I test on MCUXpresso IDE (it based on Eclipse), it seems can work well:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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/86166iDB18D950D1F3B745/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2019 06:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc1769-software-floating-point-unit-FPU-for-printf-family/m-p/946933#M37665</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2019-07-29T06:37:52Z</dc:date>
    </item>
  </channel>
</rss>

