2016-09-26 02:52 PM
I'm looking at bringing up a VCP on an STM32F7 using the Nulceo-F746ZG development board.
Now, after running the CubeMX tools it seems all the magic is happening in the CDC_Receive_FS and CDC_Transmit_FS functions in the generated usbd_cdc_if.c file. Just to be sure that this basic example is working, I added ''CDC_Transmit_FS(Buf, *Len);'' just before the return in CDC_Receive_FS. The purpose is to have a simple loop-back so I can load up a terminal and see the bytes go back and forth. Now, when I load up Device Manager, I can see ''STMicroelectronics STLink Virutal COM Port (COM8)''.When I open a terminal program and target COM8, nothing is returned. This method in doing a loop-back should work, right? Or could it be non-functional because a transmit call is in the receive function?2016-09-27 04:03 AM
Hi traud.jason,
Try to follow the CDC-Standalone'' example in at this path: STM32Cube_FW_F7_V1.4.0\Projects\STM32756G_EVAL\Applications\USB_Device\CDC_Standalone Also this gives you general guidelines on this. -Hannibal-2016-10-02 10:00 AM