[En-Nut-Discussion] printing floats on ARM
krzysztof.sawicki at mobile.put.edu.pl
Tue May 13 10:13:21 CEST 2014
On 07.05.2014 15:36, Ole Reinhardt wrote:
> Hi Krzysztof.
> Am 07.05.2014 15:01, schrieb Krzysztof Sawicki:
>> I'm working on device with AT91SAM7X512, my compiler:
>> gcc version 4.8.1 (Sourcery CodeBench Lite 2013.11-24)
>> I found a bug (rather in CS than NutOs) when printing floats, eg.:
>> sometimes it works ok, sometimes not (printing random values)
>> Further research showed that the problem occurs when ap is not 8-byte
>> aligned in putf.c:525:
> Which version of Nut/OS do you use? We had a similar bug report quite
> some time ago, along with several fixes on the linker scripts, which
> should avoid the ap pointer to be aligned wrong.
> Have you tried the latest code from Nut/OS trunk? Which linker script do
> you use?
In fact, i copied linker srcipt from trunk and it works fine :)
Mobile Systems Research Labs, Poznan University of Technology
More information about the En-Nut-Discussion