Is it possible to change clock frequency when detecting connection to USB device?
I have project that I'm designing around an STM32F411 that 99%+ of the time will not have a USB device attached. I'd like to run at the top clock frequency of 100MHz. I see that I can not do that and use the USB device as it needs to run at 48MHz. I'd need to drive the main clock at 72MHz to achieve the desired 48MHz USB clock.
I'm wondering if I can reconfigure to the main clock to run @ 72Mhz when detection of the USB connection and revert back to 100MHz after removal.
