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

sent "a" but my computer can recive correct char

Altera_Forum
Honored Contributor II
1,115 Views

i sent "a" but my computer can recive correct char through com1. 

anyone help me . 

my code is# include "system.h"# include "stdio.h" 

main() 

FILE*fp; 

char*msg="a"; 

fp=fopen("/dev/uart","w"); 

fprintf(fp,"%s",msg); 

i do not use ucos 

in nios II ide console i recive permission denied 

i do not know why
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
347 Views

i change the system frequency.i can receive the char but the message of "can not open the uart. permission denied."aslo in the console window.anyone can tell me the reason.thank you very much!

0 Kudos
Reply