Forum Discussion
Bar
New Contributor
3 years agousing fprintf with stdout parameter in NIOS2
Hello. If I want to write alternative output string to JTAG_UART and NIOS_UART can I use the function fprintf using the distenation as the first parameter? Is it possible to chose the stdout durin...
- 3 years ago
Hi,
Any updates from your end whether the feedback provided was useful?
Thank you.
Regards,
Kelly
KellyJialin_Goh
Frequent Contributor
3 years agoHi,
Greetings and welcome to Intel's forum.
Yes, you are able to write alternate output string to JTAG_UART and NIOS_UART.
Here is an example writing to uart1 for your reference: https://www.intel.com/content/www/us/en/docs/programmable/683525/17-0/introduction.html (Section 7.7.2. General Access to Character Mode Devices)
Unfortunately, you are unable to choose the stdout during run time so you will have to set it first.
Hope this clarifies your doubts.
Thank you.
Regards,
Kelly Jialin, GOH