<?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/3056" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2009-12-11T23:06:57+02:00</updated>

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

		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2009-12-11T23:06:57+02:00</updated>

		<published>2009-12-11T23:06:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3056&amp;p=12427#p12427</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=12427#p12427"/>
		<title type="html"><![CDATA[Re: [SOLVED] v-usb on atmega32 and protoboard]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=12427#p12427"><![CDATA[
If you are unsure, remove the zeners and lower the supply with two series diodes. If that works, look for other zener diodes.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Dec 11, 2009 11:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tombaugh]]></name></author>
		<updated>2009-11-15T03:23:09+02:00</updated>

		<published>2009-11-15T03:23:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3056&amp;p=11972#p11972</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=11972#p11972"/>
		<title type="html"><![CDATA[Re: [SOLVED] v-usb on atmega32 and protoboard]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=11972#p11972"><![CDATA[
I'm having the exact same problem right now, using BZX55C3V6 500mW zeners. Could that be the problem, and should I start looking for 250mW diodes?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=3117">tombaugh</a> — Sun Nov 15, 2009 3:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lucio]]></name></author>
		<updated>2009-07-30T05:14:10+02:00</updated>

		<published>2009-07-30T05:14:10+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3056&amp;p=10326#p10326</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=10326#p10326"/>
		<title type="html"><![CDATA[Re: [SOLVED] v-usb on atmega32 and protoboard]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=10326#p10326"><![CDATA[
always, and i mean always, make sure you are using low current zener diodes. That was it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2574">lucio</a> — Thu Jul 30, 2009 5:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lucio]]></name></author>
		<updated>2009-07-25T23:50:06+02:00</updated>

		<published>2009-07-25T23:50:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3056&amp;p=10291#p10291</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=10291#p10291"/>
		<title type="html"><![CDATA[[SOLVED] v-usb on atmega32 and protoboard]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3056&amp;p=10291#p10291"><![CDATA[
Hello all,<br /><br />Ive spent a lot of trying trying to make this work. I have the stk500 i am using to program the atmega32. Then i put the chip on the protoboard where i have implemented a lot of different variations on the circuits trying to get this to work.<br /><br />The micro is runinng at 16mhz. These are my Makefile settings:<br /><div class="codebox"><p>Code: </p><pre><code>DEVICE  = atmega32<br />F_CPU   = 16000000   # in Hz<br />FUSE_L  = 0x9f<br />FUSE_H  = 0xc9</code></pre></div><br /><br />And this are the ones from the .h&quot;<br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DMINUS_BIT      3<br />#define USB_CFG_DPLUS_BIT       2<br /></code></pre></div><br />The rest is all the same!<br /><br />The current designis based on with-zener.png from the source distribution. This last one i had to accept some variations as i dont have all the exact part, ie:<br />- the 4u7 capacitor is replaced by to 10u capacitors in series (5u)<br />- the 27p capacitors for the cristar are replaced with 22p capacitors.<br /><br />And thats it. All i get from doing `dmesg` is lots of:<br /><div class="codebox"><p>Code: </p><pre><code>Jul 25 18:43:35 prometeo kernel: &#91;94932.256165&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br />Jul 25 18:43:35 prometeo kernel: &#91;94932.504053&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br />Jul 25 18:43:35 prometeo kernel: &#91;94932.752153&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br />Jul 25 18:43:35 prometeo kernel: &#91;94933.000231&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br /></code></pre></div><br />and when i reset i see:<br /><div class="codebox"><p>Code: </p><pre><code>Jul 25 18:46:09 prometeo kernel: &#91;95086.762985&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br />Jul 25 18:46:09 prometeo kernel: &#91;95087.008410&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br />Jul 25 18:46:10 prometeo kernel: &#91;95087.312042&#93; usb 6-1: new low speed USB device using uhci_hcd and address 119<br />Jul 25 18:46:10 prometeo kernel: &#91;95087.432056&#93; usb 6-1: device descriptor read/64, error -71<br />Jul 25 18:46:10 prometeo kernel: &#91;95087.656031&#93; usb 6-1: device descriptor read/64, error -71<br />Jul 25 18:46:10 prometeo kernel: &#91;95087.876525&#93; usb 6-1: new low speed USB device using uhci_hcd and address 120<br />Jul 25 18:46:10 prometeo kernel: &#91;95087.998014&#93; usb 6-1: device descriptor read/64, error -71<br />Jul 25 18:46:10 prometeo kernel: &#91;95088.164075&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br />Jul 25 18:46:10 prometeo kernel: &#91;95088.496054&#93; hub 6-0:1.0: unable to enumerate USB device on port 1<br /></code></pre></div><br />lsusb of course shows nothing. this is using ubuntu 9.10.<br /><br />And this is the code from my main file:<br /><div class="codebox"><p>Code: </p><pre><code>usbMsgLen_t usbFunctionSetup(uchar data&#91;8&#93;)<br />{<br />   return 0;   /* default for not implemented requests: return no data back to host */<br />}<br /><br /><br />int main (void)<br />{<br />    uchar   i;<br /><br />    wdt_enable(WDTO_1S);<br />    /* Even if you don't use the watchdog, turn it off here. On newer devices,<br />     * the status of the watchdog (on/off, period) is PRESERVED OVER RESET!<br />     */<br />    /* RESET status: all port bits are inputs without pull-up.<br />     * That's the way we need D+ and D-. Therefore we don't need any<br />     * additional hardware initialization.<br />     */<br />    usbInit();<br />    usbDeviceDisconnect();  /* enforce re-enumeration, do this while interrupts are disabled! */<br />    i = 0;<br />    while(--i){             /* fake USB disconnect for &gt; 250 ms */<br />        wdt_reset();<br />        _delay_ms(1);<br />    }<br />    usbDeviceConnect();<br />    sei();<br />    for(;;){                /* main event loop */<br />        wdt_reset();<br />        usbPoll();<br />    }<br />    return 0;<br />}</code></pre></div><br /><br />My next step is to replace the parts that dont match exactly the ones in the schematics, but ive tried many variations and many designs (eg, metaboard) and i cant get this to work with this micro.<br /><br />So, do you guys have any idea what could be going on?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2574">lucio</a> — Sat Jul 25, 2009 11:50 pm</p><hr />
]]></content>
	</entry>
	</feed>
