FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5152 Discussions

How access UART and Jtag at same time?

Altera_Forum
Honored Contributor II
922 Views

Hi, 

 

If JTag is reconfigured to uart_0, then printf is re-directed to COM port. How do I use JTag for Console printf while COM port printf is directed to COM port? how to do that? any simple example that shows that capaiblity? 

Thank you, 

OneplusOne.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
124 Views

I'figured out. Use fopen and fprintf. 

 

Thank you, 

Oneplusone
Altera_Forum
Honored Contributor II
124 Views

Or just assign one or the other to the stderr device and have it automatically opened/closed, just like the stdin/stdout. I use this for printing... wait for it... error messages!

Reply