This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Blackfin & printf()/fprintf()
- From: srs <skaflotten at gmail dot com>
- To: newlib at sourceware dot org
- Cc: Sebastian Dressler <sebastian dot dressler at fhtw-berlin dot de>
- Date: Tue, 25 Mar 2008 17:10:32 +0100
- Subject: Re: Blackfin & printf()/fprintf()
- References: <16275318.post@talk.nabble.com> <47E92057.1050109@gmail.com> <47E9215D.6020406@fhtw-berlin.de>
Sebastian Dressler wrote:
srs schrieb:
Sebastian Dressler wrote:
Hi,
I'm developing on a Blackfin BF-532 with newlib. When i was trying
to use
printf() with redirecting stdout to the UART nothing is ever
printed, same
behavior with fprintf(stdout, ...).
Does your port fflush upon exit? If not, try that, or fflush manually
in your program (or add a \n).
Regards,
Stein Roger
Hi,
When is add a "\n" also nothing happens. Is it possible, that printf
doesn't accepts the "UART-File" and thinks it is read-only?
Regards
Not sure, but you could also try unbuffered output:
setbuf(stdout, NULL);
/Stein Roger