In the following program,I find CAN messages cannot be received through this driver. I don't know where the driver problem is. Through debugging in RAM, I found that IFLAG1 is not set.
code looks normal, I think. So which kind of message are you receiving? MBs are configured to receive std or ext ID 0, so is this message sent from other node? Do you see any error detected in module? See ECR, ESR1 register.