avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] linking bootloader and main application at once


From: Eric Weddington
Subject: RE: [avr-gcc-list] linking bootloader and main application at once
Date: Mon, 02 Oct 2006 12:17:00 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Shaun Jackman
> Sent: Monday, October 02, 2006 9:29 AM
> To: Jan Menzel
> Cc: address@hidden
> Subject: Re: [avr-gcc-list] linking bootloader and main 
> application at once
> 
> On 10/2/06, dimax un <address@hidden> wrote:
> > If all you need is to program two hex files into flash why 
> not to do it?
> > You can use following trick:
> > 1. avr-objcopy hex1 to bin1
> > 2. avr-objcopy hex2 to bin2
> > 3. merge bin1 and bin2 (may require some scripting). Take 
> care to add
> > bin2 to bin1 at the correct address where the bootloader starts.
> > 4. avr-objcopy bin12 to hex12
> 
> Try...
> 
>        cat bootloader.hex application.hex >image.hex

That won't work because of the end record that is in the hex file specified
by the Intel standard.

You should use the SRecord utilitiles that come with WinAVR that also work
with Intel Hex records.

Eric





reply via email to

[Prev in Thread] Current Thread [Next in Thread]