[U-Boot-Users] printf

Wolfgang Denk wd at denx.de
Fri Jul 11 16:31:16 CEST 2003

In message <9F5558593173D21190EA0008C7B176987313E4 at innsys1> you wrote:
> Does anybody know how to get printf (for 82xx CPU) to priont floting point
> numbers?

U-Boot does not support floating point.

> I am using a workaround for now, by printing the number as two integers...

Good idea ;-)

> I need this to print out the measured voltages in the system. (done by a
> supervisor circuit).

You do not need this. See the existing code (like post/sysmon.c).

> And yes... The 8266 CPU (actually all the 82xx) has a working FPU unit.

But U-Boot does not use the FPU.

Best regards,

Wolfgang Denk

Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Experience is what causes a person to make new  mistakes  instead  of
old ones.

More information about the U-Boot mailing list