I am writing a C program for the cortex-M3 microcontroller for SAM3N. When I try to print floating point numbers, it just prints "f". Example: printf("%f",43.12); prints only f , not 43.12 .
But integer printing works fine.
How to enable full float printing? I know that the compiler turned off floating point printing by default in order to reduce the size of the code (i.e., it looks like they linked the cut version). Also note that the makefile does not use CFLAGS=-Dprintf=iprintf .
Tool Details:
- ARM / GNU C compiler: (crosstool-NG 1.13.1 - Atmel build: 13) 4.6.1
- The above tool comes with Atmel 6.0.
source share