public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] PXA270 board startup: printf does not work
@ 2008-05-14 13:49 JP
  2008-05-14 14:32 ` Jerry Van Baren
  0 siblings, 1 reply; 5+ messages in thread
From: JP @ 2008-05-14 13:49 UTC (permalink / raw)
  To: u-boot

Starting up a new board with a PXA270, the console output from
printf calls in board.c contains garbage, whereas puts works fine.
It appears the vsprintf call in printf works correctly, but printf's
local char buffer has a few alternate correct characters at its
very beginning followed by junk.

Everything else seems to work correctly: this SDRAM area can be written 
to with a debugger.   But test functions (similar to printf) that copy a
string parameter to a local buffer and then call puts also produce garbage.

Buffers initialized (i.e., char t [12] = "Testing...";) in these 
functions will print (with puts) ONLY if their size is <= 32.  Their 
contents become garbage when other data are copied to them, regardless 
of size.

I haven't yet tried to start a ramdisk or image; without correct output
from printf or the debug () macro it would be futile.

Thanks for any ideas.

JP

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-28  2:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 13:49 [U-Boot-Users] PXA270 board startup: printf does not work JP
2008-05-14 14:32 ` Jerry Van Baren
2008-05-14 15:11   ` JP
2008-05-27 14:47     ` JP
2008-05-28  2:56       ` Jerry Van Baren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox