I want printf support in my Due sketches and
have followed instructions as given at this link: Arduino Playground - Printf
but I get compile failures ...
'_FDEV_SETUP_WRITE' was not declared in this scope
'fdev_setup_stream' was not declared in this scope
I have included stdio.h in the sketch (where the above are defined) but to no avail. If I change the
target board to, say, the Uno then the compile passes. What am I missing?
I have another issue with printf(). I only get output if the string is terminated with "\n"
how do I get output regardless of whether the string is terminated with a NEWLINE?
fflush(stdout); - this is standard printf behaviour and is not a bug.
There is no proper documentation (yet) as the Due is too new, but there is some documentation here: The Newlib Homepage Not all of it will be relevant to the Due.