<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>atof() function problem + sprintf()</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28126/atof-function-problem-sprintf</link><description> 
I am using keil IDE for arm7 (LPC2138 by NXP) programming. 
Here is my code. 
&amp;gt;&amp;gt; 
#include &amp;lt;LPC213X.H&amp;gt; 
#include &amp;quot;Stdlib.h&amp;quot; 
#include &amp;quot;Serial.h&amp;quot; 
void initialize(void); 
int main () { float number; int i; 

 
initialize(); UART0_sendstring(&amp;quot;Here 1\r</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/130836?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2011 04:38:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dd2f3e0b-221c-4d49-8cf0-6a467faa6945</guid><dc:creator>Salman Liaquat</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;When exactly were you elected Pope of this forum,
again?&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Last Week :-)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/127027?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 15:01:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5b852f64-7208-4bbf-8cb5-6a5089a91554</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Have you made sure that your stack is properly aligned?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/127029?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 12:53:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:98e9dd7e-5a17-451e-b39f-5ff283a91876</guid><dc:creator>IB Shy</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;any ideas??&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
So, your summary of &lt;i&gt;&amp;quot;atof() function problem&amp;quot;&lt;/i&gt; appear to be
incorrect. It looks like the compiler, libraries and tools are
good.&lt;/p&gt;

&lt;p&gt;
You need to check for (and take account of) whatever could be
different between reasonably accurate simulation of uVision and your
&amp;#39;real world&amp;#39; hardware platform.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/127033?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 12:08:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2a7c21e0-1691-4a45-a538-415c77ba373d</guid><dc:creator>HansBernhard Broeker</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;Plz do not reply.&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Aha. When exactly were &lt;b&gt;you&lt;/b&gt; elected Pope of this forum,
again?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/116458?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 10:49:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cbd3f4b5-ceff-4e6e-8339-c936bc2ce923</guid><dc:creator>Salman Liaquat</dc:creator><description>&lt;p&gt;&lt;p&gt;
If you don&amp;#39;t have answer to the problem . Plz do not reply.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/116459?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 10:05:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f4655326-6c6e-4354-b197-1c69044bbad6</guid><dc:creator>Salman Liaquat</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well thanx for ur couple of minutes. I too tried it on debugger
and monitored the values of variables in watch window and ..yes ..it
does reaches the end and the values are also correct.&lt;/p&gt;

&lt;p&gt;
But then why is it not working in real world.. I am simulating it
in Proteus and there too it stucks at the same point.&lt;/p&gt;

&lt;p&gt;
any ideas??&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/105157?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 08:22:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:258ac482-ec8e-4bf6-9536-89782e55783b</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
With all due respect: Where in your thread did you write that?&lt;/p&gt;

&lt;p&gt;
With all due respect 2: You &amp;quot;expect&amp;quot;? Do you feel that this a
support forum where you pay for professional help? Did you read the
&amp;#39;Terms of Use&amp;#39; etc? Official Keil support is not through this
forum.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/105158?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 08:20:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9fb33def-d85a-407e-9844-7d16feca9e73</guid><dc:creator>IB Shy</dc:creator><description>&lt;p&gt;&lt;p&gt;
What else did you try?&lt;/p&gt;

&lt;p&gt;
I happened to have a couple of minutes to spare so I created a new
project, pasted in your code, compiled it, started debug with the
simulator and ... presto ... it worked.&lt;/p&gt;

&lt;p&gt;
Since you&amp;#39;ve got very little code there, it would be worth you
trying the same.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/79481?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 08:07:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d88500fa-146b-40d7-a6d1-a455dce44335</guid><dc:creator>Salman Liaquat</dc:creator><description>&lt;p&gt;&lt;p&gt;
Very Well, With all due respect,&lt;/p&gt;

&lt;p&gt;
I will keep in mind not to start a new thread but all u have
answered is &amp;quot;Is your stack enough.?&amp;quot;.&lt;br /&gt;
I did increase the stack size of user/system mode in startup
configuration, but the problem remains the same.&lt;/p&gt;

&lt;p&gt;
I expect some explanatory answer plz.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: atof() function problem + sprintf()</title><link>https://community.arm.com/thread/66802?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2011 06:37:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6a0a7c25-4923-46da-974a-e340f62998e1</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
And exactly why, did you 4 hours 15 minutes after the creation of
the following thread feel a need to create yet another thread with
the same question?&lt;/p&gt;

&lt;p&gt;
It doesn&amp;#39;t sound like you have tried to increase the stack size to
figure out if that made a difference. Your only tiny little addendum
is that yo unotice the same problem with sprintf() - why not just add
that note in the original thread?&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/forum/19328/"&gt;http://www.keil.com/forum/19328/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>