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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2008-11-15T01:16:59+02:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-11-15T01:16:59+02:00</updated>

		<published>2008-11-15T01:16:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6669#p6669</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6669#p6669"/>
		<title type="html"><![CDATA[12.8mhz usbasploader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6669#p6669"><![CDATA[
yeah.  i guess i was looking at it wrong.  i don't have any mega8's on hand, but i'll get some, and see if i can make that work.  thanks a lot.  great project!<p>Statistics: Posted by Guest — Sat Nov 15, 2008 1:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[christian]]></name></author>
		<updated>2008-11-14T17:06:56+02:00</updated>

		<published>2008-11-14T17:06:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6666#p6666</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6666#p6666"/>
		<title type="html"><![CDATA[12.8mhz usbasploader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6666#p6666"><![CDATA[
Which size is this? The size of RAM plus FLASH, or the flash only? You get the flash size with<br /><br />avr-size main.hex<br /><br />With a minimum boot loader condition and BOOTLOADER_CAN_EXIT defined to 1 I get 2012 bytes for an ATMega8 with 12.8 MHz RC, including the following clock adjustment code in usbconfig.h:<br /><div class="codebox"><p>Code: </p><pre><code>macro tuneOsccal<br />    push    YH                              ;&#91;0&#93;<br />    clr     YH                              ;&#91;2&#93;<br />    in      YL, TCNT0                       ;&#91;3&#93;<br />    out     TCNT0, YH                       ;&#91;4&#93;<br />    subi    YL, EXPECTED_TIMER0_INCREMENT   ;&#91;5&#93;<br />#if OSCCAL &gt; 0x3f<br />    lds     YH, OSCCAL                      ;&#91;6&#93;<br />#else<br />    in      YH, OSCCAL                      ;&#91;6&#93;<br />#endif<br />    cpi     YL, TOLERATED_DEVIATION + 1     ;&#91;7&#93;<br />    brmi    notTooHigh                      ;&#91;8&#93;<br />    subi    YH, 1                           ;&#91;9&#93; clock rate was too high<br />    rjmp    osctuneDone                     ;&#91;10&#93;<br />notTooHigh:<br />    cpi     YL, -TOLERATED_DEVIATION        ;&#91;10&#93;<br />    brpl    osctuneDone                     ;&#91;11&#93; not too low<br />    inc     YH                              ;&#91;12&#93; clock rate was too low<br />osctuneDone:<br />#if OSCCAL &gt; 0x3f<br />    sts     OSCCAL, YH                      ;&#91;12-13&#93; store tuned value<br />#else<br />    out     OSCCAL, YH                      ;&#91;12-13&#93; store tuned value<br />#endif<br />tuningOverflow:<br />    pop     YH                              ;&#91;14&#93;<br />    endm                                    ;&#91;16&#93; max number of cycles<br />#endif<br />#if F_CPU == 12800000<br />#   define USB_SOF_HOOK        tuneOsccal<br />#endif<br /></code></pre></div><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=8">christian</a> — Fri Nov 14, 2008 5:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-11-13T10:18:18+02:00</updated>

		<published>2008-11-13T10:18:18+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6657#p6657</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6657#p6657"/>
		<title type="html"><![CDATA[12.8mhz usbasploader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6657#p6657"><![CDATA[
grr.  i just can't make it work.  bootloadHID compiles at 2161 with target atmega168 12.8mhz.  2071 bytes for atmega8.  debugging seems to be off by default.  the comments say it will not work if you turn it on.  is there another option i missed.  i'm putting off a really cool project because i need a watch crystal to keep accurate time, and would need to add a second ic to the circuit if i were to use a 16mhz for the bootloader.<br />bearing:  might you post the makefile or even a hexfile?  i really wish i could make this happen.  thanks at any rate. <img class="smilies" src="./../../../images/smilies/icon_wink.gif" alt=";)" title="Wink" /><p>Statistics: Posted by Guest — Thu Nov 13, 2008 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[bearing]]></name></author>
		<updated>2008-11-03T05:00:46+02:00</updated>

		<published>2008-11-03T05:00:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6566#p6566</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6566#p6566"/>
		<title type="html"><![CDATA[12.8mhz usbasploader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6566#p6566"><![CDATA[
Did you turn off debugging?<br />Without debugging I got slightly below 2000 bytes when using bootloadHID at 12.8 MHz, using the same GCC version.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1443">bearing</a> — Mon Nov 03, 2008 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-11-02T00:52:47+02:00</updated>

		<published>2008-11-02T00:52:47+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6560#p6560</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6560#p6560"/>
		<title type="html"><![CDATA[12.8mhz usbasploader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6560#p6560"><![CDATA[
i also tried the slightly less desirable bootloadhid which claims &quot;Code size optimization to make this boot loader usable with the 12.8 MHz module.&quot;  it compiled at 2161 bytes.    <img class="smilies" src="./../../../images/smilies/icon_mad.gif" alt=":x" title="Mad" />   am i missing something?<p>Statistics: Posted by Guest — Sun Nov 02, 2008 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2008-11-01T06:22:55+02:00</updated>

		<published>2008-11-01T06:22:55+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6557#p6557</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6557#p6557"/>
		<title type="html"><![CDATA[12.8mhz usbasploader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=1854&amp;p=6557#p6557"><![CDATA[
i would love nothing more than to be able use usbasp loader on an atmega168 with the internal resonator.  i was able to compile the bootloader with the new 12.8 code, but it's about 140 bytes too big.  i turned off the extra options like eeprom access stuff, and i'm building it with avr-gcc 3.4.6.  can anyone find some fat to cut out, and make this fit?  please.   <img class="smilies" src="./../../../images/smilies/icon_lol.gif" alt=":lol:" title="Laughing" /><p>Statistics: Posted by Guest — Sat Nov 01, 2008 6:22 am</p><hr />
]]></content>
	</entry>
	</feed>
