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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-03-23T16:48:35+02:00</updated>

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

		<entry>
		<author><name><![CDATA[kwebdesigns]]></name></author>
		<updated>2008-03-23T16:48:35+02:00</updated>

		<published>2008-03-23T16:48:35+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4757#p4757</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4757#p4757"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4757#p4757"><![CDATA[
I finally got it! I made those changes you told me, but I do not think any of those were the problem. I have been using an Olimex development board and I finally breadboarded the circuit without it. Now the device is recognized and I am having no problems. I do not know why I never checked that, but apparently it was the problem. Thank you very much for your help and patience Christan.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=929">kwebdesigns</a> — Sun Mar 23, 2008 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-03-23T15:50:12+02:00</updated>

		<published>2008-03-23T15:50:12+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4756#p4756</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4756#p4756"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4756#p4756"><![CDATA[
I've tried your code just now (sorry, did not have the time to do it earlier).<br />First one comment: You have set F_CPU and DEBUG_LEVEL in main.c. This is not the place where they should be set since these are global settings for all modules. They should be added to the compiler command line with -DF_CPU=12000000 -DDEBUG_LEVEL=2.<br /><br />Since 12 MHz is the default anyway and since the debug level does not matter for functionality, I've left it as it is for testing. However, my board has D+ on Port D bit 2 and D- on Port D bit 4. I've therefore updated usbconfig.h and the initialization in main() to<br /><div class="codebox"><p>Code: </p><pre><code>    DDRD = ~&#40;&#40;1 &lt;&lt; 2&#41;|&#40;1&lt;&lt;4&#41;&#41;;<br /></code></pre></div><br /><br />Then I found that you left a modification you made for testing: You renamed the interrupt vector in usbdrvasm12.inc from USB_INTR_VECTOR to USB_INTRA_VECTOR. I've reverted this change, compiled the project and flashed it.<br /><br />The resulting device enumerates correctly and the descriptors can be read. It is recognized as PowerSwitch. In other words: It works for me.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Sun Mar 23, 2008 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kwebdesigns]]></name></author>
		<updated>2008-03-23T14:24:26+02:00</updated>

		<published>2008-03-23T14:24:26+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4755#p4755</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4755#p4755"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4755#p4755"><![CDATA[
Christan,<br />Have you had time to test the code I sent you? Sorry I haven't contacted you in a while, but I have been gone the past few days. Thanks for taking the time to help me.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=929">kwebdesigns</a> — Sun Mar 23, 2008 2:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tvdbon]]></name></author>
		<updated>2008-03-20T20:52:51+02:00</updated>

		<published>2008-03-20T20:52:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4730#p4730</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4730#p4730"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4730#p4730"><![CDATA[
I'm getting the same problem, although I still trying everything on a breadboard with a 16Mhz crystal. I also don't have anything wired in terms of the powerswitch switching stuff. Just everything that I need for the usb itself.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=944">tvdbon</a> — Thu Mar 20, 2008 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-03-19T00:01:33+02:00</updated>

		<published>2008-03-19T00:01:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4704#p4704</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4704#p4704"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4704#p4704"><![CDATA[
Yes, please mail me the code through <!-- m --><a class="postlink" href="http://www.obdev.at/products/avrusb/feedback.html">http://www.obdev.at/products/avrusb/feedback.html</a><!-- m --><br /><br />I might have a hardware to run it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Wed Mar 19, 2008 12:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kwebdesigns]]></name></author>
		<updated>2008-03-18T23:56:45+02:00</updated>

		<published>2008-03-18T23:56:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4702#p4702</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4702#p4702"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4702#p4702"><![CDATA[
I rebuilt the circuit and I am still getting ~3V levels on both lines. I have built the circuit exactly like the easylogger circuit. This must be a hardware error. This isn't making sense. I don't have an oscilloscope, but I think I am going to order one. Is it okay if I e-mail you the code I'm using to rule out that possibility?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=929">kwebdesigns</a> — Tue Mar 18, 2008 11:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-03-18T23:43:13+02:00</updated>

		<published>2008-03-18T23:43:13+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4699#p4699</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4699#p4699"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4699#p4699"><![CDATA[
Since you don't get any debug logs, AVR-USB does not send any data (except the disconnect at boot time, but that would be D+ and D- at 0 V). The static 3 V level must therefore come from the host. But there's no situation where you can see extended periods of high level on D+, not even a pulse sequence with an average close to 3 V.<br /><br />A scope would be pretty useful to see what's going on...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Mar 18, 2008 11:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kwebdesigns]]></name></author>
		<updated>2008-03-18T23:33:53+02:00</updated>

		<published>2008-03-18T23:33:53+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4696#p4696</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4696#p4696"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4696#p4696"><![CDATA[
Yes. Whenever I plug in the USB cable and keep the multimeter on D+ it goes up to 3V. Is that bad? If so, it's possible that I am getting bad readings somehow.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=929">kwebdesigns</a> — Tue Mar 18, 2008 11:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-03-18T23:29:31+02:00</updated>

		<published>2008-03-18T23:29:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4695#p4695</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4695#p4695"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4695#p4695"><![CDATA[
During AVR reset it goes up to 3 V? How can this be?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Tue Mar 18, 2008 11:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kwebdesigns]]></name></author>
		<updated>2008-03-18T23:26:52+02:00</updated>

		<published>2008-03-18T23:26:52+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4694#p4694</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4694#p4694"/>
		<title type="html"><![CDATA[AVR-USB Device Not Recognized on Atmega8]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1299&amp;p=4694#p4694"><![CDATA[
Sorry about that. D+ stays at 0, but during a reset it comes up to 3V temporarily. I'm rebuilding the circuit and what should I have for resistor values, clamping diodes, etc.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=929">kwebdesigns</a> — Tue Mar 18, 2008 11:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
