cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F205 close USB HW complitly

Barbie
Associate II
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
1 REPLY 1
Barbie
Associate II
Posted on January 15, 2015 at 12:27

Is there any clue?