From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,63ac7dccda611bc3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!x3g2000yqd.googlegroups.com!not-for-mail From: brian Newsgroups: comp.lang.ada Subject: Re: Build raw binary on Windows Date: Mon, 5 Apr 2010 07:06:59 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <20100405152718.ec9668d0.tero.koskinen@iki.fi> NNTP-Posting-Host: 122.0.18.50 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1270476419 3526 127.0.0.1 (5 Apr 2010 14:06:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 5 Apr 2010 14:06:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x3g2000yqd.googlegroups.com; posting-host=122.0.18.50; posting-account=gMAXfwoAAAA68ecE_HyeMd1oSNR8MnSb User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; GTB0.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Zune 3.0; InfoPath.3; MS-RTC LM 8),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:10848 Date: 2010-04-05T07:06:59-07:00 List-Id: On Apr 5, 8:27=A0pm, Tero Koskinen wrote: > For AVR, I use following commands: > $ make > ADA_PROJECT_PATH=3D/usr/local/avr/ada avr-gnatmake -XMCU=3Datmega328p -Ph= ello.gpr --RTS=3Drts/atmega328p =A0 > avr-gcc -c -gnatec=3D/usr/local/avr/ada/gnat.adc -gdwarf-2 -gnatwp -gnatw= u -gnatn -gnatp -gnatVn -Os -gnatef -fverbose-asm -frename-registers -mmcu= =3Datmega328p -gnateDMCU=3Datmega328p -fdata-sections -ffunction-sections -= -RTS=3Drts/atmega328p -I- -gnatA /home/tkoskine/work/arduino/hello/hello.ad= b > avr-gnatbind -freestanding --RTS=3Drts/atmega328p -I- -x /home/tkoskine/w= ork/arduino/hello/objects/hello.ali > avr-gnatlink /home/tkoskine/work/arduino/hello/objects/hello.ali -Wl,--gc= -sections -gdwarf-2 -Wl,--relax --GCC=3Davr-gcc -Os -mmcu=3Datmega328p --RT= S=3Drts/atmega328p -fdata-sections -ffunction-sections -Wl,-Map=3D../hello.= map,--cref -L/usr/local/avr/ada/avr_lib/atmega328p/lib -lavrada -o /home/tk= oskine/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