Page 1 of 1

stm32f4discovery usb-cdc problem

Posted: Wed Mar 04, 2015 11:15 pm
by deadlyboy
hi every body ,
i want to send and receive data over usb cdc, the example for stm32f4 implemented in olimex board, and in usb-otg2 and in discovery board the usb board is connected to otg1(USBD1)

the only different i saw in other opensource project was in

Code: Select all

static const SerialUSBConfig serusbcfg = {
  &USBD1,
  USBD2_DATA_REQUEST_EP,
  USBD2_DATA_AVAILABLE_EP,
  USBD2_INTERRUPT_REQUEST_EP
};


i chnged USBD2 to USBD1 , but it's not recognized by my system(win7).
i already installed stm32 usb cdc drivers .

is there any other configuration to make this work for stm32f4discovery(usb-otg1)??

----
thanks in advance
MA

Re: stm32f4discovery usb-cdc problem

Posted: Thu Mar 05, 2015 9:14 am
by Giovanni
Hi,

In the main() function there is the USB initialization, you have to change that too.

Giovanni

Re: stm32f4discovery usb-cdc problem

Posted: Thu Mar 05, 2015 2:53 pm
by deadlyboy
i don't know what is going wrong.
windows can't recognize my com port.

in STM32 demos :i suppose ARMCM4-STM32F407-DISCOVERY-MEMS using otg1 (PA9,PA10,PA11,PA12).
i build this demo and program micro with that,

and windows exactly can recognize com port, but when i open the Serialport terminal(like tera term) it shows nothing ??
what is it's Baud rate??

is there any possibility that my virtual com port driver has problem or ...
any idea would be great .

-----
thanks in advance
MA

Re: stm32f4discovery usb-cdc problem

Posted: Thu Mar 05, 2015 3:20 pm
by Giovanni
Hi,

The baud rate is not important, that demo should just work.

Check silly things like selecting the right com port in the terminal, cables, hubs etc.

Giovanni