Tool/software: Code Composer Studio
Hello,
I'm trying to handle a TX interrupt for CAN message transmission, I set a function can1HighLevelInterrupt in chanel 16 of the vim RAM with REQENASET[0] bit 16 to 1, set the priority to IRQ using register FIRQPR[0] and defined the function like this:
#pragma CODE_STATE(can1HighLevelInterrupt, 32) #pragma INTERRUPT(can1HighLevelInterrupt, IRQ) void can1HighLevelInterrupt(void) { //code }
About CAN module it's initialized with CTL register, Parity Enabled (0xA), ABO, CCE, SIE, IE0 and INit bits are 1, cleared pending error flags by setting ES to FFFFFFFF and assigned all interrupts to DCAN0INT by setting INTMUX to 00000000. I'm using 1 message box with MCTL 0x00002888 and ARB 0xE000000E. I'm using a Komodo CAN Duo and confirmed that the message was transmitted correctly, but the interrrupt is not triggered.