AnsweredAssumed Answered

In STM32F7, for USB_HS mode.. How to Receive data form PC-terminal and same has to Transmit

Question asked by Faiz Ahmed on Oct 23, 2017

Hi, I am working with "STM32F746G DISC" board, In USB_CDC using USB_HS mode, I wanted to Receive the data from PC-Terminal and same has to be transmitted back (echo type), which API's will be needed to develop this application... i generated code using STM32CubeMx but i am not receiving data properly which i entered from terminal.

 

i used this in main.c

 

 CDC_Transmit_HS(UserRxBufferHS, sizeof(UserRxBufferHS));

 

 

 

i am getting Garbage data along with valid data.... what should i do?

Outcomes