comp.lang.ada
 help / color / mirror / Atom feed
From: brian <brian.catlin@gmail.com>
Subject: Re: Build raw binary on Windows
Date: Mon, 5 Apr 2010 07:06:59 -0700 (PDT)
Date: 2010-04-05T07:06:59-07:00	[thread overview]
Message-ID: <edb8987e-f31e-4a60-a138-187141299146@x3g2000yqd.googlegroups.com> (raw)
In-Reply-To: 20100405152718.ec9668d0.tero.koskinen@iki.fi

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?

 -Brian



  reply	other threads:[~2010-04-05 14:06 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 [this message]
2010-04-05 14:30     ` Tero Koskinen
replies disabled

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