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: When I test MCAN Rx, I accept data failure

Part Number: TDA4VM

hello,

When I tested the MCAN Tx, it worked. But when I tested MCAN Rx, it failed.

I used TDA4VM-SK board and 8.2 SDK.

The process for testing MCAN Rx is as follows:

root@tda4vm-sk:/opt/edge_ai_apps#ip link set can0 type can bitrate 500000 dbitrate 4000000 fd on
root@tda4vm-sk:/opt/edge_ai_apps# ip link set can0 up
[   84.406840] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
root@tda4vm-sk:/opt/edge_ai_apps# candump can0
[   95.328389] can: controller area network core
[   95.332789] NET: Registered protocol family 29
[   95.342690] can: raw protocol

I send CAN data through PC, but SK board cannot receive it.

So, I want to know,

1.Do I need to do some Settings on the SK board?

2.Can you test the MCAN Rx for me on the SK board? Then tell me how to test it.

thanks.

  • Hi,

    Can you tell me how are you testing CAN Tx and Rx? Are you using an external CAN emulator?

    If so, what are the bit rate & sampling point settings on the external emulator?

    Regards

    Karan

  • Hello,

    I use an external CAN emulator,and The Settings are shown below:

    And  testing CAN Tx and Rx process is as follows:

    tda4vm-sk login: root                                                                                 
    root@tda4vm-sk:/opt/edge_ai_apps# ip link set can0 type can bitrate 500000 dbitrate 4000000 fd on     
    root@tda4vm-sk:/opt/edge_ai_apps# ip link set can0 up                                                 
    [   75.970453] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready                                
    root@tda4vm-sk:/opt/edge_ai_apps# cansend can0 113##2AAAAAAAA                                         
    [   84.359130] can: controller area network core                                                      
    [   84.363531] NET: Registered protocol family 29                                                     
    [   84.374494] can: raw protocol                                                                      
    root@tda4vm-sk:/opt/edge_ai_apps# ip link set can0 down                                               
    root@tda4vm-sk:/opt/edge_ai_apps# ip link set can0 up                                                 
    root@tda4vm-sk:/opt/edge_ai_apps# candump can0
    

    The following message was received in my CAN emulator.

    There is a problem that CAN Tx sends this data repeatedly instead of just once.

    I tested the CAN Rx Settings with the CAN emulator as shown below:

    Regards

    Gangqiang

  • Gangqiang

    Unlocking this thread.

    Can you please comment if you are still facing this issue or is this resolved?

    Regards

    Karan