close or change dynamicly the stdout in arria 10
Hello.
I want to block printf to my stdout driver which point to JTAG_UART set in the BSP editor. I try several options
int file_dsc;
file_dsc = open("/dev/jtag_uart", O_RDONLY);
this way I was thinking that it can't write and printf doesn't go out.
I also after it this:
close(file_dsc);
to close the driver so printf doesn't go to output driver.
But for both of them I see print sin my terminal.
Is it possible to close it at all, and if so which function could do it?
Alternative if there is no function to do so I think on onther solution.
Is there a way in the code during run, to change the driver of stdout from JTAG_UART to NONE and back?
attach 2 pic of the setting I need.
Thanks
Bar.
Hi,
I don't think we have any functions for this as usually, we would want to avoid printf blocking to the output terminal.
Hope this clarifies your doubts.
Thanks.
Best,
Kelly