[En-Nut-Discussion] Re: Re: JTAG debugging
Dusan Ferbas
dferbas at dfsoft.cz
Wed Jun 9 09:58:26 CEST 2004
Hi Theodore,
sorry I did't mention that with gdb I already used .elf. But even with it
it does not work in simulavr. Is it because of .text base address ? I
assume that RAM variables are placed at addresses displayed in a .map file
and this info is held in an .elf file ?
We used following linker options:
LDFLAGS = -Wl,-Map=$(TARGET).map,--cref,--defsym,__stack=0x10FF \
-nostartfiles -nodefaultlibs -Ttext=0x01FC00
Is there a line utility capable of burning code via JTAG ? I searched
stk500 (used by avr-studio) and there are JTAGICE devices. (I am able to
"upload" via avr-studio but not via stk500.)
> > Did somebody tried running simulavr + gdb (avr-insight) ? I was not
> > successfull at all even with 2kB code. All variables were zero all the
> > time, their addresses were at 0x0.
>...
>
>Don't use cof with gdb. Just load the elf file directly into gdb.
Dusan
More information about the En-Nut-Discussion
mailing list