This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Facing Problem in Configuring CAN RX interrupt. NEED HELP :'(

Dear All,

I have configured CAN to Operate at 1mbps.

I have done the following Settings for Interrupt

    OUT_REGL(INTC_ILR(28), (0x3f << 2));        //Priority Normal

   OUT_REGL(INTC_MIR(0), 0xefffffff);               //Enable SECC1 Line

   SETBIT_REGL(CANMIM,1 << 1);                  //Mailbox Interrupt Mask Register

   SETBIT_REGL(CANMIL,1<<0);                //Mailbox Interrupt Level Register ..Line 1
         
  // IE1 Enable
   SETBIT_REGL(CANGIM,1 << 1);

With Following COnfiguration i get TX Interrupt . I have configured Mailbox 1 as transmit.

But when i changed the things aorund Like I configure Mailbox 2 as receive.

   SETBIT_REGL(CANMIM,1 << 2);                  //Mailbox Interrupt Mask Register

   SETBIT_REGL(CANMIL,1<<0);                //Mailbox Interrupt Level Register ..Line 1
         
  // IE1 Enable
   SETBIT_REGL(CANGIM,1 << 1);

I get the Interrupt Twice. Can anybody help me out.

Thanks and Regard's

Hrishikesh