Content originally posted in LPCWare by MikeSimmonds on Fri Feb 01 16:14:25 MST 2013
[FONT=Tahoma][SIZE=2]I don't use CMSIS/RedLib, but suggest that you double check that the addresses
of your handler (COMP_IrqHandler -- by the way, I [I]really[/I] hate underscores!)
is at the proper place in the vector table.
IIRC and depending on the compier used, that [I]should[/I] be done -- for instance, I think
the Code Red setup defines a handler for all possible interrupts with the 'weak' attribute
(in starup_something.c) whereupon you defininition will 'override' the weak attribute
and be used for interrupt handling. I haven't time to check, but the name of the handler
must be [I]exactly[/I] the same -- and I don't think that your's is.
Also, remember to declare your handler as a public symbol.
Hope that helps a bit.
Mike
[/SIZE][/FONT]