I'm trying to understand the use of the USBBufferRead function. Is there
a way to set this up so ulRead is as large as MAX_USB_CDC_PACKET_SIZE (64)?
ulRead = USBBufferRead(&g_psRxBuffer[0], &m_ucUSBInputBuffer[0], MAX_USB_CDC_PACKET_SIZE);
UART_BUFFER_SIZE is set to 256. 128 has also been tried and ulRead is either 8 or 4 respectively.
Free RTOS API allots memory dynamically for m_ucUSBInputBuffer correctly.
However the last few bytes in the 64 byte block are non-zero characters. This is leading
to some garbled printing in the application.
If there is a different way to zero these characters in the 64 byte sequence, other than
increasing ulRead, please let me know.
Thanks,
Priya