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++
12747 Discussions

Cannot Change ISO C Library Default console to ...

Altera_Forum
Honored Contributor II
1,114 Views

Hey Guys, 

 

Help! I cannot Change ISO C Library Default console to anything other than "/dev/ttydiag" 

 

I have currently jtag_uart and a uart_0 setup in SOPC builder for nios2. 

 

I setup tty0 to use uart_0. 

using cyg_io_lookup and cyg_io_write, I can write to the /dev/tty0. But when I change the ISO C library default console to /dev/tty0, nothing gets outputted to my serial port?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
390 Views

 

--- Quote Start ---  

originally posted by kevw201@Sep 28 2005, 12:10 PM 

hey guys, 

 

help! i cannot change iso c library default console to anything other than "/dev/ttydiag" 

 

i have currently jtag_uart and a uart_0 setup in sopc builder for nios2. 

 

i setup tty0 to use uart_0. 

using cyg_io_lookup and cyg_io_write, i can write to the /dev/tty0. but when i change the iso c library default console to /dev/tty0, nothing gets outputted to my serial port? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10023) 

--- quote end ---  

 

--- Quote End ---  

 

 

 

What is the correct way to do this ? I too want to use the console for my app and diag_* for diagnostics. 

 

Thanks Robert.
0 Kudos
Reply