Hi.
Hi
I have done some researches on the matter and came to the conclusion,
that it would the best to adopt the program to compile on both
systems, atmega169 and atmega128. I've decided to take the same
approach as in the demo.c program of the avr-gcc manual examples
section.
As I am also trying to learn the use of GDB (I am a real noob in this
field), I've decided to experiment on a
modified version of the mentioned file demo.c.
I've written also a modified iocompat.h header file, which should
overcome the differences between the chips but it is not successful
and I wonder why, as I belive, that I've taken in considerance all
the differences. As much as I understood, the difference shuld be
mainly in I/O and configuration registriy names.
I've also omitted the -O2 flag in all Makefiles.
There are more deatailson the sequent forum post:
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=45934
In any case. If I compile my program for an atmega169 (like in the
AVR Butterfly I use) it works on the chip.
If I compile the same program for the atmega 128 and try to simulata
it, it fails to call the timer owerflow interrupt function.
Could you please take a look to the attached files. I've got stuck, as
I really do not know what to do.
THX once again for your kind help.
Radovid
p.s.
attachments: in the original_demo.zip file you can find the original
demo. zip which works perfwctly fine on atmega169 aswell as in
simulavrxx.
The modified files are in Altered_demo_for_m169.m128.zip, which works
only on the atmega169