Forum Discussion
Altera_Forum
Honored Contributor
15 years agoUART with fopen
im trying read and write to my uart device like: FILE *urt;
urt = fopen("/dev/UART","r+");
fprintf(urt,"data"); but fopen does not work for me unless i disable small c library. and whe...
Altera_Forum
Honored Contributor
15 years agoIn my project I set the UART to be used for stdin and stdout and then I use the alt_printf, alt_putchar, and alt_getchar functions to read and write to the uart. My entire nios code is still under 7kb and fits in my onchip memory with plenty of room.