Can you please specify which hardware you use?
Your desired CAN speed is 500kBaud?
In principle you have to configure a mail box for a receiving message object:
Example:
- in the msCANID.h file configure a message object and the desired CAN ID:
/* Message Object 2 */
#define MO2_ID_TYPE_CAN0 CAN_STANDARD
#define MO2_ID_CAN0 0x303
- initialze mail box for message object 2 (e.g. in main.c)
Config_CAN_MB(CAN0, 2, RXDF, 2); //configure mail box 2 for RXDF for message object 2
- check mail box 2 (e.g. in main.c)
// read message object .....
(void) Check_CAN_MB_Status(CAN0, 2, &mbStat);
if((mbStat.Status == NEWDATA)||(mbStat.Status == OVERRUN)) { // new data ?
Also check out the CAN driver Manual (in the Sources/drivers/msCANDriver/Manual/Manual.pdf file)