AnsweredAssumed Answered

ADUCM350 workbench floating point printf

Question asked by gugi on Aug 13, 2015
Latest reply on Aug 13, 2015 by gugi

Hello

I need floating point printf, but IAR workbench for ADUCM350 has problem with printf and floating point !?!?

The project slowly moves forward.

I have this:

....

float32_t           flot_test = 4.567473;

.......

printf(" f = %f \n", flot_test);  

    flot_test = -5.555;

     printf(" f = %f \n", flot_test);  

    flot_test = 0.554345;

     printf(" f = %f \n", flot_test);  

    flot_test = -0.0052505;

     printf(" f = %f \n", flot_test);  

    flot_test =6565.555;

    printf(" f = %f \n", flot_test); 

    flot_test =-6565.555;

    printf(" f = %f \n", flot_test); 

and result is:

 

f = %f

 

f = %f

 

f = %f

 

f = %f

 

f = %f

 

f = %f

 

 

Where is the problem and is there any solution. From IAR answered me that problem is not in IAR Workbench ?!?!

 

Thank you

Outcomes