|
![]() USB
![]() Suspend/Resume at same time?
|
| next newest topic | next oldest topic |
| Author | Topic: Suspend/Resume at same time? |
|
egawtry Member |
I am having trouble with a few machines. They (the hosts) send a suspend twice, a reset, then suspend/resume at the same time over and over. The machine says, "USB device not recognized". Anyone understand this? IP: Logged |
|
Tsuneo Member |
Does it occur just after plug in of USB connector? The USB engine (SIE) on 'F32x/34x always detects Suspend when no bus activity is observed for 3 ms. But you can ignore Suspend evnet just after plug in, for 1 second after plug in (*1). - On the power-up initialization, disable SUSEN (POWER.0 - USB register) (*1) USB 2.0 Connect Timing ECN.pdf (included in zip file of USB 2.0 spec on USB.org) Post-connect current timing Tsuneo IP: Logged |
|
egawtry Member |
Thanks Tsuneo, I hope that is the solution. If it is, I will post the fix to the forum. -Erik IP: Logged |
|
egawtry Member |
No go. Any other ideas? This bug appeared from nowhere after working for years. I am using the SiLabs MSD code as my base. Tsuneo, you may remember helping me debug it several years back. I noticed that SiLabs took most of our fixes we posted here and incorporated them into AN282SW. :-) -Erik P.S. They are still missing: FLSCL |= 0x90; // set 48MHz for flash After the clock init though. [This message has been edited by egawtry (edited August 01, 2010).] IP: Logged |
|
Tsuneo Member |
Please give us the details more. 1) Does it occur just after plug in of USB connector? Or, wakeup after PC stand-by, or PC reboot? What is the OS version? 2) Is your device bus-powered or self-powered? 3) When your firmware doesn't enable SUSEN (POWER.0) at all, (ie. if it always ignores Suspend), is it enumerated fine? Tsuneo [This message has been edited by Tsuneo (edited August 01, 2010).] IP: Logged |
|
egawtry Member |
Hi Tsuneo, 1) Yes, on initial connection. Any version of Windows (W2K, XP, Vista) except Win7 (Win7 always works). After hacking for a few hours, it seems stable if I set POWER after a two second delay. Thanks! P.S. After 9 days of 18 hour work days, finally some results! Thanks again. [This message has been edited by egawtry (edited August 02, 2010).] IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?