Hello everyone. I am using the S32K144 chip. I use KEIL software to encode. I encountered some problems when I debugged the CAN bus.
1.CAN reception can only receive previously set identifiers. If I want to receive all CAN data, regardless of his ID, how do I configure registers?
2. CAN receive interrupt CAN0_ORed_0_15_MB_IRQHandler can not enter, in addition to configuring NVIC, what registers need to be configured?
This is my configuration:
S32_NVIC->ICPR[2] |= 1 << (CAN0_ORed_0_15_MB_IRQn % 32);
S32_NVIC->ISER[2] |= 1 << (CAN0_ORed_0_15_MB_IRQn % 32);
S32_NVIC->IP[CAN0_ORed_0_15_MB_IRQn] = 0xA;
Thanks for you answer.