cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in interrupt mode CAN

jkim71
Associate II
Posted on April 25, 2007 at 05:45

Problem in interrupt mode CAN

1 REPLY 1
jkim71
Associate II
Posted on April 18, 2007 at 10:50

I am new to ST micom and CAN.

I am using STR71x

I have tried CAN code in software library and I have confirmed polling mode operation works well.

But I failed in interrupt mode. I'm not sure this code is only for reference and does not work perfectly.

I guesss the code does not receive CAN message and even does not assign message to variable.

Even CAN_IRQHandler is not reached.

The code only says

--

// send a pre-defined data frame

(void)CAN_SendMessage(CAN_TX_MSGOBJ, &TxCanMsg[1]);

// reception and release are done in the interrupt handler

wait();

--

I have tried comparing TxCanMsg[1] with RxCanMsg but I don't think received message will be assigned to RxCanMsg with this code.

Anyone please let me solve this problem

Thanks.