This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with printing double-values with printf and sprintf


Hello,

I have an embedded artists LPC2478 test board with an arm-core in
little-endian mode. By running the tests from RTEMS-testsuite I have
found that one test (the paranoia-test) breaks. After some time of
debugging I was able to locate the problem.
The program breaks when trying to print a double-value to the serial
line with "printf ("Radix = %f .\n", Radix);". At this command the
processor runs into an exception and ends in an endless loop. The same
thing happens, if I use the sprintf() command instead to put the output
into a string. One of my colleagues said, that he knows that problem
with printing double-values from other programs. But he has also no
solution till now.

After an internet-research i've found the following page:
http://quadcopter.wordpress.com/2009/08/01/toolchain-wrestling/
The problem described there sounds similar to mine and could give a hint
for the reason. But the solution the writer has found don't fits for me.

I'm using the newlib 1.17.0 with RTEMS 4.10 patches.

I hope that anyone on this list could give me a hint, how to solve the
problem of the not working printf().

Kind regards,
Christian Mauderer

-- 
Christian Mauderer, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-1
Fax     : +49 89 18 90 80 79-9
E-Mail  : christian.mauderer@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]