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

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

Re: [avr-gcc-list] Including a binary file as resource


From: Ebert, Rolf
Subject: Re: [avr-gcc-list] Including a binary file as resource
Date: Tue, 21 Dec 2004 09:10:18 +0100

On 17 Dec 2004 at 12:24, Bjarne Laursen wrote:
> > Hey.
> > I have some data, generated by separate application, that I 
> would like 
> > to include into the flash, so I can read it from my program.
> > What would be the easiest way to do this?
> > 
> > I could make my app write the data as c-code, but I think 
> it would be 
> > better if the linker could include a binary file. Is that possible?

You can try objcopy (part of binutils)

objcopy --input-target=binary --binary-architecture=i386
--output-target=elf32-i386 <inputfile> <output.o>

You then have to submit the generated object file to the linker.

    Rolf


reply via email to

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