Reply by Corey, Rick February 16, 20042004-02-16
Hi All

I tried to set up a FlexCAN peripheral using Processor Expert under CW IDE
6.0.1 and seem not get any interrupt setup code. Maybe I did something
wrong or failed to do something right. I enabled a FlexCAN MB IRQ and gave
it a name and a procedure in my code, but can't find any P.E. code poking
the ITCN register IPR3, or the Vector Table.

Should I expect PE to do those for me, or is it left as an exercise for the
user?

I've turned off P.E. and copy-pasted the code snippets that were
helpful to where P.E. wouldn't over-write them if someone turns it back on.
I've poked ITCN enough that the IRQ does fire, and jumps to
the "unhandled interrupt":

#pragma interrupt
void Cpu_Interrupt(void)
{
asm(DEBUGHLT);
}

I went into vector.c, added my ISR prototype, and pasted my ISR name into
the vector table there. However, if we turn P.E. back on, it will overwrite
those.

Does anyone know any "more approved" way of doing this?
Is there a way to coax P.E. into doing it for me, so that future bean-making
won't undo what I've done?

Thanks in advance.

Rick Corey
Senior Software Engineer
DPC Instrument Systems Division