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++
12469 Discussions

GetChar(), getc() and gets() NOT working on NIOS build on Cyclone 5

ImranHK
Beginner
365 Views

I have a custom board and am having trouble receiving data on stdin. All the stdout functions like printf() and puts() work just fine.

 

I have tried small, standard and uc/OS builds with same results.

 

The project builds fine and I can start the debugger fine. I was also wondering if there is a non blocking calls to stdin.

 

Thanks.

 

0 Kudos
4 Replies
ImranHK
Beginner
323 Views

Thank you for the reply. I was able to debug the problem using SignalTap and it was not in the fpga side of things.

EricMunYew_C_Intel
Moderator
253 Views

Since this thread had been answered, we shall close this thread. If you still need further assistance, you are welcome to post a response within 15days or open a new thread, some one will be right with you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you with your follow-up questions.


jozephka99
New Contributor II
228 Views

Did you use "Enable Small C library" for NIOS? If so its normal that they didn't work.

Reply