AnsweredAssumed Answered

STM32F205 close USB HW complitly

Question asked by on Jan 13, 2015
Latest reply on Jan 15, 2015 by
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
                        NVIC_DisableIRQ(OTG_HS_IRQn); // disable USB HS IRQ 
                        NVIC_DisableIRQ( OTG_FS_IRQn); // disable USB FS IRQ 
                     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?