Page 1 of 1

Device not recognized after PC start

Posted: Sun Jan 04, 2009 11:44 pm
by SlavoT
Hello,

I test ATtiny45 (with internal RC timing) with AVR-USB. It work fine until PC is powered down (also with device), and powered again on with connected ATtiny. ATtiny contain simple PWM application (LED blinking), and when WXP starting, device sometimes stop response (2 from 3 times), and fail to enumerate with VID/PID 0 (repeatedly). This never happen when device is connected after I'm logged in XP. Could be there problem with USB bus initialization in AVR-USB, or between my keyboard and chair?

Thank,
Slavo T.

Re: Device not recognized after PC start

Posted: Thu Apr 09, 2009 1:32 am
by Tilex
got the same problem.
i hope someone of the developers knows anything about that.
i'm just wondering how to do a firware-based workaround and forced re-connect.
how could the avr detect, that it isn't properly connected?

bye,
tilex.

Re: Device not recognized after PC start

Posted: Sat Apr 11, 2009 2:30 pm
by christian
This may be an issue with RC oscillator calibration. Which method of calibration do you use?

Re: Device not recognized after PC start

Posted: Tue Apr 21, 2009 1:46 am
by macegr
I have discovered that, at least on the PCs I have been testing, setting USB_CFG_IMPLEMENT_HALT = 1 results in perfect behavior on resume. It really doesn't add that many bytes to the code, in exchange for the USB device working perfectly after the PC returns from sleep mode. It even works fine if the USB device is plugged into the computer while sleeping or off.

Re: Device not recognized after PC start

Posted: Tue Apr 21, 2009 11:25 am
by christian
Interesting. Does this affect devices with interrupt endpoints only, or also custom class devices?

And can you track it down to a particular request, e.g. CLEAR_FEATURE or SET_FEATURE for an endpoint?

Re: Device not recognized after PC start

Posted: Wed Apr 22, 2009 11:43 am
by tkerby
I've been seeing the same, I'll try the halt suggestion below and if I still have issues I could plug it into the Catc analyser at work and see what happens at reboot