This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: How to Disable FIQ on AT91 (eg EB40A)
- From: "Paul D. DeRocco" <pderocco at ix dot netcom dot com>
- To: "eCos Discuss" <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 15 May 2005 22:25:57 -0700
- Subject: RE: [ECOS] How to Disable FIQ on AT91 (eg EB40A)
> From: Keith Ross (E-Lands)
>
> I have noise on my unused FIQ pin and no handler, so my stack keep full,
> etc when I run my app but ok when single step. The question is how do I
> disable FIQ or what do I do to intall a safe handler.
Set bit 6 in the CPSR. (This cannot be done in user mode.)
I don't understand why you'd get stack overflow, though. When an FIQ is
handled, it automatically masks further FIQ interrupts until the handler
returns, so the interrupts can't nest unless you explicitly reenable FIQ
inside the handler.
In the long run, you should really tie off the FIQ pin. Floating CMOS inputs
are not a Good Thing.
--
Ciao, Paul D. DeRocco
Paul mailto:pderocco@ix.netcom.com
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss