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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2010-05-05T05:06:34+02:00</updated>

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

		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-05-05T05:06:34+02:00</updated>

		<published>2010-05-05T05:06:34+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14354#p14354</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14354#p14354"/>
		<title type="html"><![CDATA[Re: Trouble fitting USBaspLoader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14354#p14354"><![CDATA[
i did some code changes to &quot;USBaspLoader.2009-03-20&quot;<br /><br />file usbdrvasm.S<br />line 59<br />#       define USB_INTR_VECTOR  INT0_vect<br /><br />this change made V-USB work with the ATmega328P whereas before it would not due to a mis-defined interrupt vector name<br />refer to this post <!-- l --><a class="postlink-local" href="http://forums.obdev.at/viewtopic.php?f=8&amp;t=2663&amp;p=11457&amp;hilit=168p#p11936">viewtopic.php?f=8&amp;t=2663&amp;p=11457&amp;hilit=168p#p11936</a><!-- l --><br />this may fix your problem with your 88P chip<br /><br />i've also commented out all &quot;DBG1&quot; and the &quot;odDebugInit&quot; but I understand that they are not enabled anyways, i even commented out the oddebug.c in the makefile<br /><br />and wrote a batch file to make all of them<br />using WinAVR-20100110<br /><br /><div class="codebox"><p>Code: </p><pre><code>   text      data       bss       dec       hex   filename<br />      0      2038         0      2038       7f6   atmega168_12000000.hex<br />      0      2358         0      2358       936   atmega168_12800000.hex<br />      0      2094         0      2094       82e   atmega168_15000000.hex<br />      0      2104         0      2104       838   atmega168_16000000.hex<br />      0      2226         0      2226       8b2   atmega168_16500000.hex<br />      0      2086         0      2086       826   atmega168_20000000.hex<br />      0      2038         0      2038       7f6   atmega168p_12000000.hex<br />      0      2358         0      2358       936   atmega168p_12800000.hex<br />      0      2094         0      2094       82e   atmega168p_15000000.hex<br />      0      2104         0      2104       838   atmega168p_16000000.hex<br />      0      2226         0      2226       8b2   atmega168p_16500000.hex<br />      0      2086         0      2086       826   atmega168p_20000000.hex<br />      0      2038         0      2038       7f6   atmega328p_12000000.hex<br />      0      2358         0      2358       936   atmega328p_12800000.hex<br />      0      2094         0      2094       82e   atmega328p_15000000.hex<br />      0      2104         0      2104       838   atmega328p_16000000.hex<br />      0      2226         0      2226       8b2   atmega328p_16500000.hex<br />      0      2086         0      2086       826   atmega328p_20000000.hex<br />      0      1972         0      1972       7b4   atmega88_12000000.hex<br />      0      2028         0      2028       7ec   atmega88_15000000.hex<br />      0      2034         0      2034       7f2   atmega88_16000000.hex<br />      0      2016         0      2016       7e0   atmega88_20000000.hex<br />      0      1972         0      1972       7b4   atmega88p_12000000.hex<br />      0      2028         0      2028       7ec   atmega88p_15000000.hex<br />      0      2034         0      2034       7f2   atmega88p_16000000.hex<br />      0      2016         0      2016       7e0   atmega88p_20000000.hex<br />      0      1950         0      1950       79e   atmega8_12000000.hex<br />      0      2006         0      2006       7d6   atmega8_15000000.hex<br />      0      2012         0      2012       7dc   atmega8_16000000.hex<br />      0      1994         0      1994       7ca   atmega8_20000000.hex</code></pre></div><br /><br />i've confirmed that the atmega168 and atmega328P works with the 2k bootloader version now at 12 MHz (the only chips and clock i have on hand)<br />The atmega328P always have the 4k boot option so i'm not concerned about the other clock speeds, it looks like the hex for the atmega8 and atmega88 are all fine, i need to get the atmega168 versions working<br /><br />edit: i found the avr-gcc version you are talking about and it does indeed compile into smaller hex files, problem solved, thanks<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Wed May 05, 2010 5:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[santacruzbob]]></name></author>
		<updated>2010-05-05T04:36:14+02:00</updated>

		<published>2010-05-05T04:36:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14353#p14353</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14353#p14353"/>
		<title type="html"><![CDATA[Re: Trouble fitting USBaspLoader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14353#p14353"><![CDATA[
Frank,<br /><br />I've had luck compiling this code using gcc 3.4.6<br />for whatever reason the old compilers generated considerably smaller code.  There are a few options in bootloaderconfig.h that you can remove to save some space (eeprom access options?). I was able to compile this with 4.3.4 and fit it in the 2k bootloader section. Do you have any atmega88p/88pa by chance? I've got code that works perfectly with the atmega88 but doesn't work with the atmega88p and I've been trying to find the problem for nearly a year now. I'm beginning to think it's a problem with the silicon? If you've got either of those chips I'd love to hear back regarding success/failure with usbasploader (and other v-usb based bootloaders). -Bob<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2475">santacruzbob</a> — Wed May 05, 2010 4:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-05-05T03:29:23+02:00</updated>

		<published>2010-05-05T03:29:23+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14352#p14352</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14352#p14352"/>
		<title type="html"><![CDATA[Re: Trouble fitting USBaspLoader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14352#p14352"><![CDATA[
ok i've compiled it for the atmega328p with the 4k bootloader setting (instead of 2k so it will fit) and my own pin configuration and it works, so now i just have to figure out how to compile it under 2k so it works with other chips.<br /><br />did you manually optimize the disassembly or something?<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Wed May 05, 2010 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[frank26080115]]></name></author>
		<updated>2010-05-04T05:27:17+02:00</updated>

		<published>2010-05-04T05:27:17+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14330#p14330</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14330#p14330"/>
		<title type="html"><![CDATA[Trouble fitting USBaspLoader]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=4221&amp;p=14330#p14330"><![CDATA[
I can't seem to compile USBaspLoader to fit within 2048 bytes with any of the settings (all chips ranging from atmega8 to atmega328p, all supported clocks from 12 to 20 MHz)<br /><br />I uploaded the resulting hex files to my chip (atmega168 with a 12mhz clock) anyways and the computer won't enumerate my device.<br /><br />How did you do it? you compiled it to 1912 bytes for the atmega168 at 12mhz, changed my D- pin number and the bootloader exit condition and edited the makefile and ran make and it gave me 2164.<br /><br />is there a specific compiler version? does it matter that i'm running a 64 bit computer? if you tell me how to compile all of these bootloaders correctly, I'll setup a VM with the right OS and compiler to do the compiling.<br /><br />I seriously only want to change the D- pin to PD7 and use PB7 for the jumper<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=2426">frank26080115</a> — Tue May 04, 2010 5:27 am</p><hr />
]]></content>
	</entry>
	</feed>
