Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
公告
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 讨论

Newlib getc() hangs the program

AAndyy
初学者
1,130 次查看

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!

0 项奖励
4 回复数
EBERLAZARE_I_Intel
1,100 次查看

Hi,


Did you use any example design? OR did you create your own?


Did you received any error when generating a Makefile?


0 项奖励
AAndyy
初学者
1,094 次查看

This is a custom design.

I don't recall any error when generating the makefile....what sort of error would you expect to see?

0 项奖励
EBERLAZARE_I_Intel
1,062 次查看

Hi,


Could you share the build log for the newlib? I presume it was successful/completed based on your description. And the issue is related to its functionality of your custom design. Is the issue also with other designs or any example design that you have tried? OR is it only on a particular custom design that you have tested?



0 项奖励
EBERLAZARE_I_Intel
1,043 次查看

Hi,


Any update from your side?


0 项奖励
回复