AnsweredAssumed Answered

Problem of connection when using USB OTG device (HS in Full Speed mode)

Question asked by bernard.thomas on Apr 18, 2013
Latest reply on Sep 30, 2014 by scott.gordon.001
Hello everybody,

I have a board with stm32f207 and I use GPIO_AF_OTG2_FS as USB device connection, and I have sometime a strange problem when I plug the USB cable.

When I plug the cable, all is working correctly and I go into all steps of USB detection (reset, enumeration, addressing, ...).

After that, if I unplug and re-plug the cable, the connection is sometime not recognize by the PC.

I made some diagnostic and in this case some interrupts occur (sessreqintr, usbreset, enumdone), but the process stop here and I never go into addressed state.

If fact, the configuration of the USB stack from ST is not really clear about the defines. So my configuration is :
- GPIO (portB : 12, 13, 14, 15) as alternate function GPIO_AF_OTG2_FS (excepted VBUS which is on input mode)

Is there anybody with a good idea to help me?