Nios V juart-terminal Continuously Returns EOF with getchar();
Hello all,
I am fairly new to working with FPGAs so please be gentle.
We are utilizing the Cyclone 10 GX Development Kit and programmed the Nios V IP to act as our microprocessor. The µC/OS-II is being used as the real-time operating system. We are currently developing with Quartus 23.3.
The prototype "interface" we are currently using is just a while loop with a getchar(); function and a couple switch statements for different functions based on which button you press. The getchar() function continuously returns an EOF signal which I see in the RiscFree debugger as -1. On juart-terminal, this symbol shows as an unknown ASCII character with a int value of 255. We have also used alt_getchar() as recommended by the Nios V Processor Development Handbook but the issue persists.
Previously, this signal would occasionally show up during start up but currently it appears to be a constant input in juart-terminal. I have implemented conditional statements to ignore ASCII inputs outside the range of normal keyboard operations but it seems like a temporary fix. Any recommended strategies to assist with debugging?