How to I disable the USB on the STM32L4
Hi
I am using the USB CDC on a STM32L433 with the command MX_USB_DEVICE_Init(); to communicate through the USB. In my app, I go into standby mode (by using the HAL_PWR_EnterSTANDBYMode()) command. How do I disable the USB before entering standby? I tried the the command USBD_DeInit(&hUsbDeviceFS) , but got a hardware fault. Anyone let me know the best way to disable it?
Best Regards
Scott
