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.

TDA4VH-Q1: MCU_MCAN0 failed to send

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: J784S4XEVM

Tool/software:

Hi, experts

I'm experimenting with can send and receive on an EVM board, referencing the link 4.9. MCAN — Platform Development Kit (PDK) - J784S4 User Guide,I chose 1 to do the sending experiment, but the opposite end can't receive any data, stuck in this function:

ti-processor-sdk-rtos-j784s4-evm-10_01_00_04/pdk_j784s4_10_01_00_25/packages/ti/csl/example/mcan/mcanEvmLoopback/mcan_evm_loopback_app_main_k3.c:APP_mcanTxTest

mcu uart log:

That is, gMcanIsrIntr0Flag is not set to 0 in the interrupt service function.

For comparison, I chose 4 for the Loopback - external transmission and reception experiment and found that it can send and receive normally.

When I removed the connection between MCU_MCAN0 and MCU_MCAN1, I found that not a single frame was sent out, also stuck in the gMcanIsrIntr0Flag is not set to 0, according to my understanding as long as it should be sent out a frame is right.

Please help me to analyse why sending the experiment fails, thanks!

board: J784S4XEVM

sdk: 10_01_00_04

Best Regards,

Bing

  • Hello,

    If you choose the option 1 , you will be able to send data out . It is just a transmitter test. You need to configure the other end to some CANoe/PCAN tool at same configuration then only you can get data.

    You need to choose option 4 as you did to get the data externally .If you remove the connections for option 4 it will not work since CAN bus is itself not present.

    Regards

    Tarun Mukesh

  • Hi Tarun Mukesh,

    If you choose the option 1 , you will be able to send data out . It is just a transmitter test. You need to configure the other end to some CANoe/PCAN tool at same configuration then only you can get data.

    I have connected a usb canfd device, but still not receiving data, is my usb canfd configuration wrong? I can receive the data by executing the following command under linux.

    root@j784s4-evm:~# ip link set mcu_mcan0 type can bitrate 1000000 dbitrate 5000000 fd on
    root@j784s4-evm:~# ip link set mcu_mcan0 up
    root@j784s4-evm:~# cansend mcu_mcan0 113##2AAAAAAAA
    [   81.170144] can: controller area network core
    [   81.174571] NET: Registered PF_CAN protocol family
    [   81.185928] can: raw protocol
    

    usb canfd:

    Best Regards,

    Bing