Hi to all,

I´m trying to program and debug an atmega16, with Avarice, gcc-avr and
gdb-avr with JTAG, using the avr Dragon device.

I can program the target correctly and the code works fine in it.

my problems come when I debug by using functions(besides the main),
the allocations to the registers don´t happen correctly,
and the steps are not in the correct order.

if I put all the code in the main function, the debug seems ok.

I suspect that the problem is in gdb-avr.
Anyone has had any problems about the same issue?


I compile with:
avr-gcc -g  -mmcu=atmega16 -c hello.c;avr-gcc -g  -mmcu=atmega16 -o
hello.elf hello.o;avr-objcopy -j .text -j .data -O ihex hello.elf hello.hex


I use:
debian-sid.
ii  gcc-avr                              1:4.3.3-1
ii  gdb-avr                              6.4.90.dfsg-2.1
ii  avarice                              2.8-1

Thanks in advance.

-- 
-----------
Miguel.
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to