Hi,
the configuration looks normal, so what does not work on RX side? MB2 is never updated with receive data?
Or do you see any errors detected on MCU and/or CAN tool?
Is the TX frame in the CAN tool defined to have standard or extended ID (0x123)?
The "dataInfo" in the code specifies if MB will accept std or ext ID, unless it is masked.
Also the usage of
if(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, MB2) == STATUS_BUSY) is little bit weird.
Should not be there "while" instead of "if" to pass after MB2 receives a frame? or at least use
if(FLEXCAN_DRV_GetTransferStatus(INST_CANCOM1, MB2) == STATUS_SUCCESS to print data after MB2 is updated.
BR, Petr