Re: LPC1769 CAN port 2 issue
- Hi,I Try to find out what happening , I just do some changes in "defconfig " file for debuggingCONFIG_DEBUG=y
CONFIG_DEBUG_SYMBOLS=yCONFIG_DEBUG_CAN=yThen I try to read debug messages, from that I think , The IRQ not registered properly for CAN2, So it wait for receiving the send packets.Here I attached Debug output.Thanks,M.Kannan.
> I Try to find out what happening , I just do some changes in "defconfig " file for debuggingThat is some good information. I don't know why you are not getting any interrupts, however.
> Then I try to read debug messages, from that I think , The IRQ not registered properly for CAN2, So it wait for receiving the send packets.
> Here I attached Debug output.
You will need to review the code and register definitions and compare them with the specification. There must be something wrong either with the register definitions or with the way you are using it.
I cannot remember if CAN2 was ever tested or not. I did not write the LPC17xx CAN driver (but I did work with it on one project).
My understanding is that CAN1 and CAN2 share the same interrupt so I don't think that the interrupt control is the issue (although the user manual is confusing. It labels the interrupt as the CAN0/1 common interrupt. I assume that they meant CAN1/2 common interrupt).
Have you tried enabling both CAN ports. Try adding
but continue initializing only CAN2.