Forum Discussion

Bar's avatar
Bar
Icon for New Contributor rankNew Contributor
2 years ago

JTAG_UART recognize for no terminal NIOS 2

Hi.

I have a problem when JTAG_UART is the default printf and no terminal is open.

I want to recognize the state and block the prints from going out.

As I understand the ALTERA_AVALON_JTAG_UART driver has a dedicate flages that detect those situation (No terminal is open) . If so what is the name of the relevant REG and flag?

How can I use this flag (is there an API to check its state from all parts of the SW?

If I want to block the string from going out in this situation (no terminal open) what is the best way to do it (I don't want to make any change in the altera_avalon_jtag_uart files) from the application level where it call to the prinft?

Thanks.

Bar.

8 Replies