This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28035: CAN sends data as the data to be sent the previous time

Part Number: TMS320F28035


Tool/software: Code Composer Studio

Hi:

CAN debugging encountered such a problem: After the chip reset, start sending a frame of data, assuming that the transmitted data is 01 01 01 01 01 01 01 01, the data written to the mailbox register is 01 01 01 01 01 01 01 01, the length (DLC bit) is 8, but when the CAN analyzer is used to capture data on the bus, this frame has a data length of 0 and no data segment.
 The frame data is sent again (10ms or more) and the data is sent correctly.
 Send another frame of data (02 02 02 02 02 02 02 02), the data written to the send mailbox register is 02 02 02 02 02 02 02 02, the length is 8, but when the can analyzer is used to grab the data on the bus, Still 01 01 01 01 01 01 01 01.
To sum up, the problem is:
1. The first frame sent after the chip reset is not the data in the actual mailbox register, but the frame with length 0 and no data segment.
2. The subsequent data frame is the data frame that was previously written to the mailbox, not the data frame currently written in the mailbox register.