This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: ISR occurs, but DSR does not.
- To: "'Jonathan Larmour'" <jlarmour at redhat dot com>
- Subject: RE: [ECOS] ISR occurs, but DSR does not.
- From: "Trenton D. Adams" <tadams at extremeeng dot com>
- Date: Wed, 4 Jul 2001 16:21:05 -0600
- Cc: "'eCos discussion'" <ecos-discuss at sources dot redhat dot com>
- Organization: Extreme Engineering
I found out what the problem is. The port B data bit 0 is set to 0
which indicates that the CL-PS6700 controller is not ready for access.
Attempting an access to it during this time will cause the CPU to wait
indefinately until the CL-PS6700 becomes available. It does become
available right after ejecting the card. Subsequently re-inserting the
card runs the interrupt again which in turn attempts an access which in
turn freezes the CPU again. This occurs because I obviously haven't
initialized the card properly in order for an access to occur before
enabling it. So, this takes me back to my original problem of thinking
it wasn't initialized properly.
I still don't know how to initialize it. I know the approximate
sequence, but it doesn't appear to work.
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com] On
> Behalf Of Jonathan Larmour
> Sent: Wednesday, July 04, 2001 2:37 PM
> To: Trenton D. Adams
> Cc: 'eCos discussion'
> Subject: Re: [ECOS] ISR occurs, but DSR does not.
>
>
> "Trenton D. Adams" wrote:
> >
> > >
> > > At a guess the interrupt is not being
> acked properly
> > > causing it to loop doing the ISR because
> it will keep
> > > regenerating the interrupt when
> interrupts are re-enabled.
> > >
> > > Also you have to return
> > > CYG_ISR_HANDLED|CYG_ISR_CALL_DSR from
> your ISR for it
> > > to call the DSR.
> >
> > Wouldn't this cause my CYG_TRACE to print to the
> screen several times?
>
> In that case, yes it presumably isn't that then.
>
> > I'm sure I'm clearing the interrupt properly. If I
> didn't clear it
> > properly on the PCMCIA controller side, I would get
> a whole bunch of
> > interrupts really quickly. Even if this happens,
> my DSRs are still
> > used every time.
>
> They _are_ still used? Just to be clear, from what
> you described before it seems that everything just
> freezes when a card is inserted, right? Do you have
> any idea what's happening when that happens?
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK.
> Tel: +44 (1223) 271062 Maybe this world is another
> planet's Hell -Aldous Huxley || Opinions==mine Come
> to the Red Hat TechWorld open source conference in Brussels!
> Keynotes, techie talks and exhibitions
> http://www.redhat-techworld.com/
>