Another printf() question

Discussion created by Guest on Jun 8, 2006
Latest reply on Jun 20, 2006 by CompilerGuru
Hi all,
 
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.  I wrote my own TERMIO_PutChar function, and printf *mostly* seems to be working.  Here's my code:
 
( void )printf("SP %u\n\r", dtTarget );
 
where dtTarget is an unsigned int.
 
On Hyperterm, I see
 
SP 0
 
I have already checked (through the emulator), and dtTarget is always non-zero.  I've looked at my serial buffer, and the "SP 0" is in there, so the problem is somewhere in printf().
 
Any suggestions?
 
Thanks,
Tomahawk

Outcomes