Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Non Blocking UART I/O

Altera_Forum
Honored Contributor I
848 Views

Hi, 

 

I'm not able to implement Non-Blocking I/O. 

I have made the following changes to make the fgets function Non Blocking : 

_serialPort = fopen("/dev/uart_0", "r+"); 

fd = fileno(_serialPort); 

fcntl(fd, F_SETFL, O_NONBLOCK); 

 

After this it's been set to Non-Blocking, but inside the while loop when I'm passing a "STOP" command (should break out of the while loop) it's not reading the command and goes on continuously.  

 

Can anyone please help me with this issue ? 

 

I'm using Quartus Prime 16.0 Lite edition. 

 

Thanks,
0 Kudos
0 Replies
Reply