This is the mail archive of the
mailing list for the eCos project.
Re: [ECOS] Timer: IRQ and FIQ mode
- From: "Sicheri Marco" <m dot sicheri at ctsgroup dot it>
- To: "eCos Discus.List" <ecos-discuss at sources dot redhat dot com>, "eCos Dev.List" <ecos-devel at sources dot redhat dot com>
- Date: Thu, 28 Oct 2004 16:23:31 +0200
- Subject: Re: [ECOS] Timer: IRQ and FIQ mode
- Organization: CTS electronics
- References: <006101c4bb58$6fae5a30$110110ac@Msicheri> <20041026132033.GK2141@lunn.ch>
- Reply-to: "Sicheri Marco" <m dot sicheri at ctsgroup dot it>
but, The hal_IRQ_handler() work ok (I think... I HOPE!) because the FIQ
'arrive' and the interrupt routine is called.
The problem are the threads. They aren't running if my CPU timer is enable!
Yes... i call the cyg_interrupt_acknowledge() and the interrupt is cleared
and it is recalled after the 100us.
I don't undestand where is my error...
Please, do you have a idea?
Ossequi, (Best Regards/Obrigado)
CTS electronics - R&D Department
phone: +39 0125 235637, +39 0125 235630
----- Original Message -----
From: "Andrew Lunn" <email@example.com>
To: "Sicheri Marco" <firstname.lastname@example.org>
Cc: "eCos Discus.List" <email@example.com>
Sent: Tuesday, October 26, 2004 3:20 PM
Subject: Re: [ECOS] Timer: IRQ and FIQ mode
> On Tue, Oct 26, 2004 at 02:36:37PM +0200, Sicheri Marco wrote:
> > Hi All,
> > I've the Samsung s3c44b0x.
> > I dev. e simple code, two threads and one timer that generate a
> > (timer2). (see the previous mail timer->interrupt for check my code).
> > It work ok if i set the interrupt by IRQ, but if I set it by FIQ. The
> > interupt work good, but the threads don't work.
> > I had set (with lauterbach) a break in each thread, and the code run
> > only if the interrupt is the IRQ mode.
> > Why? Could you help me?
> > Where is my error?
> Which target are you using for this processor? The closest i can see
> is the smdk2410. Looking at smdk2410_misc.c:hal_IRQ_handler() it
> appears FIQ is not supported.
> If you want to use FIQ you will probably have to write a VSR and use
> the function cyg_interrup_set_vsr();
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss