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

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-09-11T16:01:31+02:00</updated>

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

		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-09-11T16:01:31+02:00</updated>

		<published>2012-09-11T16:01:31+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22650#p22650</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22650#p22650"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22650#p22650"><![CDATA[
&quot;Which Atari keyboard?&quot; it just occurred to me you are talking the  ST(e) &quot;keyboard&quot; for some reason I was thinking the key pad. Big difference, my fault. My adapter is for the console atari's.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Tue Sep 11, 2012 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Coda]]></name></author>
		<updated>2012-09-11T09:43:46+02:00</updated>

		<published>2012-09-11T09:43:46+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22644#p22644</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22644#p22644"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22644#p22644"><![CDATA[
Thanks, didn't know about them. I got them them from Digikey, I think I paid about $1 each for 25 I'll have to check though.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6646">Coda</a> — Tue Sep 11, 2012 9:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[horo]]></name></author>
		<updated>2012-09-11T09:24:50+02:00</updated>

		<published>2012-09-11T09:24:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22642#p22642</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22642#p22642"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22642#p22642"><![CDATA[
<blockquote><div><cite>Coda wrote:</cite>Anyway, I managed to get a 25 strip of  4313 so I'm ok now with 4K flash. I couldn't find these in EU so I had to order them from the States.</div></blockquote><br />According to their online catalog <a href="http://www.segor.de" class="postlink">segor</a> in Berlin has them on stock as DIP and SO:<br />ATtiny4313-PU: 3.40€ (10+: 2.72€)<br />ATtiny4313-SU: 3.60€ (10+: 2.88€, 37+:2.17€, 111+: 1.94€)<br /><br />Ciao, Martin<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=891">horo</a> — Tue Sep 11, 2012 9:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Coda]]></name></author>
		<updated>2012-09-10T23:36:50+02:00</updated>

		<published>2012-09-10T23:36:50+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22634#p22634</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22634#p22634"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22634#p22634"><![CDATA[
<blockquote><div><cite>ulao wrote:</cite>horo, I dont see where the OP was talking about the bootloader code size? Though this is a good point to make, bigger chips will not change that. If you need a chip with a lot of flash get the atmeg328.</div></blockquote><br />Right, the OP (me) wasn't talking about bootloader but it is a valid point as I've been thinking about it recently. Anyhow, for physical space reasons I didn't want to go bigger than a ATtiny2313, certainly not to the 28pin parts like the mega48-328 range. Anyway, I managed to get a 25 strip of  4313 so I'm ok now with 4K flash. I couldn't find these in EU so I had to order them from the States.<br /><blockquote><div><cite>ulao wrote:</cite>...my adapter support every controller out there including the atari keyboard, so it have to be big enough.</div></blockquote><br />Which adapter? Which Atari keyboard? BTW I'm also working on a Mac ADB keyboard adapter (I have an Apple Extended II) so I have something good for writing my next book on, but the ADB protocol (which is similar to PS/2) is a bit of a pain and needs some clever solution. I hope that this one can be done on a tiny85, as it needs to physically fit inside the case.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6646">Coda</a> — Mon Sep 10, 2012 11:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ulao]]></name></author>
		<updated>2012-09-10T17:49:14+02:00</updated>

		<published>2012-09-10T17:49:14+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22631#p22631</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22631#p22631"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22631#p22631"><![CDATA[
horo, I dont see where the OP was talking about the bootloader code size? Though this is a good point to make, bigger chips will not change that. If you need a chip with a lot of flash get the atmeg328. I use this with my v-usb project and I still have not used it up. my adapter support every controller out there including the atari keyboard, so it have to be big enough.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=1281">ulao</a> — Mon Sep 10, 2012 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[horo]]></name></author>
		<updated>2012-09-10T14:14:59+02:00</updated>

		<published>2012-09-10T14:14:59+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22630#p22630</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22630#p22630"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=22630#p22630"><![CDATA[
<blockquote><div><cite>xiangrui wrote:</cite>It is always good to have some extra space. Try to use a chip with larger flash. It is quite common that you may like to add something in the future.</div></blockquote><br />You're right - BUT - when you want to use <a href="http://www.obdev.at/vusb/usbasploader.html" class="postlink">USBaspLoader</a> located in the boot block you're limited to 2K boot block size on ATmega8, 88, 16, 168 even with 8 or 16K flash.<br /><br />Ciao, Martin<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=891">horo</a> — Mon Sep 10, 2012 2:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2012-04-29T21:37:09+02:00</updated>

		<published>2012-04-29T21:37:09+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21500#p21500</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21500#p21500"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21500#p21500"><![CDATA[
It is always good to have some extra space. Try to use a chip with larger flash. It is quite common that you may like to add something in the future.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Sun Apr 29, 2012 9:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Coda]]></name></author>
		<updated>2012-04-29T10:29:38+02:00</updated>

		<published>2012-04-29T10:29:38+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21497#p21497</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21497#p21497"/>
		<title type="html"><![CDATA[Re: avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21497#p21497"><![CDATA[
I've built a new program for attaching an Atari Keyboard (TT/Mega ST(e) etc) to USB, and so far it's working with basic functionality (simple key-presses, no modifiers work, and no attached mouse/joystick reports which would be cool). Code size is 1952 bytes with v3, and 2018 with v4. I'm going to need a few more bytes to make it properly functional (at least support the modifier keys). If it gets too much bigger then at least I can try to find a Attiny4313, or maybe use the physically bigger Atmega48.<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6646">Coda</a> — Sun Apr 29, 2012 10:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Coda]]></name></author>
		<updated>2012-04-27T22:16:56+02:00</updated>

		<published>2012-04-27T22:16:56+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21486#p21486</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21486#p21486"/>
		<title type="html"><![CDATA[avr-gcc-4 vs avr-gcc-3]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6603&amp;p=21486#p21486"><![CDATA[
I have been away from avr development for a while, and I recently came back to start a new project. I also gained a new mac from work since, and I decided I would do development on it, instead of my older and trusty leopard based machine which I haven't got around to updating yet. So, I went to download Crosspack (also from Objective Development -its a nice pre-packaged avr toolkit, thank you OD) and saw there was a new version. Cool!<br /><br />Only thing is, I just started looking at some of the V-USB based projects, some of which are supposed to be able to fit onto a device with 2k of flash (there's a few Attiny2313 projects out there). Even the main V-USB hardware page mentions 2k of flash as a minimum requirement. However all of the projects I have downloaded and have lazily typed 'make all' on came in well over 2k in code size. This is important to me - I want to develop a dongle for a certain serial protocol keyboard - it wants to be in a smallish package, and wants a hardware UART. Attiny2313 fits the bill, but hey it's only got 2k Flash... I know the attiny85 has 8k but theres no harware UART...  <img class="smilies" src="./../../../images/smilies/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /> <br /><br />Anyway - I checked the compiler version and noticed gcc v4 was being used. I tried to change it to v3.x and then I noticed that v3 was no longer available in Crosspack - it has been removed, so I downloaded the previous version, changed gcc version to 3 and rebuilt a project I've been hacking around with the last few days. PS2USB. <br /><br />I use the basic 3.6v zener diode interface hooked up directly to my Atmel STK500 dev board, and plugged in a spare atmega88. I have removed the code for the second pad. Its made the code smaller, but even so, look at the results:<br /><br /><br /><div class="codebox"><p>Code: </p><pre><code>$ make clean; make all<br />rm -f main.hex main.lst main.obj main.cof main.list main.map main.eep.hex main.elf *.o usbdrv/*.o main.s usbdrv/oddebug.s usbdrv/usbdrv.s<br />avr-gcc -Wall -Os -DF_CPU=12000000    -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=atmega88 -c usbdrv/usbdrv.c -o usbdrv/usbdrv.o<br />avr-gcc -Wall -Os -DF_CPU=12000000    -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=atmega88 -x assembler-with-cpp -c usbdrv/usbdrvasm.S -o usbdrv/usbdrvasm.o<br />avr-gcc -Wall -Os -DF_CPU=12000000    -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=atmega88 -c usbdrv/oddebug.c -o usbdrv/oddebug.o<br />avr-gcc -Wall -Os -DF_CPU=12000000    -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=atmega88 -c main.c -o main.o<br />main.c: In function 'main':<br />main.c:483: warning: unused variable 'idleCounter'<br />main.c: At top level:<br />main.c:15: warning: 'outBuffer2' defined but not used<br />avr-gcc -Wall -Os -DF_CPU=12000000    -Iusbdrv -I. -DDEBUG_LEVEL=0 -mmcu=atmega88 -o main.elf usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o<br />rm -f main.hex main.eep.hex<br />avr-objcopy -j .text -j .data -O ihex main.elf main.hex<br />avr-size main.hex<br />   text      data       bss       dec       hex   filename<br />      0      3034         0      3034       bda   main.hex<br /></code></pre></div><br /><br />avr-gcc v4: 3034 bytes<br />avr_gcc v3: 2712 bytes<br /><br />That's a whopping difference. At this rate I'd be hard pushed to fit my own project on a 4k device, never mind a 2k one. I was wondering if I can remove the debug code and see what, if anything it does to reduce the code size. Is there anything else I could be missing?<br /><br />Size is everything in this world, right guys?  <img class="smilies" src="./../../../images/smilies/icon_razz.gif" alt=":P" title="Razz" /><p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6646">Coda</a> — Fri Apr 27, 2012 10:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
