Using scanf and printf with floats with AVR Studio 6
Veröffentlicht: | Weitere Einträge über avr baremetal windows
To use floating point with AVR Studio 6 with functions from the scanf/printf family you have to link against the proper libraries and set the correct flags to make it work. Unfortunately the scanf settings aren't made available in the GUI like for printf.
You can download a test project: avr-scanf-float.zip
Add the following libraries to the libraries list:
Enable Use vprintf library:
Add -Wl,-u,vfscanf to Other linker flags: