Page 1 of 1

USB Device NOT Recognized: tried many things

Posted: Sat Mar 20, 2010 8:08 pm
by abhi
Hi

I need an interfacing mechanism from USB to my controller. I decided and tried, unsuccessfully so far, to adapt and use your implementation. I am using an ATMega8L controller. I have downloaded and tried to get your reference projects working. So far I have tried PowerSwitch, USBaspLoader and HIDKeys.
I am using the metaboard circuit and I have made sure that there were no mistake in connections.

I have tried with atmega8 and atmega8l, with crystals of 12 and 16MHz.
I have remembered to change the port name, bit numbers and F_CPU (when neccessary) in usbconfig.h.
I am using zeners on D+ and D- lines.
I programmed the flash using USBasp(It's working, hence no issues about driver.) puchased from a store, and am sure that the fuse bits I set are correct.(I tried many combinations. I have been trying since the last 12 days.)
I have tried to get it working with both linux and windows.
lsusb fails to detect, whereas usbview gives a "device failed enumeration".

The voltage on D- is at 3.07 V, while Vcc is at 5.15 V. D+ stays at 0.

Is there any more debugging that may help?

Thanks for any suggestions or ideas.

Abhi.

**EDIT: I got it. I was making the classical AVR mistake. The fuse bits were set wrong. I'll start my actual project now. Will inform and upload when ready.

Regards

Abhi

Re: USB Device NOT Recognized: tried many things

Posted: Sat Mar 20, 2010 10:07 pm
by playboxy
Hi,
yeah I have the same problem.
I've did everything, how it is described in the Readme.
But I've Problem with the Firmware.
I've a tiny2313, so I changed the Device in the Makefile.
After make all and flashed the Firmware.
Windows XP says "Device not recognized"
I'm sure that I've build the Hardware like the circuit ...
And now I don't know where the Problem is...
May You can help us

Re: USB Device NOT Recognized: tried many things

Posted: Mon Mar 22, 2010 11:00 pm
by abhi
I was erring in my fuse bit settings. I am a beginner with AVRs and the concepts of fuse bits are new to me. You too should recheck them.

Or else you may read the comprehensive post by Aln in this forum before at http://forums.obdev.at/viewtopic.php?f=8&t=3910.

Hope this helps.

Abhi

Re: USB Device NOT Recognized: tried many things

Posted: Sun Mar 28, 2010 8:16 pm
by jazzy2011
I have had this problem also. But I have had success too!!
I am making robot sub system controllers to hook to a laptop. This is what i have ran across so far...

atmega8a and atmega168 both function at 3.3v, np

now the nasty little clitch I found:

you cannot use any other pins on the port that has the d- and d+ lines connected!
not even portd, which happens to have INT0...
I have tried to use these pins as inputs and outputs, with no control
I have tried to use pwm, starts to work (thats what the oscope tells me anyhow), then quits..

When the d- and d+ pins are on a port all by themselves, and not the port that int0 is on....
all will work!

I am in search of the problem.
Hope this helps