AAndyy
New Contributor
4 years agoNewlib getc() hangs the program
Using the web edition of Quartus Prime rev 18.1 .
Implementing a NIOS II based design in a Max10 chip.
Using the standard C library function calls that Newlib supports.
I have verified that getc() (and maybe other character handling functions) hangs the program. I know this from using hardware strobes that the program asserts immediately prior to getc() and deasserts immediately after getc(). I monitor these strobes on an o'scope. getc() never returns! But the problem is not consistent. Sometimes getc() works, sometimes it doesn't.
Using a UART implemented in the Platform Designer tool. This UART communicates with external system, not stdin or stdout.
Please help!!!
Thanks!