the problem was in incorrect MEMMAP setting. In LPC2106 chip other
interrupt service programs worked well, because it had
ldr pc,[pc,#-0xff0] programmed in the flash by our vendor.
Now, with addition of MEMMAP=0x2, posted CAN ISR code works well.
Best regards,
Marek P.
--- In lpc2000@lpc2..., Marek Peca <marek@d...> wrote: > Dear colleagues,
>
> playing half a day with LPC2119 CAN controller, I really halted at
> problem, that interrupt service routine for CAN message reception
> does not work.
>
> I have a board with LPC2119 (TPN0431AY), crystal, CPU and peripheral
> frequency equal to 10MHz. It communicates well via CAN with laptop
> CAN analyser software (both reception and transmission), using
> 50kb/s. Programmed to RAM using bootloader software (other programs
> works well, even with interrupts). Compiled on Linux using gcc,
> header file lpc21xx.h and crt0.s downloaded somewhere.
>
> * When I use polling for incoming message (C1GSR&0x1), everything
> works well. When I setup CAN receive interrupt handler, it does not
> work -- the handler is never called after message reception.
playing half a day with LPC2119 CAN controller, I really halted at
problem, that interrupt service routine for CAN message reception
does not work.
I have a board with LPC2119 (TPN0431AY), crystal, CPU and peripheral
frequency equal to 10MHz. It communicates well via CAN with laptop
CAN analyser software (both reception and transmission), using
50kb/s. Programmed to RAM using bootloader software (other programs
works well, even with interrupts). Compiled on Linux using gcc,
header file lpc21xx.h and crt0.s downloaded somewhere.
* When I use polling for incoming message (C1GSR&0x1), everything
works well. When I setup CAN receive interrupt handler, it does not
work -- the handler is never called after message reception.
Here is minimalized code (single-file), which works without ISR and
fails using it. It toggles level at pin P0.7 after msg reception if
DONT_USE_IRQ defined, P0.7 remains high if undefined.
Any suggestions? Am I missing some point?
Thank you very much for your help.
Marek.