This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Printing floats:    printf("t = %f", t)

Hello, I have been using a Discovery board with a CortexM4 from STMicroelectronics(STM32f407), programs are being compiled by gnuarm-none-eabi. Function "printf()" is working very fine(I am using a UART to send characters to a computer) however by the time I try to print a float, program hangs. For example this line is crashing the program:

printf("Value of t = %f\n\r", t);

It only happens with floats, integer and string are being properly printed.

Do you guy s have a clue about how to solve this problem?

Thanks,

Mariano