public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] printf with u-boot-1.1.2
@ 2005-10-11 16:38 Shakthi Kannan
  2005-10-11 18:56 ` Andrew Wozniak
  0 siblings, 1 reply; 4+ messages in thread
From: Shakthi Kannan @ 2005-10-11 16:38 UTC (permalink / raw)
  To: u-boot

Greetings!

I am using u-boot-1.1.2 with CodeSourcery's 3.4.3
cross-toolchain for ARM on the Versatile PB-ARM926EJ-S
board.

u-boot compiles fine. The hello_world.c in examples/
compiles fine. From the given example, I have removed
all statements except the printf statement. It
compiles fine.

I load it address 04000000 (SDRAM on board, top bank).
I execute it using "go 04000000", it runs and exits
with rc=0x0. But, I don't see the printf string being
printed. Only one character gets printed. I am
wondering if printf uses \r after every character gets
printed, so it basically overwrites. 

I am able to display a character, using putc(). getc()
also works fine. These work if I load it a SDRAM
address, say, 0x05000000, and give the entry point as
05000000 itself (go 05000000). But, the documentation
mentions offset 0x4 as entry point.

I'd appreciate any feedback on what I am doing wrong
and how I can get the printf working.

Thanks,

SK

--
Shakthi Kannan, MS
Software Engineer, Specsoft (Hexaware Technologies)
[E]: shakthimaan at yahoo.com           [M]: (91) 98407-87007
[W]: http://www.shakthimaan.com      [L]: Chennai, India


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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

end of thread, other threads:[~2005-10-13 13:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-11 16:38 [U-Boot-Users] printf with u-boot-1.1.2 Shakthi Kannan
2005-10-11 18:56 ` Andrew Wozniak
2005-10-13  7:51   ` Shakthi Kannan
2005-10-13 13:43     ` Andrew Wozniak

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