This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: downloading elf file via JTAG
Grant Edwards wrote:
>
> On Tue, Mar 13, 2001 at 07:41:05AM +0100, karsten@thebox-communications.de wrote:
>
> > I have problem with downloading ELF files with Insight 5.0 via JEENI JTAG
> > interface. I want to download a program that is linked for address
> > 0x4000000 to another address than this, because at address 0x40000000 is in
> > RAM and I want it in flash. A bootloader copies it on reset to 0x40000000.
> > My problem is that Insight always loads the programm at that address for
> > what it was compiled for.
> > Can somebody tell me how I get the program downloaded via JTAG to another
> > address than specified in the ELF file ?
>
> Use objcopy.
>
> The --change-addresses option, IIRC.
>
I guess what Grant is suggesting is:
1) Make a copy of your object file that has the other (flash) address
using objcopy
2) Use GDB with this file to download the program to flash
3) Exit GDB and reboot your system so the program gets loaded at
0x40000000
4) Start GDB with the original object file (that has 0x40000000 as load
addr)
5) Connect to the target and debug normally
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9