<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/1232" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-02-23T23:19:09+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/1232</id>

		<entry>
		<author><name><![CDATA[queuetue]]></name></author>
		<updated>2008-02-23T23:19:09+02:00</updated>

		<published>2008-02-23T23:19:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4339#p4339</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4339#p4339"/>
		<title type="html"><![CDATA[It works!]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4339#p4339"><![CDATA[
Mystery solved!  I need to remember: anytime you see random behavior, first look for open grounds, then look for noise.<br /><br />At the suggestion of eric_j in #avr on freenode, I added a pair of caps, a 47 uf electrolytic and a 0.1 uf across the power near the avr.  Suddenly, it all works - both on and off bus power, with and without the programmer attached.<br /><br />The programmer must have had enough capacitance to clean up the noise - once I added my own, the circuit works!  Here is the final version, for anyone else that might be having a similar problem.<br /><br /><!-- m --><a class="postlink" href="http://i248.photobucket.com/albums/gg193/queuetue/tascoswitch.png">http://i248.photobucket.com/albums/gg19 ... switch.png</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=857">queuetue</a> — Sat Feb 23, 2008 11:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-02-23T20:35:33+02:00</updated>

		<published>2008-02-23T20:35:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4338#p4338</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4338#p4338"/>
		<title type="html"><![CDATA[device descriptor read/64, error -62]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4338#p4338"><![CDATA[
Even wierder, the circuit works fine - as long as i work from bus power and my AVR ISP Mkii programmer is also attached - to the same computer.  <br /><br />If the programmer and device are plugged into different computers' USB ports, it doesn't work.  Ground has good continuity from avr-usb plug... Why would it care about the programmer?<p>Statistics: Posted by Guest — Sat Feb 23, 2008 8:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-02-22T23:04:11+02:00</updated>

		<published>2008-02-22T23:04:11+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4330#p4330</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4330#p4330"/>
		<title type="html"><![CDATA[device descriptor read/64, error -62]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4330#p4330"><![CDATA[
Yes, this code is intended to handle this. However, it has been developed for the 2313 and it may not be suitable for your pin assignment and AVR type.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Feb 22, 2008 11:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[queuetue]]></name></author>
		<updated>2008-02-21T23:34:30+02:00</updated>

		<published>2008-02-21T23:34:30+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4315#p4315</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4315#p4315"/>
		<title type="html"><![CDATA[device descriptor read/64, error -62]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4315#p4315"><![CDATA[
<blockquote><div><cite>christian wrote:</cite>Since you have made sure that the AVR runs on 12 MHz, the most likely causes are missing zener diodes in 5 V designs or <br /></div></blockquote><br /><br />I've got the zeners in the circuit and in the linked schematic, I think - am I missing something?<br /><br /><blockquote><div><cite>christian wrote:</cite>an incorrect initialization of the pins involved for USB. All pins must be configured as inputs without internal pull-up resistor.<br /></div></blockquote><br /><br />The PowerSwitch code handles this, doesn't it?<br /><br />#define USBMASK     ((1&lt;&lt;USB_CFG_DPLUS_BIT) | (1&lt;&lt;USB_CFG_DMINUS_BIT))  /* mask for USB I/O bits */<br /><br />    DDRD = ~(1 &lt;&lt; 2);   /* all outputs except PD2 = INT0 */<br />    PORTD = 0;<br />    PORTB = 0;          /* no pullups on USB pins */<br />    DDRB = ~USBMASK;    /* all outputs except USB data */<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=857">queuetue</a> — Thu Feb 21, 2008 11:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-02-21T22:21:38+02:00</updated>

		<published>2008-02-21T22:21:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4313#p4313</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4313#p4313"/>
		<title type="html"><![CDATA[device descriptor read/64, error -62]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4313#p4313"><![CDATA[
Since the device shows up with different addresses in the log file within a period of 2 seconds, I suppose that enumeration fails.<br /><br />Since you have made sure that the AVR runs on 12 MHz, the most likely causes are missing zener diodes in 5 V designs or an incorrect initialization of the pins involved for USB. All pins must be configured as inputs without internal pull-up resistor.<br /><br />As far as I remember, the &quot;new device&quot; message occurs even for a single pull-up resistor on D-.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Thu Feb 21, 2008 10:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[queuetue]]></name></author>
		<updated>2008-02-21T01:18:06+02:00</updated>

		<published>2008-02-21T01:18:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4295#p4295</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4295#p4295"/>
		<title type="html"><![CDATA[device descriptor read/64, error -62]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1232&amp;p=4295#p4295"><![CDATA[
I'm building the simplest AVR-USB circuit I can, using the atmega324p and based off of the powerSwitch demo, running completely on external 5v power.  When I connect it to linux, I get<br /><br />Feb 20 17:25:02 foo kernel: [66496.580000] usb 1-5: new low speed USB device using ohci_hcd and address 29<br />Feb 20 17:25:02 foo kernel: [66496.760000] usb 1-5: device descriptor read/64, error -62<br />Feb 20 17:25:02 foo kernel: [66497.044000] usb 1-5: device descriptor read/64, error -62<br />Feb 20 17:25:02 foo kernel: [66497.324000] usb 1-5: new low speed USB device using ohci_hcd and address 30<br />Feb 20 17:25:03 foo kernel: [66497.504000] usb 1-5: device descriptor read/64, error -62<br />Feb 20 17:25:03 foo kernel: [66497.788000] usb 1-5: device descriptor read/64, error -62<br />Feb 20 17:25:03 foo kernel: [66498.068000] usb 1-5: new low speed USB device using ohci_hcd and address 31<br />Feb 20 17:25:04 foo kernel: [66498.476000] usb 1-5: device not accepting address 31, error -62<br />Feb 20 17:25:04 foo kernel: [66498.652000] usb 1-5: new low speed USB device using ohci_hcd and address 32<br />Feb 20 17:25:04 foo kernel: [66499.060000] usb 1-5: device not accepting address 32, error -62<br /><br />My schematic is here: <!-- m --><a class="postlink" href="http://i248.photobucket.com/albums/gg193/queuetue/IMG_0109_2.jpg">http://i248.photobucket.com/albums/gg19 ... 0109_2.jpg</a><!-- m --> - the actual circuit has a connection from the D+ line to PD2/INT0, I just forgot to draw it here.  Also in this schematic is what I believe is the USB &quot;B&quot; type socket pinout.  The diodes are 1N5226B 3v6 zeners, the caps 22p ceramic, and the crystal is a 12Mhz (FOX120-20)<br /><br />Here are two pictures of the circuit: an overview and a detail of the USB section.  <!-- m --><a class="postlink" href="http://i248.photobucket.com/albums/gg193/queuetue/IMG_0107.jpg">http://i248.photobucket.com/albums/gg19 ... G_0107.jpg</a><!-- m --> and <!-- m --><a class="postlink" href="http://i248.photobucket.com/albums/gg193/queuetue/IMG_0108.jpg">http://i248.photobucket.com/albums/gg19 ... G_0108.jpg</a><!-- m --><br /><br />The software is the stock powerswitch software, with USB_CFG_IOPORTNAME B,  USB_CFG_DMINUS_BIT 0, and USB_CFG_DPLUS_BIT 1, makefile has DEVICE set to atmega324p, uploaded via AVRDUDE.  The 12 Mhz crystal has been fused and confirmed to be working through LED timing tests.<br /><br />I think I did everything right - did I miss something?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=857">queuetue</a> — Thu Feb 21, 2008 1:18 am</p><hr />
]]></content>
	</entry>
	</feed>
