2016-02-10 03:23 PM
Hello,
I have been tackling a USB issue on the STM32F373VC.My setup consists of a STM32F373 mcu setup as USB Virtual COM port. On the host side, commands are sent from a PC(windows7, 64 bit) via a teraterm script.Once in a while, I get a timeout on a CDC-IN token. I've attached a screenshot of the logic analyzer showing this. Is this an issue on the firmware side or host side?I've tried changing buffer sizes and it has no effect. Also I can see all the data make it to the host, but the terminal software is not able to see it. Does it point to an issue in the host driver from ST?My buffers are as follows:&sharpdefine VIRTUAL_COM_PORT_DATA_SIZE 64&sharpdefine VIRTUAL_COM_PORT_INT_SIZE 8&sharpdefine USART_RX_DATA_SIZE 512 #usb2016-02-11 10:13 AM
> Is this an issue on the firmware side or host side?
Most likely, hardware problem of your MCU board. Caused by hardware timing delay on the bus. A) MCU clock - frequency deviation or instability If the internal OSC (HSI) would be applied, switch to HSE with a crystal. Place the crystal as close to the MCU OSC_IN/OUT pins as possible. B) VDD power source - low voltage at USB transceiver supply To drive the USB line properly, VDD should be maintained at 3.0V or more (< 3.6V). Is there any ''power eater'' on your board, which occasionally causes VDD drop? Tsuneo2016-02-12 05:30 AM
EP1_IN_Callback(), it was good.
Thanks!