cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4Discovery CDC HOST and Device

pfifre
Associate II
Posted on August 02, 2013 at 11:13

Hi All,

I'm starting a developpement on STM32F4Discovery.

I want to use the two USB controler (HS and FS) in CDC Host and device to implement a serial to USB bridge.

OTG FS peripheral on device side to connect to PC

OTG HS peripheral on Host side to receive CDC USB dongles.

I have implement the OTG FS peripheral and it work fines with a PC on Windows XP.

I'have used the usbd_cdc_core.c and define USE_USB_OTG_FS.

Now I need to implement the host side. I have put a look at the DualCore code before.

Then I declared the USE_USB_OTG_HS and called the USBH_Init to initialize the Host side with USB_OTG_HS_CORE_ID.

Since I have been set the USE_USB_OTG_HS, the CDC on the device side won't receive any serial data on the usbd_cdc_DataOut.

The usbd_cdc_DataIn works fine.

I have seen in the usbd_cdc_core.c that it use the USE_USB_OTG_HS.

Does I make any change on this file?

Does anyone  have made any implementation like this ?

Best regards,

Pascal
0 REPLIES 0