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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2017-09-29T13:47:55+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2017-09-29T13:47:55+02:00</updated>

		<published>2017-09-29T13:47:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=11039&amp;p=33094#p33094</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=11039&amp;p=33094#p33094"/>
		<title type="html"><![CDATA[Re: USB\DEVICE_DESCRIPTOR_FAILURE]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=11039&amp;p=33094#p33094"><![CDATA[
<blockquote class="uncited"><div>added a 1k5 ohm pullup resistor to D- and 1m ohm pullup resistor to D+. </div></blockquote> Using the latest code examples that will not work. Or maybe you just failed to explain it right? The 1k5 goes from D- to the (normally middle pin) pull up pin. The Driver turns this pull up on and off. It may work with the right usb timeouts but I would just wire it up the right way for now. Also I never heard of pulling up D+ .<br /><br /><br />Did you try any of the pre built examples?  I have also heard of issue win Win10.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Sep 29, 2017 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jbrielBVB09]]></name></author>
		<updated>2017-09-21T08:47:43+02:00</updated>

		<published>2017-09-21T08:47:43+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=11039&amp;p=33060#p33060</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=11039&amp;p=33060#p33060"/>
		<title type="html"><![CDATA[USB\DEVICE_DESCRIPTOR_FAILURE]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=11039&amp;p=33060#p33060"><![CDATA[
first, please sorry. i am a total newbie to build custom µc circuits and programming in c. <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":-D" title="Very Happy" /> normally i only do c#, java and javascript projects.<br /><br />I build up a simple circuit with a attiny85 and 3,3v drop regulator and a usb connection. i customized the usbconfig.h and the project perfectly builds in atmel studio, but if i plug it to my windows 10 notebook it just says USB\DEVICE_DESCRIPTOR_FAILURE. if tried to reinstall the libusb driver as well as automatically select a driver in the windows device manager but still windows can not even get the correct vendorid. if tried everything i could imagine for the last couple of days but got no progress at all. meanwhile i am close to totally freak out. does someone of you guys have an other idea? please help...<br /><br />i build up the usb connection with D+ on PB0 and D- on PB1. I added 68 ohm resistors to limit the current and added a 1k5 ohm pullup resistor to D- and 1m ohm pullup resistor to D+. If i check the voltage the attiny provides about 3.1v at d- and about 0.4v at d+.<br /><br />this is my main file:<br />it should simply build up a usb connection and make a led on PB4 blink with 2hz...<br /><br /><div class="codebox"><p>Code: </p><pre><code>#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;avr/wdt.h&gt;<br /><br />#include &quot;usbdrv.h&quot;<br /><br />#define F_CPU 16500000UL<br />#include &lt;util/delay.h&gt;<br /><br />USB_PUBLIC uchar usbFunctionSetup(uchar data&#91;8&#93;) {<br />        return 0; // do nothing for now<br />}<br /><br />int main() {<br />    uchar i;<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 />    DDRB = 0b00010000;<br /> <br />    while(1) {<br />        wdt_reset(); // keep the watchdog happy<br />        usbPoll();<br />        <br />        //make the led blink with 2hz<br />        PORTB = 0b00010000;<br />        _delay_ms(250);<br />        PORTB = 0b00000000;<br />        _delay_ms(250);<br />    }<br />        <br />    return 0;<br />}<br /></code></pre></div><br /><br />i build up the project along the tutorial from codeandlife <a href="http://codeandlife.com/2012/01/29/avr-attiny-usb-tutorial-part-1/" class="postlink">http://codeandlife.com/2012/01/29/avr-attiny-usb-tutorial-part-1/</a><br /><br />if i comment out all the usb stuff in the code, the µc starts blinking as excpected, so that i rather think of a hardware or windows error...<br /><br />thanks a lot<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=23047">jbrielBVB09</a> — Thu Sep 21, 2017 8:47 am</p><hr />
]]></content>
	</entry>
	</feed>
