2011-12-21 09:12 AM
When I try to enter in suspend mode, as soon as I set it, always receive a wake up interrupt request, and can't do it. I'm not sure if I do the correct process, just set FSUSP and then LP_MODE bit, in USB_CNTR register.
Is there any consideration to take into account? I'm looking for an USB example to enter suspend mode or forum discussions, but can't find any solved... Thank you in advance.2015-02-12 07:18 AM
Hi there,
Did anyone figure out how to fix that issue the thread opener talks about? I'm experiencing exactly the same problem.I want to put the USB peripheral in suspend mode when I disconnect the USB cable and wake it up when I connect it again. I'm using that example source code posted above. When disconnecting the USB cable, Suspend() is called as expected. However, shortly after switching to device state SUSPENDED, a wake-up interrupt occurs and the device state is switched back to CONFIGURED.Does anybody have an idea why that wake-up interrupt occurs even if there is no USB cable connected and thus there is no traffic?Regards,Roman