This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Blackfin & printf()/fprintf()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]