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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-12-08T16:25:53+02:00</updated>

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

		<entry>
		<author><name><![CDATA[fma]]></name></author>
		<updated>2012-12-08T16:25:53+02:00</updated>

		<published>2012-12-08T16:25:53+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24019#p24019</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24019#p24019"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24019#p24019"><![CDATA[
I'll check that. Thanks!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=10107">fma</a> — Sat Dec 08, 2012 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-08T14:36:36+02:00</updated>

		<published>2012-12-08T14:36:36+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24017#p24017</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24017#p24017"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24017#p24017"><![CDATA[
I believe it's simply the pull-up resistor on the D- line that causes Windows to detect you have plugged something in.<br /><br />Check you have the D+ and D- lines the right way round - the correct colour coding is in Wikipedia, but the first Google hit for the image search has the green and white reversed (or it did when I looked).<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Sat Dec 08, 2012 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fma]]></name></author>
		<updated>2012-12-08T14:02:22+02:00</updated>

		<published>2012-12-08T14:02:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24016#p24016</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24016#p24016"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24016#p24016"><![CDATA[
Ok, I'll check that...<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=10107">fma</a> — Sat Dec 08, 2012 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-08T12:52:33+02:00</updated>

		<published>2012-12-08T12:52:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24015#p24015</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24015#p24015"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24015#p24015"><![CDATA[
Ah OK. Even on a Windows machine it should detect you plugging it in, that is just a question of the voltage levels, or something. It should come up with an error message, about a device that has malfunctioned, even if nothing works on your board.<br /><br />The D- and D+ should have square waves (or rather, square pulses) of 3.3V approximately.<br /><br />There's a picture here:<br /><br /><!-- m --><a class="postlink" href="http://people.ece.cornell.edu/land/courses/eceprojectsland/STUDENTPROJ/2007to2008/blh36_cdl28_dct23/images/waveform_lowres.jpg">http://people.ece.cornell.edu/land/cour ... lowres.jpg</a><!-- m --><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Sat Dec 08, 2012 12:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fma]]></name></author>
		<updated>2012-12-08T10:15:45+02:00</updated>

		<published>2012-12-08T10:15:45+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24012#p24012</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24012#p24012"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24012#p24012"><![CDATA[
Yes for all questions. I double checked it. I also tried on a windows machine, and nothing is detected...<br /><br />What are the tricky points? What should I check on the hardware side? What levels should I see on the D+/D- lines? I can use an oscilloscope, so can you tell me what is the shape I should see there?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=10107">fma</a> — Sat Dec 08, 2012 10:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-08T10:08:02+02:00</updated>

		<published>2012-12-08T10:08:02+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24011#p24011</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24011#p24011"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=24011#p24011"><![CDATA[
I don't know Linux so I don't know what kernel message you should see.<br /><br />Are the basics correct? You're using a 12 MHz crystal and 5V supply? Is your device powered from the USB?<br /><br />Have you gone through all the settings in the config file?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Sat Dec 08, 2012 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fma]]></name></author>
		<updated>2012-12-06T18:52:19+02:00</updated>

		<published>2012-12-06T18:52:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23934#p23934</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23934#p23934"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23934#p23934"><![CDATA[
Yes, sure, I can see it turned on at startup, and turned off ~0,5s later...<br /><br />What should I see on the kernel messages? And what parts of the code are involved in the initializing com with the kerlen driver?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=10107">fma</a> — Thu Dec 06, 2012 6:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-06T12:35:54+02:00</updated>

		<published>2012-12-06T12:35:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23932#p23932</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23932#p23932"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23932#p23932"><![CDATA[
Yes, but does it actually come on?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Thu Dec 06, 2012 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[fma]]></name></author>
		<updated>2012-12-06T10:10:57+02:00</updated>

		<published>2012-12-06T10:10:57+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23931#p23931</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23931#p23931"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23931#p23931"><![CDATA[
Yes, I have a led: it is turned on before usb init, and turned off after usb init:<br /><br /><div class="codebox"><p>Code: </p><pre><code>int main() {<br />    uchar i;<br /><br />    DDRD = 32; // PD5 as output<br /><br />    PORTD |= 32; // turn LED on<br /><br />    wdt_enable(WDTO_1S); // enable 1s watchdog timer<br /><br />    usbInit();<br /><br />    usbDeviceDisconnect(); // enforce re-enumeration<br />    for(i = 0; i&lt;250; i++) { // wait 500 ms<br />        wdt_reset(); // keep the watchdog happy<br />        _delay_ms(2);<br />    }<br />    usbDeviceConnect();<br /><br />    sei(); // Enable interrupts after re-enumeration<br /><br />    PORTD &amp;= ~32; // turn LED off<br /><br />    while(1) {<br />        wdt_reset(); // keep the watchdog happy<br />        usbPoll();<br />    }<br /><br />    return 0;<br />}<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=10107">fma</a> — Thu Dec 06, 2012 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[winelight]]></name></author>
		<updated>2012-12-05T10:05:21+02:00</updated>

		<published>2012-12-05T10:05:21+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23924#p23924</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23924#p23924"/>
		<title type="html"><![CDATA[Re: First project]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=7808&amp;p=23924#p23924"><![CDATA[
Do you have a debug LED on one of the output pins? This is really useful. You can flash it in the initialisation routines (and anywhere else) just to know that your device is running and has been recognised and is being initialised.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=9486">winelight</a> — Wed Dec 05, 2012 10:05 am</p><hr />
]]></content>
	</entry>
	</feed>
