Hi,
- Acknowledge a message object
My experiences is that FLEXCAN_TransferHandleIRQ doesn't acknowledge the message object. When I send a can message. If I breakpoint in the callback function the corresponding mailbox code is 0010b full. when I send an other canbus message the corresponding mailbox code is 0110b overrun.
To work around this. in the callback function I reinitialize FLEXCAN_TransferReceiveNonBlocking after I read the communication data. That seems to work. But I assume this is not the intended use.
- Interrupts
My intended question is: How do I prioritize the canbus interrupt with other peripherals like: timer, UARTs?
- flexcanConfig.enableIndividMask
This doesn't work.:
flexcanConfig.enableIndividMask = true;
FLEXCAN_SetRxIndividualMask(CAN2, mb_index, 0x7FF);
This does:
flexcanConfig.enableIndividMask = false;
FLEXCAN_SetRxIndividualMask(CAN2, mb_index, 0x7FF);
that doesn't seem very logical to me.
Regards,
Ernst