<?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: Another printf() question in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138968#M2248</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;How much stack do you have, why are you sure you have enough? The longer I think of the problem, the more it remembers me of a stack overflow one.&lt;BR /&gt;&lt;BR /&gt;I dont think it is a compiler problem, you showed the coded of the printf call, and it was ok.&lt;BR /&gt;&lt;BR /&gt;Anyway, the compiler version can be found in the Compiler Settings, there is a n About button which opens the compiler's own version dialog. Something like "... Compiler for HC12 V-5.0.30 Build 6037, Feb 7 2006". &lt;BR /&gt;&lt;BR /&gt;The product version is in the main CW about box, click installed products, and then all installed products and service packs are listed on top. Something like "... HC12 4.5 build 6037". &lt;BR /&gt;&lt;BR /&gt;Things to try on your side:&lt;BR /&gt;Can you try my snippet (with sprintf)?&lt;BR /&gt;Can you try to increase the stack?&lt;BR /&gt;Can you try to run it in the simulator? (it might give more hints on what's wrong than the HW...)&lt;BR /&gt;Can you try to create a new project with the wizard, include your termio functions, and add a printf in there?&lt;BR /&gt;&lt;BR /&gt;In the end, I probably need a complete, compilable sample to check. printf works for me.....&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jun 2006 19:17:27 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2006-06-20T19:17:27Z</dc:date>
    <item>
      <title>Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138955#M2235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I developing on an -S08AW16, and I just want to shove a couple of variables out the serial port where I can look at them with HyperTerm.&amp;nbsp; I wrote my own TERMIO_PutChar function, and printf *mostly* seems to be working.&amp;nbsp; Here's my code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;( void )printf("SP %u\n\r", dtTarget );&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;where dtTarget is an unsigned int.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;On Hyperterm, I see&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;SP 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have already checked (through the emulator), and dtTarget is always non-zero.&amp;nbsp; I've looked at my serial buffer, and the "SP 0" is in there, so the problem is somewhere in printf().&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Any suggestions?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Tomahawk&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2006 23:57:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138955#M2235</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-08T23:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138956#M2236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;I did some more research, and here's what I found:&lt;/P&gt;&lt;P&gt;printf() (in embedded.c) calls va_start() (a macro) which looks like it should get the number arguements for printf, but it just gets 0 for mine.&lt;/P&gt;&lt;P&gt;Any help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 02:38:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138956#M2236</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-09T02:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138957#M2237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Did you include stdio.h in the source file where you are using printf?&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 18:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138957#M2237</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-06-09T18:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138958#M2238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Yes I did.&amp;nbsp; Everything compiles just fine, and like I said in my original message, printf *mostly* works.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 19:21:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138958#M2238</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-09T19:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138959#M2239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;OK, I'll admit this is grasping at straws, but:&lt;BR /&gt;&lt;BR /&gt;1) Try something other than a %u. Perhaps %c, or try %lu, and see if something different comes out.&lt;BR /&gt;&lt;BR /&gt;2) Why is the statement prefaced with (void)? I can see that for a function declaration, but not when actually making the function call. Sorry if that's a dumb statement, I've been using a Java a lot lately.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 21:24:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138959#M2239</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-06-09T21:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138960#M2240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;1) I've tried %u, %d, %x, %i and even specifying digits, i.e. %5d, %4u, etc (this just insterts spaces in my output, i.e. "SP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0").&lt;/P&gt;&lt;P&gt;2) I prefaced the function call with ( void ) to tell the compliler I don't care about the return value (otherwise I get a warning).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tomahawk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2006 23:37:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138960#M2240</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-09T23:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138961#M2241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;strange case.&lt;BR /&gt;&lt;BR /&gt;First, you say that dtTarget is a unsigned int, and I belive you. But because of the lack of any argument checking for printf, I would actually cast it to unsigned int anyway.&lt;BR /&gt;( void )printf("SP %u\n\r", (unsigned int)dtTarget );&lt;BR /&gt;&lt;BR /&gt;Then, did you modify the default type sizes? Especially configuring int as 4 byte would explain it, unless you did recompile the library with this option.&lt;BR /&gt;&lt;BR /&gt;The va_start() macro in printf does actually compute the address of the first non specified argument of an open parameter list. 0 does not really make sense here as pointer value.&lt;BR /&gt;&lt;BR /&gt;Can you show us the code the compiler generated for your code snippet (with the context menu disassemble)?&lt;BR /&gt;&lt;BR /&gt;Otherwise, can you provide a complete project showing the problem?&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jun 2006 03:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138961#M2241</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-06-10T03:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138962#M2242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;CompilerGuru wrote:&lt;BR /&gt;strange case.&lt;BR /&gt;&lt;BR /&gt;First, you say that dtTarget is a unsigned int, and I belive you. But because of the lack of any argument checking for printf, I would actually cast it to unsigned int anyway.&lt;BR /&gt;( void )printf("SP %u\n\r", (unsigned int)dtTarget );&lt;BR /&gt;&lt;BR /&gt;Then, did you modify the default type sizes? Especially configuring int as 4 byte would explain it, unless you did recompile the library with this option.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I haven't modified the default type sizes.&amp;nbsp; I'll work on getting the generated code (I back-burnered this for awhile).&lt;/P&gt;&lt;P&gt;-Tomahawk&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2006 20:49:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138962#M2242</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-12T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138963#M2243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Generated code as requested:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; 190:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( void )printf("SP %u\n\r", dtTarget );&lt;BR /&gt;&amp;nbsp; 004e 5500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [4]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX&amp;nbsp; dtTarget&lt;BR /&gt;&amp;nbsp; 0050 89&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHX&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0051 8b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHH&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0052 450000&amp;nbsp;&amp;nbsp; [3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDHX&amp;nbsp; @"SP %u\012\015"&lt;BR /&gt;&amp;nbsp; 0055 89&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHX&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0056 8b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSHH&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 0057 cd0000&amp;nbsp;&amp;nbsp; [6]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JSR&amp;nbsp;&amp;nbsp; printf&lt;BR /&gt;&amp;nbsp; 005a a704&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AIS&amp;nbsp;&amp;nbsp; #4&lt;BR /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 22:01:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138963#M2243</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-15T22:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138964#M2244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I get exactly the same code when I compile the code below in the tiny memory model (well I also get the same code in the small memory model when I explicitely allocate bufpos in the zero page).&lt;BR /&gt;Did you allocate bufpos in the zero page? If not, this would explain it. What does the code below generate for you?&lt;BR /&gt;It redirects the printf output to a buffer to separate the SCI code from the printf one.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include &amp;lt;hidef.h&amp;gt;&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;BR /&gt;char buf[20];&lt;BR /&gt;int bufpos;&lt;BR /&gt;void TERMIO_Init(void) {&lt;BR /&gt;}&lt;BR /&gt;void TERMIO_PutChar(char ch) {&lt;BR /&gt;buf[bufpos]= ch;&lt;BR /&gt;bufpos++;&lt;BR /&gt;if (bufpos &amp;gt;= sizeof(buf)) {&lt;BR /&gt;bufpos -= sizeof(buf);&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;int dtTarget= 2;&lt;BR /&gt;void main(void) {&lt;BR /&gt;(void)printf("SP %u\n\r", dtTarget );&lt;BR /&gt;&lt;BR /&gt;while (1) { _FEED_COP(); }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;PS: This Html view kills the indendation, sorry :smileysad:&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 19:57:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138964#M2244</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-06-16T19:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138965#M2245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;CompilerGuru wrote:&lt;BR /&gt;I get exactly the same code when I compile the code below in the tiny memory model (well I also get the same code in the small memory model when I explicitely allocate bufpos in the zero page).&lt;BR /&gt;Did you allocate bufpos in the zero page? If not, this would explain it. &lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Tell me of the bufpos of which you speak (I don't think I did it).&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 20:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138965#M2245</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-16T20:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138966#M2246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Oh, I was using the wrong variable name. I meant dtTarget.&lt;BR /&gt;Your code is accessing it with direct addressing, so I just wanted to double check that this variable is indeed in the zero page.&lt;BR /&gt;Which memory model are you using? Which compiler version? Does sprintf work,&lt;BR /&gt;oh, and before I forget it, do you have enough stack space to use printf?&lt;BR /&gt;Try to increase your stack, especially the floating point version of printf does need much stack.&lt;BR /&gt;Having not enough stack is probably the most common problem with printf, happens even more often than arguments not matching the pattern.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2006 19:15:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138966#M2246</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-06-17T19:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138967#M2247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;1)&amp;nbsp; Tiny&lt;/P&gt;&lt;P&gt;2) I've got CodeWarrior 5.7.0.&amp;nbsp; How do I find out the compiler version?&lt;/P&gt;&lt;P&gt;3) It appears as if I have plenty of stack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2006 20:43:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138967#M2247</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-19T20:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Another printf() question</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138968#M2248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;How much stack do you have, why are you sure you have enough? The longer I think of the problem, the more it remembers me of a stack overflow one.&lt;BR /&gt;&lt;BR /&gt;I dont think it is a compiler problem, you showed the coded of the printf call, and it was ok.&lt;BR /&gt;&lt;BR /&gt;Anyway, the compiler version can be found in the Compiler Settings, there is a n About button which opens the compiler's own version dialog. Something like "... Compiler for HC12 V-5.0.30 Build 6037, Feb 7 2006". &lt;BR /&gt;&lt;BR /&gt;The product version is in the main CW about box, click installed products, and then all installed products and service packs are listed on top. Something like "... HC12 4.5 build 6037". &lt;BR /&gt;&lt;BR /&gt;Things to try on your side:&lt;BR /&gt;Can you try my snippet (with sprintf)?&lt;BR /&gt;Can you try to increase the stack?&lt;BR /&gt;Can you try to run it in the simulator? (it might give more hints on what's wrong than the HW...)&lt;BR /&gt;Can you try to create a new project with the wizard, include your termio functions, and add a printf in there?&lt;BR /&gt;&lt;BR /&gt;In the end, I probably need a complete, compilable sample to check. printf works for me.....&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2006 19:17:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Another-printf-question/m-p/138968#M2248</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2006-06-20T19:17:27Z</dc:date>
    </item>
  </channel>
</rss>

