cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
2,867 Views
Registered: ‎02-01-2009

RecvByte Function not working

Dear all 

 

as my code is simplest one but not giving any response on hyperterminal

 

main()

int a,b,c;

while(1)

a = XUartLite_RecvByte (0x84000000);

xil_printf("\n\rFirst =%c", a);

b = XUartLite_RecvByte (0x84000000);

xil_printf("\n\rSecond =%c", b);

c= XUartLite_RecvByte (0x84000000);

xil_printf("\n\rThird =%c", c);

}

}

 

when tried to debug it hangs at  XUartLite_RecvByte functions first line that is 

 

while (XUartLitr_mIsReceiveEmpty(BaseAddress)); 

 

I am not understanding why it is not proceeding and take input from keyboard via Hyperterminal.

 

any suggestions are welcome. 

 

0 Kudos
2 Replies
Highlighted
2,866 Views
Registered: ‎02-01-2009

however this code when executed like 

 

 main()

int a,b,c;

while(1)

 

xil_printf("\n\rFirst ");

 

}

 

then it properly works and prints string "first"  on screen without fail.

 

please suggest, 

0 Kudos
Highlighted
Visitor
Visitor
2,588 Views
Registered: ‎08-02-2010

I have the same problem

any solution??

0 Kudos