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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-04-13T10:57:11+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2013-04-13T10:57:11+02:00</updated>

		<published>2013-04-13T10:57:11+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=25126#p25126</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=25126#p25126"/>
		<title type="html"><![CDATA[Re: FIXED - mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=25126#p25126"><![CDATA[
Hi<br /><br />Classic ATmega8 is designed for 5V. So 3.3V may be not safe?<br /><br />If you are still interested, maybe take a look into a recent fork of USBaspLoader: <!-- m --><a class="postlink" href="https://github.com/baerwolf/USBaspLoader">https://github.com/baerwolf/USBaspLoader</a><!-- m --><br />This version has a revised bootloader condition.<br /><br />Best regards<p>Statistics: Posted by Guest — Sat Apr 13, 2013 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2013-01-04T21:12:49+02:00</updated>

		<published>2013-01-04T21:12:49+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24462#p24462</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24462#p24462"/>
		<title type="html"><![CDATA[Re: FIXED - mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24462#p24462"><![CDATA[
Oh thx so much for the offer but that wont be necessary.  I dont think this forum has a pm anyways. I'm just happy to help.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Jan 04, 2013 9:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[amx]]></name></author>
		<updated>2013-01-04T20:00:19+02:00</updated>

		<published>2013-01-04T20:00:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24460#p24460</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24460#p24460"/>
		<title type="html"><![CDATA[Re: FIXED - mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24460#p24460"><![CDATA[
Yeah, now it works. <img class="smilies" src="./../../../images/smilies/icon_smile.gif" alt=":-)" title="Smile" /><br /><br />ulao, since you were the only one who replied, if you want a board pm me a mail address.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19423">amx</a> — Fri Jan 04, 2013 8:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2013-01-04T16:59:19+02:00</updated>

		<published>2013-01-04T16:59:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24456#p24456</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24456#p24456"/>
		<title type="html"><![CDATA[Re: FIXED - mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24456#p24456"><![CDATA[
&quot;I had to comment out the function/macro that initializes the bootloader button.&quot;<br />LOL <br />Yeah... The boot loader is designed to work one &quot;button&quot; is pressed. I overlooked that part <img class="smilies" src="./../../../images/smilies/icon_redface.gif" alt=":oops:" title="Embarassed" /> , good thing you got it, always better to learn it yourself.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Jan 04, 2013 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[amx]]></name></author>
		<updated>2013-01-04T16:16:26+02:00</updated>

		<published>2013-01-04T16:16:26+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24455#p24455</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24455#p24455"/>
		<title type="html"><![CDATA[Re: mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24455#p24455"><![CDATA[
Okay, I fixed it.<br />I had to comment out the function/macro that initializes the bootloader button.<br /><br />This is how the main function looks like:<br /><div class="codebox"><p>Code: </p><pre><code>int __attribute__((noreturn)) main(void)<br />{<br />    /* initialize  */<br />    wdt_disable();      /* main app may have enabled watchdog */<br />//    bootLoaderInit();<br />    odDebugInit();<br />    DBG1(0x00, 0, 0);<br />#ifndef NO_FLASH_WRITE<br />    GICR = (1 &lt;&lt; IVCE);  /* enable change of interrupt vectors */<br />    GICR = (1 &lt;&lt; IVSEL); /* move interrupts to boot flash section */<br />#endif<br />//  if(bootLoaderCondition()){<br />        uchar i = 0, j = 0;<br />        initForUsbConnectivity();<br />        do {<br />            usbPoll();<br />#if BOOTLOADER_CAN_EXIT<br />            if(requestBootLoaderExit){<br />                if(--i == 0){<br />                    if(--j == 0)<br />                        break;<br />                }<br />            }<br />#endif<br />//      }while(bootLoaderCondition());  /* main event loop */<br />      } while(1);<br />//  }<br />    leaveBootloader();<br />}</code></pre></div><br /><br />Thanks!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19423">amx</a> — Fri Jan 04, 2013 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[amx]]></name></author>
		<updated>2013-01-04T14:50:08+02:00</updated>

		<published>2013-01-04T14:50:08+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24454#p24454</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24454#p24454"/>
		<title type="html"><![CDATA[Re: mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24454#p24454"><![CDATA[
It is a pretty standard/basic setup:<br /><div class="codebox"><p>Code: </p><pre><code>PD2/INT0 --- R68 --- D+<br />PD3/INT1 --- R68 -+- D-<br />PD4 --- R1k5------|<br /></code></pre></div><br />I am using an atmega8 at 12MHz and 3.3 Volts.<br /><br /><strong class="text-strong">As mentioned before: enumeration works but not immediately after plugging in the cable.</strong><br /><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 />#define USB_CFG_PULLUP_IOPORTNAME   D<br />#define USB_CFG_PULLUP_BIT          4<br /></code></pre></div><br /><br />I modified the main() of the usbaspbootloader slightly since I do not have a dedicated button for the bootloader (on by default)<br /><div class="codebox"><p>Code: </p><pre><code>//  if(bootLoaderCondition()){<br />        uchar i = 0, j = 0;<br />        initForUsbConnectivity();<br />        do {<br />            usbPoll();<br />#if BOOTLOADER_CAN_EXIT<br />            if(requestBootLoaderExit){<br />                if(--i == 0){<br />                    if(--j == 0)<br />                        break;<br />                }<br />            }<br />#endif<br />//      }while(bootLoaderCondition());  /* main event loop */<br />      } while(1);<br />//  }<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19423">amx</a> — Fri Jan 04, 2013 2:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2013-01-04T14:36:22+02:00</updated>

		<published>2013-01-04T14:36:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24453#p24453</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24453#p24453"/>
		<title type="html"><![CDATA[Re: mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24453#p24453"><![CDATA[
Show us your schematic, or at lease the usb side of it.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Fri Jan 04, 2013 2:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[amx]]></name></author>
		<updated>2013-01-04T16:16:51+02:00 </updated>

		<published>2013-01-04T14:13:42+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24452#p24452</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24452#p24452"/>
		<title type="html"><![CDATA[FIXED - mega8 only enumerates after manual reset (PRIZE)]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8175&amp;p=24452#p24452"><![CDATA[
Hello,<br /><br />I have got a problem with the usbasp bootloader: it does not enumerate after plugging in the usb cable (bus powered) but only if I do another manual reset (short the mega8's reset to ground - there is a pull up on the reset-pin).<br /><br />Since I have some spare boards I am happy to give(/mail) one to the first person whose comment resolves the issue.<br /><a href="http://postimage.org/image/mkszpwu9f/" class="postlink"><img src="http://s13.postimage.org/mkszpwu9f/myboard.jpg" class="postimage" alt="Image" /></a><br /><br />Best regards<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=19423">amx</a> — Fri Jan 04, 2013 2:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
