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.

TMS320F2812: ECAN receiving interrupt. Receiving data abnormal

Part Number: TMS320F2812


I encountered a problem in product design, my settings are like this:

Program Settings on-chip CAN device eCAN, enable Mailbox 0(send) , Mailbox 16(receive) , mailbox 17(receive) , 16 mailbox ID 0x3,17 mailbox ID 0x350, enable 16,17 receiving interrupt, in addition has also established the SCI, receives the triggering interrupt.

The data instructions in mailbox 16 and 17 correspond to two different data reading programs. When receiving the instructions sent by the host computer, the can receiving interrupt is triggered to identify the instructions in the protocol, the result of data calculation is sent to FPGA by SCI, and the FPGA receives the data.

The data in FPGA is packed by SCI and sent to DSP by SCI. The FPGA data is packed and then sent to the host computer by Mailbox 0. PROBLEM: Send Can Command on the power, the product can only enter 17 mailboxes after receiving data, can not enter 16 mailboxes, in 17 mailboxes processing interrupt point, can enter breakpoints, at this point to see 17 mailbox data for the upper computer should be sent to 16 mailbox, 16 mailbox is random code data (I think is random code) , 4 SETS OF PRODUCTS ONLY 1 product problems, other products are normal.

Try: keep the mailbox the same, change the mailbox ID any two other combinations (as long as it is not 0x3/0x350) are normal, keep the ID unchanged, change the mailbox number tried [7,8] , [3,4] , [17,18] , [16,31] are normal, it’s really not clear what the problem is.