simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Simulavr-devel] Simulating atmega169


From: Klaus Rudolph
Subject: Re: [Simulavr-devel] Simulating atmega169
Date: Thu, 08 Feb 2007 09:24:09 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.6) Gecko/20040114

Hi Radovid,

I am actually a bit bussy. So if simulavrxx has a bug, I will fix it, but I am actually not able to search for problems migrating from mega169 to mega128 on the simulation. Please donĀ“t be angry, but it is a bit time consuming to understand "other peoples work" :-)

So I will actually not have a deeper look into the problem. If you will not be able to get a solution, please ask again, maybe there is a bug in simulavrxx. But it would be nice if you send a simple c-file which is redused to the problem, means that it should
only contain the setup, main and the irq routine.

Thanks a lot for supporting me!

Regards
Klaus



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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]