Forum Discussion
Altera_Forum
Honored Contributor
21 years agoRead from UART
Good morning! I´m a NIOSII starter and trying to get first results. My question: Why can´t i read anything from the UART? I can write to it, but i don´t receive anything or i receive and don´t ...
Altera_Forum
Honored Contributor
21 years agoAnd another thing, there seems to be something strange going on with the character read functions. In the "board diagnostics" sample program that comes with the NIOS II IDE, somewhere in the code, you will find:
/* This extra getchar() to work around an Eclipse feature */ getchar(); ch = getchar(); I have no idea why this is an eclipse feature and not a nios Bug, but anyway... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif Maybe this is part of your problem?