Skip to main content
Barbie
Associate III
January 13, 2015
Question

STM32F205 close USB HW complitly

  • January 13, 2015
  • 1 reply
  • 784 views
Posted on January 13, 2015 at 13:09

I have an application which use the USB in the Boot but close it when I move to the APP. On the APP I stay on the stop mode. I notice I have extra 0.5ma there. When I didn't active the USB at all in the Boot I get less 0.5ma on the stop mode.

I do as follow to close the USB

''

&sharpifdef USE_USB_OTG_HS

                        NVIC_DisableIRQ(OTG_HS_IRQn); // disable USB HS IRQ 

&sharpelse

                        NVIC_DisableIRQ( OTG_FS_IRQn); // disable USB FS IRQ 

&sharpendif   

                     RCC_AHB2PeriphClockCmd(RCC_AHB2Periph_OTG_FS, DISABLE) ; // Disable power to the USB

                    PWR_DeInit(); // close all power

''

Is there any more commande I can do to reduce the extra power, and where it come from?

Thanks

Bar. 

#stm32f205-usb-hw
This topic has been closed for replies.

1 reply

Barbie
BarbieAuthor
Associate III
January 15, 2015
Posted on January 15, 2015 at 12:27

Is there any clue?