2007-04-24 08:45 PM
2007-04-18 01:50 AM
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.