Hello there,
In my code, I would like to transmit 8 messages of 8 bytes each in the extended CAN BUS mode. All message boxes were initialized as single message (not FIFO) and with data length of 8 bytes, and ready to accept data. After both DCAN1IF1DATA and DCAN1IF1DATB were written with data bytes, I use DCAN1IF1CMD with a message number to launch the transmission.
With the debugger, I step to just before setting DCAN1IF1CMD message number, no activity at the bus, then just step over this line, then the bus is having activities but never stops.
dcan1if1cmd_bit.DataA = 1; // update data A register dcan1if1cmd_bit.DataB = 1; // update data B register dcan1if1cmd_bit.TxRqst_NewDat = 1; // set transmit request dcan1if1cmd_bit.MessageNumber = msgNo; // set message number DCAN1IF1CMD = dcan1if1cmd; // start the TX process
Anything that I've missed?