cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX 4.9.0 and STM32f429-Discovery USB CDC VCP

provat
Associate II
Posted on August 14, 2015 at 22:24

Hi,

I have created a USB CDC project using STM32CubeMX. It is running on STM32F429 board. However after receiving first character, the program is not accepting anything. Did anybody face similar problem?

Regards,

Provat
2 REPLIES 2
robert-hartung
Associate II
Posted on August 14, 2015 at 22:46

Hi,

I had the same issue. You have to manually call the receive function again to receive more data:

static int8_t CDC_Receive_HS (uint8_t* Buf, uint32_t *Len){/* USER CODE BEGIN 11 */USBD_CDC_ReceivePacket(hUsbDevice_1);return (USBD_OK);/* USER CODE END 11 */}

Regards,

Robert

provat
Associate II
Posted on August 14, 2015 at 23:00

Hi Rovert,

Thank you very much. It worked.

Regards,

Provat