From: Shakthi Kannan Date: Tue, 11 Oct 2005 09:38:24 -0700 (PDT) Subject: [U-Boot-Users] printf with u-boot-1.1.2 Message-ID: <20051011163824.25257.qmail@web30714.mail.mud.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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