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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2013-02-26T06:07:48+02:00</updated>

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

		<entry>
		<author><name><![CDATA[honupata]]></name></author>
		<updated>2013-02-26T06:07:48+02:00</updated>

		<published>2013-02-26T06:07:48+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24813#p24813</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24813#p24813"/>
		<title type="html"><![CDATA[Re: BootloadHid with atmega8 @12.8Mhz]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24813#p24813"><![CDATA[
This is WORKING great <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br />Thank you so much Bob, you rock!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5786">honupata</a> — Tue Feb 26, 2013 6:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bob]]></name></author>
		<updated>2013-02-25T16:08:54+02:00</updated>

		<published>2013-02-25T16:08:54+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24807#p24807</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24807#p24807"/>
		<title type="html"><![CDATA[Re: BootloadHid with atmega8 @12.8Mhz]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24807#p24807"><![CDATA[
You can't just recompile BootloadHid firmware for 12.8MHz, it will not work.<br />You must also make sure that D- and INT0 are the same pin or connnect D- to int0 so that the internal oscillator will self calibrate using the host's USB 1ms frame on the D- signal.<br />See bootloaderconfig.h<br /><br />Try this:<br /><br /><div class="codebox"><p>Code: </p><pre><code>#define USB_CFG_IOPORTNAME      D<br />#define USB_CFG_DPLUS_BIT       1 // or any bit in port D that's not used <br />#define USB_CFG_DMINUS_BIT      2 // 12.8Mhz must use D- and INT0 on the same pin or 2 pins</code></pre></div><br /><br />Connect D+ Resistor to Atmega8 D1<br />Connect D- Resistor to Atmega8 D2<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=279">Bob</a> — Mon Feb 25, 2013 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[honupata]]></name></author>
		<updated>2013-02-17T19:13:44+02:00</updated>

		<published>2013-02-17T19:13:44+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24762#p24762</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24762#p24762"/>
		<title type="html"><![CDATA[BootloadHid with atmega8 @12.8Mhz]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=8291&amp;p=24762#p24762"><![CDATA[
Hi,<br /><br />I could use some advice as I already spent really a lot of time on this.<br /><br />I’m trying to make the BootloadHid work with atmega8 @12.8Mhz without success. (unrecognized device)  <img class="smilies" src="./../../../images/smilies/icon_confused.gif" alt=":?" title="Confused" /> <br /><br />I know that the hardware is fine because it's working @16Mhz with the same atmega8 <br />It seems also that my fuses are ok because a simple VUSB code works @12.8mhz with them. <br /><br />I’m using gcc 3.4.6 to have the code fit in the boot section of the atmega8.<br />I’m using the latest BootloadHid firmware &quot;as is&quot; (bootloadHID.2012-12-08), I only changed the makefile<br /><br />I also tried this: <a href="http://www-user.tu-chemnitz.de/~heha/viewzip.cgi/bastelecke/Rund%20um%20den%20PC/USB2LPT/usb2lpt.zip/src/firmware/bootloadHID/src-ATmega8-bootload/" class="postlink">http://www-user.tu-chemnitz.de/~heha/viewzip.cgi/bastelecke/Rund%20um%20den%20PC/USB2LPT/usb2lpt.zip/src/firmware/bootloadHID/src-ATmega8-bootload/</a><br /><br /><div class="codebox"><p>Code: </p><pre><code><br /># Name: Makefile<br /># Project: bootloadHID<br /># Author: Christian Starkjohann<br /># Creation Date: 2007-03-19<br /># Tabsize: 4<br /># Copyright: (c) 2007 by OBJECTIVE DEVELOPMENT Software GmbH<br /># License: GNU GPL v2 (see License.txt)<br /># This Revision: $Id$<br /><br />DEVICE = atmega8<br />BOOTLOADER_ADDRESS = 1800<br />F_CPU = 12800000<br />FUSEH = 0xD8<br />FUSEL = 0x64<br /><br />AVRDUDE = avrdude -c usbasp -p $(DEVICE)<br /><br />LDFLAGS += -Wl,--relax,--section-start=.text=$(BOOTLOADER_ADDRESS)<br /><br /># Omit -fno-* options when using gcc 3, it does not support them.<br />COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU) -DDEBUG_LEVEL=0 # -DTEST_MODE<br /># NEVER compile the final product with debugging! Any debug output will<br /># distort timing so that the specs can't be met.<br /><br />OBJECTS =  usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o<br /><br /><br /># symbolic targets:<br />all:   main.hex<br /><br />.c.o:<br />   $(COMPILE) -c $&lt; -o $@<br /><br />.S.o:<br />   $(COMPILE) -x assembler-with-cpp -c $&lt; -o $@<br /># &quot;-x assembler-with-cpp&quot; should not be necessary since this is the default<br /># file type for the .S (with capital S) extension. However, upper case<br /># characters are not always preserved on Windows. To ensure WinAVR<br /># compatibility define the file type manually.<br /><br />.c.s:<br />   $(COMPILE) -S $&lt; -o $@<br /><br />clean:<br />   rm -f main.hex main.bin *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s<br />   <br />program:<br />   $(AVRDUDE) -U hfuse:w:$(FUSEH):m -U lfuse:w:$(FUSEL):m -U flash:w:main.hex:i -U lock:w:0x2f:m<br />   #$(AVRDUDE) -U hfuse:r:high.hex:i -U lfuse:r:low.hex:i <br />   #$(AVRDUDE) -U hfuse:w:$(FUSEH):m -U lfuse:w:$(FUSEL):m -U lock:w:0x3F:m <br /># file targets:<br />main.bin:   $(OBJECTS)<br />   $(COMPILE) -o main.bin $(OBJECTS) $(LDFLAGS)<br /><br />main.hex:   main.bin<br />   rm -f main.hex main.eep.hex<br />   avr-objcopy -j .text -j .data -O ihex main.bin main.hex<br />   avr-size main.hex<br /><br />disasm:   main.bin<br />   avr-objdump -d main.bin<br /><br />cpp:<br />   $(COMPILE) -E main.c<br /><br /></code></pre></div><br /><br />I also try with this fuses <br /><br /><div class="codebox"><p>Code: </p><pre><code>HFUSE = 0x90<br />LFUSE = 0x84<br /></code></pre></div><br /><br />Can you help me  <img class="smilies" src="./../../../images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /> <br /><br />Thank you<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=5786">honupata</a> — Sun Feb 17, 2013 7:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
