Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

intConnect(INUM_TO_IVEC (?),...)

499 views
Skip to first unread message

co...@ro.com

unread,
Apr 9, 1998, 3:00:00 AM4/9/98
to

Hello everyone,

First the HW:

MVME2307 (PPC604)
VXI chassis

I am trying to connect an isr to the appropriate vector number to allow our
board to receive vme interrupts and then launch the isr provided to the
vxworks call to intConnect(...)

I was hoping that someone has done the same thing on identical architecture or
a similar board. I have tried every vector number I can imagine, but when I
generate an interrupt using VICtext, I am always confronted with "bad vme
interrupt error message". I have yet to decide if the problem is with the
status/ID supplied from VICtext or something else. It is my understanding
that the vector number is not calculated by the interrupt handler until the
the IACK* signal is activated. As far as I can tell, this is not occurring,
(the bad vme interrupt will print indefinately until the interrupt is manually
deasserted). If anyone has any help to offer, it would be appreciated.

Chris Otto

further note: I HAVE initiated interrupts with sysIntEnable()

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading

Erik Tijssen

unread,
Apr 14, 1998, 3:00:00 AM4/14/98
to co...@ro.com


co...@ro.com wrote:

> Hello everyone,
>
> First the HW:
>
> MVME2307 (PPC604)
> VXI chassis
>
> I am trying to connect an isr to the appropriate vector number to allow our
> board to receive vme interrupts and then launch the isr provided to the
> vxworks call to intConnect(...)
>
> I was hoping that someone has done the same thing on identical architecture or
> a similar board. I have tried every vector number I can imagine, but when I
> generate an interrupt using VICtext, I am always confronted with "bad vme
> interrupt error message". I have yet to decide if the problem is with the
> status/ID supplied from VICtext or something else. It is my understanding
> that the vector number is not calculated by the interrupt handler until the
> the IACK* signal is activated. As far as I can tell, this is not occurring,
> (the bad vme interrupt will print indefinately until the interrupt is manually
> deasserted). If anyone has any help to offer, it would be appreciated.
>
> Chris Otto
>

Hey Chris,

Problem might be an offset of your IRQ0. I use a 486 bases board and use
interrupts. With my BSP, a variable COM1_INT_VEC was supplied to install an ISR
for the interrupt of COM1 (IRQ4). I've found out that in my case the offset is 20
hex.

I install the driver as follows: intConnect(INUM_TO_IVEC(COM1_INT_VEC, <ISR
name>,0)

That's all. I don't enable ints. This is done automatically by intConnect.

Good luck,

Erik Tijssen


0 new messages