Forum Discussion
Altera_Forum
Honored Contributor
19 years agoCan't open ttyS0 !!!
Hi All ! I used 2s60ES and build uclinux for my board . I wrote simple example relate with UART this is my code : struct termios options; fd=open("/dev/ttyS0",O_RDWR ); if(fd==-...
Altera_Forum
Honored Contributor
19 years agoDid you enable nios uart driver in kernel config?
If you already run console or shell on the uart, you can't open it again. use stdin/out instead. Otherwise, try "cp /etc/motd /dev/ttyS0" .