If the CAN message buffer payload is set to 8bytes, the corresponding flag of the IFLAG register will be set after the message is sent or received.If payload is set to 16Byte or 32Byte or 64Byte, i found that the IFLAG is either not be set up or set up wrongly. I would like to understand under such circumstance, how to get the flag or how to understand the status of the IFALG register.
MB flag is set when message is successfully sent or received, regardless of payload.
What did you mean by "flag is set up wrongly"?
How do you manage the MBs for payload of 16/32/64 bytes? Note the MB's address offset changes for different payload in memory block, depending of MBDSRn setting. Tables 53-15 to 53-17 summarizes this.