cancel
Showing results for 
Search instead for 
Did you mean: 

USB suspend example

rubenruizmontero
Associate II
Posted on December 21, 2011 at 18:12

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.
10 REPLIES 10
roman1
Associate III
Posted on February 12, 2015 at 16:18

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