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

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

Altera_Forum
Honored Contributor II
1,218 Views

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
Altera_Forum
Honored Contributor II
363 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
363 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
Reply