Blackfin & printf()/fprintf()
srs
skaflotten@gmail.com
Tue Mar 25 18:56:00 GMT 2008
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
More information about the Newlib
mailing list