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.

TDA4VM: MCU_MCAN0 enable receive and send interrupt issue

Part Number: TDA4VM

hello expers:

I use the demo in the file : psdk_rtos_auto_j7_06_02_00_21/pdk/packages/ti/csl/example/mcan/mcanEvmLoopback/mcan_evm_loopback_app_main_k3.c,

In order to realize the receiving and sending function of can bus, I enable the receive and send interrupt in the initializing, but only the sending function is OK,

could you give me some demo to show how to enable the receive and send interrupt at the same time? thank you.

  • Hi, Xuebin:

    There are 30 MCAN interrupts, please refer to the MCAN_ILS description.

    If you want to use separate interrupt lines for Tx and Rx, and both Rx and Tx interrupts enabled at the same time,  these interrupts need to be categorized and distributed to the two interrupt lines.

    function : MCAN_selectIntrLine can be used for the above purpose.

    In the PDK example, mcan_evm_loopback_app_main_k3.c to demonstrate the MCAN functionality, it routes all the interrupts to a single interrupt line.

    For Tx, it routes all the interrupts to LINE0; for Rx, it routes all the interrupts to LINE1.