AnsweredAssumed Answered

STM32F205 close USB HW complitly

Question asked by strauss.bar on Jan 13, 2015
Latest reply on Jan 15, 2015 by strauss.bar
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
"
#ifdef USE_USB_OTG_HS
                        NVIC_DisableIRQ(OTG_HS_IRQn); // disable USB HS IRQ 
#else
                        NVIC_DisableIRQ( OTG_FS_IRQn); // disable USB FS IRQ 
#endif   
                     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. 

Outcomes