Altera_Forum
Honored Contributor
11 years agoSimultaneous open of two UART on a single NIOS II
Hi,
I searched before post but I didn't find anything so I hope nobody asked this before. I try to use several (three on my final application) UART on the same NIOS and connected each others (uart0 <=> uart1). I want to send a character with uart0 to uart1. To do this, I want to use open, read, and write function in non blocking mode (reduced_device_driver option disable). But when I try to open the second uart, i have an error (errno 24 => EMFILE /* Too many open files */). I tried to disable uart1 when I send the character with uart0 and enable it after and it's working but for my application it's not really applicable... SO my question is: Is it possible to open more than one uart device at the same time? Thank you in advance! :)