Other Parts Discussed in Thread: TMS320F28377S
Recently,I debug the CAN module which now could communication in for(;;) loop on the basis of the code 《can_loopback》 on ControlSuit with TMS320F28377S,include receive and transfer data.However,I could not setup the Receive Interrupt.
when I refer to 《can_can_loopback_interrupts》,It could work under test and exl mode,but not the normal mode,eventhough I check it out the GPIO pins。
//HWREG(CANA_BASE + CAN_O_CTL) |= CAN_CTL_TEST;
//HWREG(CANA_BASE + CAN_O_TEST) = CAN_TEST_EXL;
Can anyone help me to setup this Receive Interrupt in normal mode of CAN module on TMS320F28377?
I want to get out the Receive Interrupt but not Transfer Interupt and Err Interrupt,eg.CANIntEnable(CANA_BASE,CAN_INT_STATUS);// | CAN_INT_ERROR | CAN_INT_MASTER);