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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-12-26T18:15:54+02:00</updated>

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

		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2010-12-26T18:15:54+02:00</updated>

		<published>2010-12-26T18:15:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=17136#p17136</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=17136#p17136"/>
		<title type="html"><![CDATA[Re: Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=17136#p17136"><![CDATA[
Its a very common problem when switching to atmel devices.<br /><br />You picked the fuses wrong and choosed a wrong oscillator source.<br /><br />The normal solution is to feed the X1 pin with a 1Mhz clock from another device, like an lm555, living X2 unconnected, and reprogram the fuses with it to the right ones.<br /><br />I had a bigger problem once, ... dont remember exactly but the device wont work with this aproach also.<br /><br />Incredibly the solution was a lot easier, just reprogram the fuses while touching with your finger the X1 and X2 pins. Only thoose pins should be unconnected to any other thing. Choose to erase the device.<br />While touching both pins, run the software quickly many times until it gets reseted, because it may fail, but it worked without using any external clock source.<br /><br />Cheers.<br />Diego<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Sun Dec 26, 2010 6:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ram]]></name></author>
		<updated>2010-12-26T17:50:03+02:00</updated>

		<published>2010-12-26T17:50:03+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=17133#p17133</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=17133#p17133"/>
		<title type="html"><![CDATA[Re: Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=17133#p17133"><![CDATA[
hi everyone <br />recently i uploaded the bootloader to atmega32 using usbasp. i set only BOOTRST flag. but now i'm not able use the atmega32. whenever i try to write a hex file into the flash memory i get this error message<br /><br />avrdude: error: programm enable: target doesn't answer. 1<br />avrdude: initialization failed, rc=-1<br />         Double check connections and try again, or use -F to override<br />         this check.<br /><br /><br />avrdude done.  Thank you.<br /><br />please could someone help me with the problem<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=4757">ram</a> — Sun Dec 26, 2010 5:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Tilex]]></name></author>
		<updated>2009-02-01T16:48:14+02:00</updated>

		<published>2009-02-01T16:48:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7758#p7758</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7758#p7758"/>
		<title type="html"><![CDATA[Problem with Lock Bits]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7758#p7758"><![CDATA[
Hi,<br />I have problems with setting up the lock bits.<br /><br />The Makefile of the USBHID_Bootloader shows the value &quot;0x2F&quot; for the lock bits.<br />But there are two problems with that:<br />1. As I look into the datasheet that can't be a valid value because the highest two Bits are always high.<br />2. I don't know how to set that value in AVR Studio. The Dialog shows only the options of the lock bits but not the values resulting by the settings.<br /><br />I'm using atmega8, AVR Studio, AVRISP (mkI).<br />Look at this image for the lock bit dialog:<br /><br /><img src="http://img223.imageshack.us/img223/5832/avrstudiolockbitsvu5.gif" class="postimage" alt="Image" /><br /><br />Can anyone tell me, what I have to select?<br />bye<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1660">Tilex</a> — Sun Feb 01, 2009 4:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2009-01-22T15:05:22+02:00</updated>

		<published>2009-01-22T15:05:22+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7621#p7621</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7621#p7621"/>
		<title type="html"><![CDATA[Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7621#p7621"><![CDATA[
<blockquote><div><cite>Grendel wrote:</cite>The BOOTRST fuse isn't programmed -- try 0xC8 for the high fuse byte.</div></blockquote><br /><br />I have now the fuses with C8, but also is not working.<br />It is not being recogniced by linux.<br /><br /><a href="http://www.engbedded.com/cgi-bin/fc.cgi/?P_PREV=ATmega32&amp;P=ATmega32&amp;V_LOW=EF&amp;V_HIGH=C9&amp;M_LOW_0x3F=0x2F&amp;M_LOW_0x80=0x80&amp;M_HIGH_0x01=0x00&amp;M_HIGH_0x06=0x00&amp;M_HIGH_0x10=0x00&amp;M_HIGH_0x20=0x00&amp;B_SPIEN=P&amp;B_SUT0=P&amp;B_CKOPT=P&amp;B_BOOTSZ1=P&amp;B_BOOTSZ0=P" class="postlink">Fuses</a><br /><br />I only changed the boot condition to port D pin 7.<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DMINUS_BIT      2<br />#define USB_CFG_DPLUS_BIT       6<br />#define USB_CFG_CLOCK_KHZ       16000<br />#define BOOTLOADER_CAN_EXIT     1<br /><br />static inline void  bootLoaderInit&#40;void&#41;<br />&#123;<br />    PORTD = 1 &lt;&lt; 7; /* activate pull-up for key */<br />    _delay_us&#40;10&#41;;  /* wait for levels to stabilize */<br />&#125;<br /><br />#define bootLoaderCondition&#40;&#41;   &#40;&#40;PIND &amp; &#40;1 &lt;&lt; 7&#41;&#41; == 0&#41;   /* True if jumper is set */</code></pre></div><br /><br /><br /><blockquote><div><cite>Grendel wrote:</cite>Program space is organized by words (2 bytes), hence address 0x3800. 32kb = 16kw.</div></blockquote><br />Ok, thanks. So avrdude is wrong, instead of &quot;bytes&quot; it should say &quot;words&quot;, because it hasnt written 16 kb but 32 kb.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Thu Jan 22, 2009 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Grendel]]></name></author>
		<updated>2009-01-22T02:48:31+02:00</updated>

		<published>2009-01-22T02:48:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7619#p7619</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7619#p7619"/>
		<title type="html"><![CDATA[Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7619#p7619"><![CDATA[
The BOOTRST fuse isn't programmed -- try 0xC8 for the high fuse byte. Program space is organized by words (2 bytes), hence address 0x3800. 32kb = 16kw.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=101">Grendel</a> — Thu Jan 22, 2009 2:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2009-01-21T04:57:29+02:00</updated>

		<published>2009-01-21T04:57:29+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7599#p7599</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7599#p7599"/>
		<title type="html"><![CDATA[Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7599#p7599"><![CDATA[
I have succesfully flashed the bootloader, but i cant get it to work.<br /><br />DEVICE = atmega32<br />BOOTLOADER_ADDRESS = 3800<br />F_CPU = 16000000<br />FUSEH = 0xc9<br />FUSEL = 0xef<br /><br />I can not find more information than this:<br /><br /><div class="codebox"><p>Code: </p><pre><code>usb 2-3: new low speed USB device using ohci_hcd and address 29<br />usb 2-3: device descriptor read/64, error -62<br />usb 2-3: device descriptor read/64, error -62<br />usb 2-3: new low speed USB device using ohci_hcd and address 30<br />usb 2-3: device descriptor read/64, error -62<br />usb 2-3: device descriptor read/64, error -62<br />usb 2-3: new low speed USB device using ohci_hcd and address 31<br />usb 2-3: device not accepting address 31, error -62<br />usb 2-3: new low speed USB device using ohci_hcd and address 32<br />usb 2-3: device not accepting address 32, error -62<br />hub 2-0:1.0: unable to enumerate USB device on port 3<br /></code></pre></div><br /><br />The circuit connections are the same as used in other firmware, which does work.<br /><br />When flashing, avrdude writes 16144 bytes, i can only guess that this is because the boot section is at the end of the program memory. But in that case, the atmega32 haves 32kbytes of program memory, why doesnt it writes closer to 32 kbytes ?<br /><br /><div class="codebox"><p>Code: </p><pre><code>avrdude: 16144 bytes of flash verified</code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Jan 21, 2009 4:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2009-01-21T03:47:28+02:00</updated>

		<published>2009-01-21T03:47:28+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7597#p7597</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7597#p7597"/>
		<title type="html"><![CDATA[Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7597#p7597"><![CDATA[
I have miss readed the fuses High and Low from the Calculator and burned it swapped.<br />I always write the High part at the left, and in the calculator it is at the right.<br /><br />The solution is just to build an oscilator with a 555, 10 nF capacitor and 2 x 470 Ohms resistors.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Jan 21, 2009 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[epsilon_da]]></name></author>
		<updated>2009-01-21T00:03:19+02:00</updated>

		<published>2009-01-21T00:03:19+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7596#p7596</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7596#p7596"/>
		<title type="html"><![CDATA[Need help with bootloaderHID]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=2137&amp;p=7596#p7596"><![CDATA[
HI.<br /><br />I am trying to make my previous work with avr-usb bootloadable. For that i needed to change the fuses and the device doesnt work any more.<br /><br />It is an ATmega32, previous fuses were H: 0xC9  L:0xEF<br />It uses an external 16 Mhz Crystal.<br /><br />Now i changed the fuses to H: 0xC9  L:0xE9  to use the biggest boot load section and install bootloaderHID on it.<br /><br />I used the <a href="http://www.engbedded.com/cgi-bin/fc.cgi/?P_PREV=ATmega32&amp;P=ATmega32&amp;V_LOW=C9&amp;V_HIGH=EF&amp;M_LOW_0x3F=0x09&amp;M_LOW_0x80=0x80&amp;M_HIGH_0x06=0x00&amp;M_HIGH_0x10=0x00&amp;B_SUT1=P&amp;B_SUT0=P&amp;B_CKOPT=P&amp;B_CKSEL2=P&amp;B_CKSEL1=P" class="postlink">Fuse Calculator</a> to do this.<br /><br />I cant flash the device any more.<br /><br />This is the error message everytime that i try to flash anything.<br /><br /><div class="codebox"><p>Code: </p><pre><code>avrdude -c usbasp -p atmega32 -U hfuse:w:0xce:m -U lfuse:w:0xe9:m<br /><br />avrdude: error: programm enable: target doesn't answer. 1 <br />avrdude: initialization failed, rc=-1<br />         Double check connections and try again, or use -F to override<br />         this check.<br /></code></pre></div><br /><br /><br />It is powered from USB with 5V and the programmer is USB-ASP.<br /><br />It cant be broken. I did nothing more than change one flag with the Fuses Calculator.<br /><br />Please, i only have this ATmega32 and for buying other one i have to wait an entire month, to what? burn it again?.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1412">epsilon_da</a> — Wed Jan 21, 2009 12:03 am</p><hr />
]]></content>
	</entry>
	</feed>
