2015-01-13 04:09 AM
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?ThanksBar. #stm32f205-usb-hw2015-01-15 03:27 AM