[En-Nut-Discussion] JTAG debugging
Theodore A. Roth
troth at openavr.org
Fri Jun 4 23:53:43 CEST 2004
On Fri, 4 Jun 2004, Dusan Ferbas wrote:
> currently I am able to create ext coff file and do debugging with AVR
> Studio v4.
> Does anybody know how to invoke (option values) avarice for JTAG on com3 ?
> Set port to '/dev/ttyS2' ?
Use '-j /dev/com3' or '-j com3' (depends on which version of cygwin you
are using I think).
> 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. I used coff with following options:
> >ELFCOF = $(OBJCOPY) --debugging \
> > --change-section-address .text-0x01FC00 \
> > --change-section-address .data-0x800000 \
> > --change-section-address .bss-0x800000 \
> > --change-section-address .noinit-0x800000 \
> > --change-section-address .eeprom-0x810000
Don't use cof with gdb. Just load the elf file directly into gdb.
PGP Key ID: 0x18F846E9
Jabber ID: troth at jabber.org
More information about the En-Nut-Discussion