2016-11-25 9:07 AM
Due to power saving I want to disable the USB stack on the fly.
For comparison: If I do not enable the USB stack at all (e.g. by not invoking MX_USB_DEVICE_Init()) everything is fine. If I do and decide to shut it down later during runtime viavoid
MX_USB_DEVICE_DeInit(
void
)
{
USBD_DeInit(&hUsbDeviceFS);
}
I can not get the same power consumption results compared to the first approach where I do not enable the USB stack at all. So there must be something that consumes still power.
Any ideas what I am missing? I am working with an F411 and the HALV1.3.2.
Any help is appreciated!
2016-11-25 11:22 AM
Maybe it's easier and faster to reset the USB through respective bit in RCC_AHBxRSTR...?
JW2016-11-28 3:31 AM
Hello,
I recommend you using the last version of STM32CubeF4 firmware (I think available version of HAL is V1.5.2.) and CubeMx tool v4.17.0 .Regards2016-11-28 5:54 AM
2016-11-28 6:03 AM
yes, this would be the most obvious choice but since we had such bad experience we the HAL and just established a somehow stable version of our sw we are very cautious considering changes of the HAL.
But yeah it might be the time to actually look into this...We’re moving the ST Community to a new platform to give you a better and more reliable community experience.