comp.lang.ada
 help / color / mirror / Atom feed
From: Tero Koskinen <tero.koskinen@iki.fi>
Subject: Re: Build raw binary on Windows
Date: Mon, 5 Apr 2010 17:30:17 +0300
Date: 2010-04-05T17:30:17+03:00	[thread overview]
Message-ID: <20100405173017.776fbef5.tero.koskinen@iki.fi> (raw)
In-Reply-To: edb8987e-f31e-4a60-a138-187141299146@x3g2000yqd.googlegroups.com

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

> On Apr 5, 8:27 pm, Tero Koskinen <tero.koski...@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/



      reply	other threads:[~2010-04-05 14:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-04 12:44 Build raw binary on Windows brian
2010-04-05  1:39 ` Stephen Leake
2010-04-05 12:01   ` brian
2010-04-05 12:27 ` Tero Koskinen
2010-04-05 14:06   ` brian
2010-04-05 14:30     ` Tero Koskinen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox