<?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: Hi, ATOI on HCS08 not working for me, help in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389305#M2316</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use function atoi() directly in your application.&lt;/P&gt;&lt;P&gt;See attached example project for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 05:22:26 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-03-18T05:22:26Z</dc:date>
    <item>
      <title>Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389304#M2315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im new here, and Im doing a proyect which happens that i need to change a string to integer.&lt;/P&gt;&lt;P&gt;On C eclipse works fine however on Freescale doesnt do anything.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pleace help&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a new proyect apart just to see ATOI working properly. I was able to see that the variable "number" changes from 4 to cero, as if nothing got atoi and if I uncoment the atof line i geet the error Symbol strtod ... is undefined.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advice (version of&amp;nbsp; my codewarrior is &lt;SPAN style="color: #373e4d; font-family: Helvetica, Arial, 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12px; background-color: #dbedfe;"&gt;V6.3 build 9279&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;hidef.h&amp;gt; /* for EnableInterrupts macro */&lt;/P&gt;&lt;P&gt;#include "derivative.h" /* include peripheral declarations */&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;/P&gt;&lt;P&gt;#include &amp;lt;string.h&amp;gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char y[] @0x0068 ="12";&lt;/P&gt;&lt;P&gt;char f[] @0x0070 ="143.343";&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int number @0x0060 =4;&lt;/P&gt;&lt;P&gt;double flot;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void main(void) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableInterrupts; /* enable interrupts */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* include your code here */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG(); /* feeds the dog */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; number=atoi((const char*)y);&amp;nbsp;&amp;nbsp; /// also like this doesnt work : &lt;SPAN style="font-size: 13.3333330154419px;"&gt;number=atoi(y);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //flot = atof((const char*)f);&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; } /* loop forever */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* please make sure that you never leave main */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 00:14:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389304#M2315</guid>
      <dc:creator>gusnavarro</dc:creator>
      <dc:date>2015-03-17T00:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389305#M2316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use function atoi() directly in your application.&lt;/P&gt;&lt;P&gt;See attached example project for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 05:22:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389305#M2316</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-03-18T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389306#M2317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Zhang! now it works fine atoi ! thx a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way&amp;nbsp; , do you happen to know why im getting strtod in file main.c.o is undefined ? in case i want to use atof ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 04:50:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389306#M2317</guid>
      <dc:creator>gusnavarro</dc:creator>
      <dc:date>2015-03-20T04:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389307#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have another doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code works fine under MC9S08DZ60, but on the proyect im working on which happens to be &lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;08QG8 doesnt work there&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;why is that ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;Greetings &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 05:14:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389307#M2318</guid>
      <dc:creator>gusnavarro</dc:creator>
      <dc:date>2015-03-20T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389308#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. QG8 default project allocates 0x40 bytes RAM to stack. while atoi and atof is very memory consuming. so you need increase the stack size.&lt;/P&gt;&lt;P&gt;2. use atof, you need use floating support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see attached demo code and screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 05:33:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389308#M2319</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-03-20T05:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389309#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Zhang!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I owe you a beer ! :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 05:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389309#M2320</guid>
      <dc:creator>gusnavarro</dc:creator>
      <dc:date>2015-03-20T05:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389310#M2321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome !&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 06:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389310#M2321</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-03-20T06:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389311#M2322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jennie!&lt;BR /&gt;I have a new quetion for you :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 03:28:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389311#M2322</guid>
      <dc:creator>gusnavarro</dc:creator>
      <dc:date>2015-06-02T03:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389312#M2323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gus,&lt;/P&gt;&lt;P&gt;please create a new thread for the new questions. I will check. thanks!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 03:32:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389312#M2323</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-06-02T03:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389313#M2324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Jennie :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2015 02:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389313#M2324</guid>
      <dc:creator>gusnavarro</dc:creator>
      <dc:date>2015-06-06T02:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hi, ATOI on HCS08 not working for me, help</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389314#M2325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are welcome! :-)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 09:47:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Hi-ATOI-on-HCS08-not-working-for-me-help/m-p/389314#M2325</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-06-18T09:47:10Z</dc:date>
    </item>
  </channel>
</rss>

