From: Tero Koskinen on
On Mon, 5 Apr 2010 07:06:59 -0700 (PDT) brian wrote:

> On Apr 5, 8:27 pm, Tero Koskinen <tero.koski...(a)iki.fi> wrote:
> > For AVR, I use following commands:
> > $ make
> > ADA_PROJECT_PATH=/usr/local/avr/ada avr-gnatmake -XMCU=atmega328p -Phello.gpr --RTS=rts/atmega328p  
> > avr-gcc -c -gnatec=/usr/local/avr/ada/gnat.adc -gdwarf-2 -gnatwp -gnatwu -gnatn -gnatp -gnatVn -Os -gnatef -fverbose-asm -frename-registers -mmcu=atmega328p -gnateDMCU=atmega328p -fdata-sections -ffunction-sections --RTS=rts/atmega328p -I- -gnatA /home/tkoskine/work/arduino/hello/hello.adb
> > avr-gnatbind -freestanding --RTS=rts/atmega328p -I- -x /home/tkoskine/work/arduino/hello/objects/hello.ali
> > avr-gnatlink /home/tkoskine/work/arduino/hello/objects/hello.ali -Wl,--gc-sections -gdwarf-2 -Wl,--relax --GCC=avr-gcc -Os -mmcu=atmega328p --RTS=rts/atmega328p -fdata-sections -ffunction-sections -Wl,-Map=../hello.map,--cref -L/usr/local/avr/ada/avr_lib/atmega328p/lib -lavrada -o /home/tkoskine/work/arduino/hello/hello.elf
> > avr-objcopy -O ihex -R .eeprom hello.elf hello.hex
>
> As you point out, the real trick is to use ObjCopy.
>
> Now that is solved, I need to create the RTS library. Is this the
> same AVR/ADA that is on SourceForge?

Yes, it is the same as on SourceForge:
http://avr-ada.sourceforge.net/
http://sourceforge.net/projects/avr-ada/

>
> -Brian


--
Tero Koskinen - http://iki.fi/tero.koskinen/