public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@ecoscentric.com>
To: "Daniel Schmidt" <Daniel.Schmidt3@gmx.de>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] spurious interrupts
Date: Thu, 22 Jul 2004 10:30:00 -0000	[thread overview]
Message-ID: <m37jswnxqf.fsf@xl5.calivar.com> (raw)
In-Reply-To: <13967.1090490659@www32.gmx.net>

"Daniel Schmidt" <Daniel.Schmidt3@gmx.de> writes:

> I've debugged my ecos-test-application; and debugged to see where the 
> interrupt is from. But there is no one sending the interrupt (source=0; 
> *PXA2X0_ICIR=0) but before reaching this code position my code jumps 
> around in non program code.  

That sounds suspicious. Maybe it is just jumping to the IRQ vector, or
partway into the IRQ VSR. So it's not a real interrupt at all.

>  
> The spurious interrupt is after the first timerinterrupt (this runs ok)  
> but the scheduling is not doing well. So I'd assume the stackpointer for 
> interrupts is wrong (in my application). After proceeding the first 
> interrupt (timer) after some instructions there come a second jump into 
> the interrupt handler, but not issued by the interrupt controller. 


A simple test you could try is to increase the size of your thread
stack and maybe the interrupt stack and see if that makes a
difference.

Another thing to look at is whether you are acknowledging the
interrupts correctly. Also double check that the decoding in
hal_IRQ_handler() is doing the right thing.


-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com/     The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

      reply	other threads:[~2004-07-22 10:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-22  9:20 Daniel Schmidt
2004-07-22 10:04 ` Nick Garnett
2004-07-22 10:08   ` Daniel Schmidt
2004-07-22 10:30     ` Nick Garnett [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37jswnxqf.fsf@xl5.calivar.com \
    --to=nickg@ecoscentric.com \
    --cc=Daniel.Schmidt3@gmx.de \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).