- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to send ~400 bytes via USB UART, but the following code dosn't help. The processor handed at the "while(USBUART_CDCIsReady() == 0u);" statement.
int i = 0; | ||
while( i < 2 * DATA_LENGTH) | ||
{ | ||
while(USBUART_CDCIsReady() == 0u); | ||
USBUART_PutData((uint8*)&incomingByte[i/2], 64); | ||
i += 64; | ||
} |
Note that the incomingByte is actually a uint16 array.
- Labels:
-
PSoC 5LP
- Tags:
- usb-uart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Please check if these forum threads are of any help:
Re: How to configure USBFS in audio IN mode with DMA automatic buffer management ?
Re: Is there a way to expand USBUART buffer size?
Maximum Packet Size in Store-and-Forward mode / Cut through mode USB transfer in PSoC 5LP
I hope you have checked this Code Example for USBUART for PSoC5LP available at this link:
https://www.cypress.com/documentation/code-examples/ce95396-usb-uart-psoc-35lp
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The processor may get hanged at the "while(USBUART_CDCIsReady() == 0u);" statement if the previous transfer to the PC is not done or completed.
You need to check the USB log for confirmation of the above mentioned scenario.
400 bytes can be sent through USB UART
Thanks,
Ankita Singh