Forum Discussion
Altera_Forum
Honored Contributor
16 years agoUART application on NEEK
Hi, I use ocm_mmu_spi from Hippo and I'm able to use the UART for console, or if I use JTAG console, I can print on the UART using "/dev/ttyS0". So UART is working properly. But I would...
Altera_Forum
Honored Contributor
16 years agoNow it works, with the same code. Don't know why it didn't before ...
I tried both buffered -fopen("/dev/ttyS0")- and unbuffered -open("/dev/ttyS0")- file manipulation and it works. Just in the buffered case (fopen), using fflush (fp) allows to empty the buffer without closing the file. So now it works, thanks.