Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

How to change stdout?

Altera_Forum
Honored Contributor II
1,142 Views

Hi, 

 

How to chang the stdout from JTAG UART to UART 232? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
290 Views

Take a look at the System Library project properties page. You can change stdout, stderr, stdin from there. 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
290 Views

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif  

Thank you very much! 

 

I edited the "system.h" file and it can be done. 

# define ALT_STDIN "/dev/uart1"# define ALT_STDOUT "/dev/uart1"# define ALT_STDERR "/dev/uart1"
0 Kudos
Altera_Forum
Honored Contributor II
290 Views

Editing the system.h file is a bad idea - see the comment at the top of the file. 

 

This file is created by the build system so it will be overwritten next time you change the PTF file or any of the system properties.
0 Kudos
Reply