AnsweredAssumed Answered

USB STM32L152VC: switching from HSE 32MHz to MSI 128KHz

Question asked by bruzzi.manfredo on Dec 16, 2014
Hello,
for low power purposes my application normally runs at MSI-128KHz. If USB cable is conencted I switch to HSE-32MHz in order to have USB working and I have to get back to low frequency when disconnecting. 
Problem is that as soon as the frequency is set to low, I receive USB_LP_IRQHandler() interrupt that kill the main loop. How can I disable USB interrupt keeping it working again if cable is re-connected?

Kind regards

Outcomes