Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Honored Contributor I
869 Views

Uart returning -1 when more than 1 uart opened in NIOS

hi, 

 

I am using quartus 9.0.  

 

and I need to use 5 uart cores in sopc (all 115200). when i am opening one uart in blocking mode in Nios, it reads/writes fine. bt wen i start opening other uarts, the same port starts returning -1 (only opening of other ports,no reading no writing). 

 

I need to use all rs-232 ports..wat can be the problem? 

 

sth like this 

 

main() 

uart1=open(uart1_name, mode) 

uart2=(uart2_name, mode) 

 

 

 

result=read(uart2, buffer, len) //gives error if uart1 is opened before uart2, alone it works fine. 

 

 

 

 

I need to use all 5 rs-232 ports..wat can be the problem?:confused: 

can we use only one uart core??:confused: 

 

plz reply.
0 Kudos
2 Replies
Highlighted
Honored Contributor I
14 Views

my problem is still not solved... plz helppppp......

0 Kudos
Highlighted
Honored Contributor I
14 Views

If you post your question in the correct forum then you'll probably get better help. Moving to the Nios II forum....

0 Kudos