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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-03-13T10:03:37+02:00</updated>

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

		<entry>
		<author><name><![CDATA[alexn]]></name></author>
		<updated>2010-03-13T10:03:37+02:00</updated>

		<published>2010-03-13T10:03:37+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13635#p13635</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13635#p13635"/>
		<title type="html"><![CDATA[Re: BootLoadHID and Mega16 problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13635#p13635"><![CDATA[
<blockquote><div><cite>VYTAS wrote:</cite>HI I'am going to do the  same fing. Do you reset atmega after boot PIN set to ground?</div></blockquote><br /><br />Hello.<br /><br />I do not use RESET at all. My problem was simple - bad electrical contact. It was hard to find, however.<br />Now everything works fine, and I'll soon make a WEB page of another proto board. Now with SD card slot<br />and Mega16 chip.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1135">alexn</a> — Sat Mar 13, 2010 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-03-13T09:58:12+02:00</updated>

		<published>2010-03-13T09:58:12+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13634#p13634</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13634#p13634"/>
		<title type="html"><![CDATA[Re: BootLoadHID and Mega16 problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13634#p13634"><![CDATA[
I use folowing settings:<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME      D<br />/* This is the port where the USB bus is connected. <br /><br />#define USB_CFG_DMINUS_BIT      3<br />/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.<br /><br />#define USB_CFG_DPLUS_BIT       4<br />/* This is the bit number in USB_CFG_IOPORT where the USB D+ line is connected.<br /><br /><br />static inline void  bootLoaderInit(void)<br />{<br />    PORTD = 1 &lt;&lt; 5; /* activate pull-up for key */<br />    _delay_us(10);  /* wait for levels to stabilize */<br />}<br /><br />#define bootLoaderCondition()   ((PIND &amp; (1 &lt;&lt; 5)) == 0)   /* True if jumper is set */<br /><br /></code></pre></div><br /><br /><br />I conected wire betwen -D (PORT3) and RXT on my atmega16 and it started to work. In pdf of atmega16 found that <br /><br />&quot;Entering the Boot Loader takes place by a jump or call from the application program.This may be initiated by a trigger such as a command received via USART, or SPI interface.&quot;<p>Statistics: Posted by Guest — Sat Mar 13, 2010 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-03-05T12:34:00+02:00</updated>

		<published>2010-03-05T12:34:00+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13519#p13519</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13519#p13519"/>
		<title type="html"><![CDATA[Re: BootLoadHID and Mega16 problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13519#p13519"><![CDATA[
<blockquote><div><cite>alexn wrote:</cite>The device appears as &quot;unknown USB device&quot; that means that USB is not functional.<br />What else could be wrong ?<br /></div></blockquote><br /><br />Hi!<br /><br />BootLoadHID works fine with ATmega16, but only for:<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME    D<br />#define USB_CFG_DMINUS_BIT      0<br />#define USB_CFG_DPLUS_BIT        2<br /></code></pre></div><br /><br />I don't know why. Any suggestion?<p>Statistics: Posted by Guest — Fri Mar 05, 2010 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2010-02-18T00:27:51+02:00</updated>

		<published>2010-02-18T00:27:51+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13287#p13287</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13287#p13287"/>
		<title type="html"><![CDATA[Re: BootLoadHID and Mega16 problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=13287#p13287"><![CDATA[
HI I'am going to do the  same fing. Do you reset atmega after boot PIN set to ground?<p>Statistics: Posted by Guest — Thu Feb 18, 2010 12:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[alexn]]></name></author>
		<updated>2009-08-28T08:56:50+02:00</updated>

		<published>2009-08-28T08:56:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=3174&amp;p=10694#p10694</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=10694#p10694"/>
		<title type="html"><![CDATA[BootLoadHID and Mega16 problem]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=3174&amp;p=10694#p10694"><![CDATA[
Hi, All.<br /><br />I've tried to use BootLoadHID with ATMEGA16 device and mini-USB (B-type) connector. This does not work.<br />I changed the makefile, setting <br /><br />DEVICE = atmega16<br />BOOTLOADER_ADDRESS = 3800<br /><br />D+ is wired to PD2, D- to PD1<br />The programming mode jumper is on PD0<br /><br />The code is changed to:<br /><br /><div class="codebox"><p>Code: </p><pre><code>static inline void  bootLoaderInit(void)<br />{<br />char i;<br />    PORTD = 1;      /* activate pull-up */<br />    for(i=0;i&lt;10;i++);  /* delay to allow pin voltage to stabilize */<br />}<br /><br />#define bootLoaderCondition()   ((PIND &amp; 1) == 0)<br /></code></pre></div><br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME    D<br />#define USB_CFG_DMINUS_BIT      1<br />#define USB_CFG_DPLUS_BIT        2<br /></code></pre></div><br /><br />The device appears as &quot;unknown USB device&quot; that means that USB is not functional.<br />What else could be wrong ?<br /><br />The crystal is 12 MHz, all other values are default.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1135">alexn</a> — Fri Aug 28, 2009 8:56 am</p><hr />
]]></content>
	</entry>
	</feed>
