<?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>LPC MicrocontrollersのトピックEnabling floating point emulation in gcc-arm-none-eabi</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889944#M35660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on LPC-1768 and using&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;arm-none-eabi-gcc&amp;nbsp;version 6.3.1 20170620 (15:6.3.1+svn253039-1build1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Makefile with following compiler and linker options:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;CFLAGS   &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;W &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;Wall&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;O0 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;std&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;gnu99 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;fgnu89&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;inline&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;mcpu&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;cortex&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;m3 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;mthumb &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;msoft&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;float
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;CFLAGS  &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;+=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;ffunction&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;sections &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;fdata&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;sections &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;mfloat&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;abi&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;soft &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _printf_float &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _scanf_float
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;LDFLAGS  &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;nostartfiles &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;rdimon&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;nano&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;lc &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;lrdimon &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _printf_float &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _scanf_float&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have written a code in which I am typecasting float to long int, but the firmware is going into Hardfault Hander.&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;long&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; var_tempNumber_u32&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;double&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; var_floatNumber_f32&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;var_tempNumber_u32 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;long&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;var_floatNumber_f32&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I installed a custom hard-fault handler to get the stack trace and I found out that my firmware is crashing after returning from __aeabi_d2uiz function.&lt;/P&gt;&lt;P&gt;Contents of ARM registers at the time of Hard Fault:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x81
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x43C0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r2&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0xC000
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r3&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x1
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r12&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x0000000000
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;LR&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0xBB1B
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;PC&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x884A&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The disassembly of the function where LR is pointing is:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;0000baf0 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxFloatNumber&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    baf0&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   b590        push    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lr&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    baf2&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   b085        sub sp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;
    baf4&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   af00        add r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
    baf6&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9c7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   strd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bafa&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   205a        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;90&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x5a&lt;/SPAN&gt;
    bafc&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcc8   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb00&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;2058&lt;/SPAN&gt;        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;88&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x58&lt;/SPAN&gt;
    bb02&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcc5   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb06&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   200d        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;13&lt;/SPAN&gt;
    bb08&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcc2   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb0c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   200a        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;
    bb0e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcbf   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb12&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   ldrd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb16&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc fce5   bl  &lt;SPAN class="number token"&gt;84e4&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_d2uiz&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb1a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb1c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   60fb        str r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb1e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;21ff&lt;/SPAN&gt;        movs    r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;255&lt;/SPAN&gt;    &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xff&lt;/SPAN&gt;
    bb20&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   68f8        ldr r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb22&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7ff ff5d   bl  b9e0 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxDecimalNumber&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb26&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   202e        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;46&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x2e&lt;/SPAN&gt;
    bb28&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7ff febc   bl  b8a4 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;uart3_tx_byte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb2c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   68f8        ldr r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb2e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc f91f   bl  7d70 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_ui2d&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb32&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb34&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   460c        mov r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1
    bb36&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   461a        mov r2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r3
    bb38&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4623&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4
    bb3a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   ldrd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb3e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fb ff8d   bl  7a5c &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_dsub&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb42&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb44&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   460c        mov r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1
    bb46&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9c7 &lt;SPAN class="number token"&gt;3400&lt;/SPAN&gt;   strd    r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb4a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   a30b        add r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;44&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;adr r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bb78 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxFloatNumber&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x88&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    bb4c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d3 &lt;SPAN class="number token"&gt;2300&lt;/SPAN&gt;   ldrd    r2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r3&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb50&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   ldrd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb54&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc f98c   bl  &lt;SPAN class="number token"&gt;7e70&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_dmul&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb58&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb5a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   460c        mov r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1
    bb5c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4618&lt;/SPAN&gt;        mov r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r3
    bb5e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4621&lt;/SPAN&gt;        mov r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4
    bb60&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc fcc0   bl  &lt;SPAN class="number token"&gt;84e4&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_d2uiz&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb64&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb66&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   60fb        str r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb68&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;21ff&lt;/SPAN&gt;        movs    r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;255&lt;/SPAN&gt;    &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xff&lt;/SPAN&gt;
    bb6a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   68f8        ldr r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb6c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7ff ff38   bl  b9e0 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxDecimalNumber&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb70&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   bf00        nop
    bb72&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;3714&lt;/SPAN&gt;        adds    r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;
    bb74&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   46bd        mov sp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r7
    bb76&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   bd90        pop &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pc&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    bb78&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;00000000&lt;/SPAN&gt;    andeq   r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb7c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;412e8480&lt;/SPAN&gt;    smlawbmi    lr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r8‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;The address in Link Register is pointing to the instruction inside the above function which is after&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;__aeabi_d2uiz&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library function call.&amp;nbsp;I also tried increasing the .stackarea i.e. stack size of my application firmware without any luck.&lt;BR /&gt;&lt;SPAN&gt;I am using a custom linker script and as per this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/389125" rel="nofollow noreferrer noopener noreferrer" style="color: #005999; border: 0px; text-decoration: underline;" target="_blank"&gt;NXP Community Link&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have added&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;GROUP(libgcc.a libc.a libm.a)&lt;/CODE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;SECTIONS&lt;/CODE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;line in linker script.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Please anyone, let me know how to find a possible resolution of this issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Feb 2019 05:13:13 GMT</pubDate>
    <dc:creator>gauravpathak129</dc:creator>
    <dc:date>2019-02-11T05:13:13Z</dc:date>
    <item>
      <title>Enabling floating point emulation in gcc-arm-none-eabi</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889944#M35660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on LPC-1768 and using&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;arm-none-eabi-gcc&amp;nbsp;version 6.3.1 20170620 (15:6.3.1+svn253039-1build1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Makefile with following compiler and linker options:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;CFLAGS   &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;W &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;Wall&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;O0 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;--&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;std&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;gnu99 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;fgnu89&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;inline&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;mcpu&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;cortex&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;m3 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;mthumb &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;msoft&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #2b91af; border: 0px; font-weight: inherit; font-size: 13px;"&gt;float
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;CFLAGS  &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;+=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;ffunction&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;sections &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;fdata&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;sections &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;mfloat&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;abi&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;soft &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _printf_float &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _scanf_float
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;LDFLAGS  &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;nostartfiles &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;rdimon&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;nano&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;specs &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;lc &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;lrdimon &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _printf_float &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;u _scanf_float&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have written a code in which I am typecasting float to long int, but the firmware is going into Hardfault Hander.&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;long&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; var_tempNumber_u32&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;double&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; var_floatNumber_f32&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;var_tempNumber_u32 &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #101094; border: 0px; font-weight: inherit; font-size: 13px;"&gt;long&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;var_floatNumber_f32&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I installed a custom hard-fault handler to get the stack trace and I found out that my firmware is crashing after returning from __aeabi_d2uiz function.&lt;/P&gt;&lt;P&gt;Contents of ARM registers at the time of Hard Fault:&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x81
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r1&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x43C0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r2&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0xC000
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r3&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x1
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;r12&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x0000000000
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;LR&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0xBB1B
&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;PC&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #7d2727; border: 0px; font-weight: inherit; font-size: 13px;"&gt;0x884A&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The disassembly of the function where LR is pointing is:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;0000baf0 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxFloatNumber&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    baf0&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   b590        push    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lr&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    baf2&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   b085        sub sp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;
    baf4&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   af00        add r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;
    baf6&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9c7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   strd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bafa&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   205a        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;90&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x5a&lt;/SPAN&gt;
    bafc&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcc8   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb00&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;2058&lt;/SPAN&gt;        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;88&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x58&lt;/SPAN&gt;
    bb02&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcc5   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb06&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   200d        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;13&lt;/SPAN&gt;
    bb08&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcc2   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb0c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   200a        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;10&lt;/SPAN&gt;
    bb0e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fe fcbf   bl  a490 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;xMBPortSerialPutByte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb12&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   ldrd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb16&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc fce5   bl  &lt;SPAN class="number token"&gt;84e4&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_d2uiz&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb1a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb1c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   60fb        str r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb1e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;21ff&lt;/SPAN&gt;        movs    r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;255&lt;/SPAN&gt;    &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xff&lt;/SPAN&gt;
    bb20&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   68f8        ldr r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb22&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7ff ff5d   bl  b9e0 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxDecimalNumber&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb26&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   202e        movs    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;46&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x2e&lt;/SPAN&gt;
    bb28&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7ff febc   bl  b8a4 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;uart3_tx_byte&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb2c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   68f8        ldr r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb2e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc f91f   bl  7d70 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_ui2d&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb32&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb34&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   460c        mov r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1
    bb36&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   461a        mov r2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r3
    bb38&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4623&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4
    bb3a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   ldrd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb3e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fb ff8d   bl  7a5c &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_dsub&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb42&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb44&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   460c        mov r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1
    bb46&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9c7 &lt;SPAN class="number token"&gt;3400&lt;/SPAN&gt;   strd    r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb4a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   a30b        add r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;44&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;adr r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; bb78 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxFloatNumber&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0x88&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    bb4c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d3 &lt;SPAN class="number token"&gt;2300&lt;/SPAN&gt;   ldrd    r2&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r3&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb50&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   e9d7 &lt;SPAN class="number token"&gt;0100&lt;/SPAN&gt;   ldrd    r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb54&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc f98c   bl  &lt;SPAN class="number token"&gt;7e70&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_dmul&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb58&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb5a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   460c        mov r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r1
    bb5c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4618&lt;/SPAN&gt;        mov r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r3
    bb5e&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4621&lt;/SPAN&gt;        mov r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4
    bb60&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7fc fcc0   bl  &lt;SPAN class="number token"&gt;84e4&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;__aeabi_d2uiz&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb64&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;4603&lt;/SPAN&gt;        mov r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb66&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   60fb        str r3&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb68&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;21ff&lt;/SPAN&gt;        movs    r1&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;255&lt;/SPAN&gt;    &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0xff&lt;/SPAN&gt;
    bb6a&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   68f8        ldr r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;12&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
    bb6c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   f7ff ff38   bl  b9e0 &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;UART_TxDecimalNumber&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;
    bb70&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   bf00        nop
    bb72&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;3714&lt;/SPAN&gt;        adds    r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; #&lt;SPAN class="number token"&gt;20&lt;/SPAN&gt;
    bb74&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   46bd        mov sp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r7
    bb76&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   bd90        pop &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r7&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; pc&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
    bb78&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;00000000&lt;/SPAN&gt;    andeq   r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0
    bb7c&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;   &lt;SPAN class="number token"&gt;412e8480&lt;/SPAN&gt;    smlawbmi    lr&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r4&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; r8‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;The address in Link Register is pointing to the instruction inside the above function which is after&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #242729; background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;__aeabi_d2uiz&lt;/CODE&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;library function call.&amp;nbsp;I also tried increasing the .stackarea i.e. stack size of my application firmware without any luck.&lt;BR /&gt;&lt;SPAN&gt;I am using a custom linker script and as per this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/389125" rel="nofollow noreferrer noopener noreferrer" style="color: #005999; border: 0px; text-decoration: underline;" target="_blank"&gt;NXP Community Link&lt;/A&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;I have added&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;GROUP(libgcc.a libc.a libm.a)&lt;/CODE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;before&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; padding: 1px 5px;"&gt;SECTIONS&lt;/CODE&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;line in linker script.&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;Please anyone, let me know how to find a possible resolution of this issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 05:13:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889944#M35660</guid>
      <dc:creator>gauravpathak129</dc:creator>
      <dc:date>2019-02-11T05:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling floating point emulation in gcc-arm-none-eabi</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889945#M35661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about using a function defined in "math.h" to convert the double to long for example floor/ceil/round. I have tried the following code, I can pass compilation stage under MCUExpresso IDE, the C compiler is "arm-none-eabi-gcc"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "math.h"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; double double_f32;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;long int intvar;&lt;/P&gt;&lt;P&gt;.....................&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; double_f32=321.134;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; intvar=floor(double_f32);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 06:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889945#M35661</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-02-15T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling floating point emulation in gcc-arm-none-eabi</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889946#M35662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;XiangJun,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;My project code can't use the floor function, and I'd like to know how to make sure &lt;SPAN&gt;the C compiler is "arm-none-eabi-gcc".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2019 02:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Enabling-floating-point-emulation-in-gcc-arm-none-eabi/m-p/889946#M35662</guid>
      <dc:creator>rupingliu</dc:creator>
      <dc:date>2019-02-18T02:20:16Z</dc:date>
    </item>
  </channel>
</rss>

