[En-Nut-Discussion] Vortex M3/M4 and floating point
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Feb 8 15:59:46 CET 2013
Hello,
what needs to be done to get floating point working on Cortex. I have
#define STDIO_FLOATING_POINT
in cfg/crt.h
and recompiled and reinstalled the library and recompiled the application.
double f_a = 2.01
printf("a %3.6f\n", a);
hangs while printing and
double f_az
uint16_t az
az = (int16_t)(data[5]<< 8 | data[4]);
f_az = (double)az;
printf("f_az %3.6f\n", f_az);
prints 0.000000
Toolchain is latest yagarto. Yagarto uses the softfloat abi.
Thanks
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list