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.

TMS320F28388D: Can the MCAN be configured for simultaneous CANFD and Classic-CAN?

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

I think the answer is no, but I thought I would ask; from the MCAN examples, there appear to be global (no per filter/FIFO) settings such as initParams.fdmode and brsEnable that would appear to put the entire MCAN into FD mode; plus the tx/rx FIFO sizes from 8 to 64 bytes would seem to be non-Classic-CAN capable. Ideally I would like to support my legacy Classic-CAN protocol (using different addresses of course) and a new CANFD protocol on the same MCAN.

Thanks,

Jim

  • Hi Jim,

    While transmitting a message you can configure it to be sent as a Classic CAN message or CAN FD format. 

    In the C2000Ware driverlib when defining a MCAN msg you can update the paramter (fdf) to configure the mode.

    MCAN_TxBufElement    txMsg;

    txMsg.fdf      = 0U; // Frame transmitted in Classic CAN format.

    For this note that the global MCAN (MCAN_CCCR.FDOE) configuration should have CAN FD enabled.

    You can refer to Table 45-9, 45-8 in f2838x TRM for TX, RX buffer element description.

    Thanks,

    Yashwant