simulavr-devel
[Top][All Lists]
Advanced

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

Re: [Simulavr-devel] Unable to get interrupts working


From: Theodore A. Roth
Subject: Re: [Simulavr-devel] Unable to get interrupts working
Date: Sat, 1 Nov 2003 13:26:08 -0800 (PST)

On Sat, 1 Nov 2003, Marko Panger wrote:

> Hi there,
> 
> I have read previous threads about interrupts, but I just cant' figure out
> how to simulate interrupts. I am using the latest simulavr version
> (downloaded today from cvs) and Insight5.3 built for avr.
> 
> If I understand well issuing "signal SIG96" from a gdb console should
> trigger external interrupt 0. I have tried this but nothing happens, since
> my program doesn't seem to stop at a breakpoint in my interrupt handler.

I haven't committed that patch to cvs yet, so what you see is expected.

You're probably interested in this message:

  http://mail.nongnu.org/archive/html/simulavr-devel/2003-10/msg00021.html

I've just committed an updated patch. See the ChangeLog for details.

I'm not really excited about this patch though. It's just a quick hack I can 
up with and has some flaws. It can't hit the last interrupt for a mega128 
and the usage leaves a lot to be desired since it's a tad confusing. I'm not 
going to document this "feature" since I may rip it out if I can find a more 
sane way to implement the functionality.

> 
> Also interrupts from timers doesn't seem to trigger any event.
> 
> Probably I am doing something wrong,  so help will be highly appreciated !

No, you aren't doing anything wrong. The simulator just doesn't support
anything but timer0 at the moment (and probably not entirely correctly for
all devices), but Keith Gudger and Hermann Kraus have been working on
changes to implement more timers.

Ted Roth





reply via email to

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