Other Parts Discussed in Thread: HALCOGEN
If I configure any CAN1 Mailbox between mailbox 49 to mailbox 64 to receive and activate it in Halcogen 04.07.01 these mailboxes do not receive. If I use same configuration and config a Mailbox in any other mailbox in CAN1 it receives message just fine. I compared the code generated by Halcogen and the canREG1 registers get configured the same except IF2NO of course. Below is what Halcogen generates:
canREG1->IF2MSK = 0xC0000000U | (uint32)((uint32)((uint32)0x01FFFFFFU & (uint32)0x1FFFFFFFU) << (uint32)0U);
canREG1->IF2ARB = (uint32)0x80000000U | (uint32)0x40000000U | (uint32)0x00000000U | (uint32)((uint32)((uint32)0x01455105U & (uint32)0x1FFFFFFFU) << (uint32)0U);
canREG1->IF2MCTL = 0x00001000U | (uint32)0x00000000U | (uint32)0x00000000U | (uint32)0x00000080U | (uint32)8U;
canREG1->IF2CMD = (uint8) 0xF8U;
If I send a message to ID 0x01455105 using PEAK USB when mailbox 18 is configured as above,
if (canIsRxMessageArrived (canREG1, canMESSAGE_BOX18) ) will return true.
If I configure mailbox 49 to do the same thing and I send a message to ID 0x01455105 using PEAK USB
if (canIsRxMessageArrived (canREG1, canMESSAGE_BOX49) ) will return false