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++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

NIOS Not Findary Library

Altera_Forum
Honored Contributor II
838 Views

I have simple NIOS processor that has a UART. The NIOS Hello World template is used to create a simple program. I delared FILE *fp. The entire program is as follows: # include stdio.h main () { FILE *fp fp = fopen("dev/uart_rs232", "r+"); fprintf(fp, "New project"); fclose(fp); } it won't compile saying undefined reference to fopen. undefined reference to fwrite (I don't even have fwrite anywhere!) Anyone know what's wrong. Thanks (Can't separate lines for some reason. This forum automatically formats)

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
138 Views

Can't figure it out. I deleted the "software" folder in the project and started all over. Now it works! However, it also appears that the "reduced device drivers" has to be UNCHECKED. Don't know yet.

Altera_Forum
Honored Contributor II
138 Views

Yeah, I'm pretty certain that very few (to none) of the POSIX-like features would exist in a "reduced drivers" piece of software. There are smaller footprint versions of some of these functions...look for "alt_*" named files...if you need to reduce memory footprint.

Reply