UPGRADE YOUR BROWSER
We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!
09-23-2017 11:20 PM
I use the uartlite ip on zynq 7010.
I can send data to my pc, but the problem is only 15bytes can be send once no matter what 'NumBytes' parameter I set.
My code is like this:
char *testWord = "1234567890qwertyuiopasdfghjklzxcvbnm"; XUartLite_Send(&UartLiteDebug, testWord, strlen(testWord)); while (XUartLite_IsSending(&UartLiteDebug)) { }; XUartLite_SendByte(UART_DEBUG_BASEADDR, 0Xd);
UartLiteDebug is the UartLite instance I defined.
I can only receive
'1234567890qwert'
And I check the strlen(testWord) in debug mode , it is 36.
Please help me .
thanks!
09-24-2017 07:13 PM
Hey @retni,
The Feature Summary for the AXI Uart Lite (PG142) lists ...
Generates a rising-edge sensitive interrupt when the receive FIFO becomes non-empty or when the transmit FIFO becomes empty. This interrupt can be masked by using an interrupt enable/disable signal. The device contains a baud rate generator and independent 16-character deep transmit and receive FIFOs.
So I wouldn't expect the XUartLite_Send() to be able to handle more characters at once.
Also, you do not check the return value of XUartLite_Send(), which is the number of successfully sent bytes.
I'd suggest to check the return value and break down long strings into smaller chunks.
Hope this helps,
Herbert
09-24-2017 11:50 PM
thanks hpoetzl!
I use the function at normal mode, I did not check the return value of XUartLite_Send().
I will use the interrupt mode to try this.
thanks!
12-18-2017 01:25 AM
Hello,
I have a basic doubt on the Uart application. I want to know that physically on the board, how are you making connection to the PC or a terminal to see uart messages. Can you please specify that for you board, which port and how are you connected to the PC via Uart ?
My board is UltraZed IO Carrier Card having Zynq MPSoC Ultrascale IP.
Please reply.
Thanks,
Vasuki Soni
07-24-2019 04:42 AM
hi
i have the same problem . i send 25 Bytes in my code with XUartLite_Send function but i Receive only 6 correct Bytes and 1 incorrect Byte.
for example i send
u8 Data[25] = {0xC0,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xCC,0xC1} ;
but i recieve
c0 cc cc cc cc cc 00
please help me to solve this problem ...
thanks