cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 USB Disconnect detected interrupt problem

chandu1
Associate II
Posted on July 15, 2014 at 07:22

Hi,

I am presently working on STM32F407 USB, for my understanding i am referring the RM0090 Reference manual.

In that manual for USB OTG FS, Global interrput register (GINTSTS) 29 bit as DISCINT bit at there they given as it is accessible only in host mode.for raising that interrupt we have to mask that interrupt that is  in GINTMSK register 29 bit they given that DISCINT Masked only for device mode.

my problem when i am disconnecting the device from my host port,disconnect interrupt must be raised but that is not happening there is no response from the core.please explain me why it is happening like that and there is any problem in reference manual.

 

Thanks & regards,

Chandu.Kurapati.

#usb-otg-fs
1 REPLY 1
tsuneo
Senior
Posted on July 16, 2014 at 20:28

> there is any problem in reference manual.

I believe the manual has bugs at the part you referred.

RM0090 (DM00031020.pdf)

OTG_FS interrupt mask register (OTG_FS_GINTMSK) - p1265

 

Bit 29 DISCINT: Disconnect detected interrupt mask

 

Note: Only accessible in device mode.  <-- host mode

 

 

OTG_HS interrupt mask register (OTG_HS_GINTMSK) - p1400

 

Bit 29 DISCINT: Disconnect detected interrupt mask

 

Note: Accessible in both host and peripheral modes.  <-- host mode

 

The same document errors are seen on F2 manual, RM0033 (CD00225773.pdf), at OTG_FS_GINTMSK and OTG_HS_GINTMSK

For device (peripheral) mode, plug-in/off is detected at OTG_FS_VBUS pin, when this pin is configured and connected to the VBUS (5V) pin of the USB connector.

OTG_FS_GINTSTS - SRQINT for plug-in

OTG_FS_GOTGINT - SEDET for plug-off

Tsuneo