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.

AWR1642BOOST: AWR1642 CAN-FD transmission error

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: AWR1642

Hello,

I use the CAN-FD to transport radar objects to PC .

The adapter is PEAK system PCAN-USB FD.

I add the CAN-FD to SRR lab, which is referred from the lab of object_data_over_can in automotive toolbox 2.5 .

If radar send a package at a time, the PC will receive a correct package.

If radar send package continuously, the error will happen.

The error code is -3502.

This error will also happen when using the bin file object_data_over_can in automotive toolbox 2.5,

Please help me to solve this problem.

Thank you.

Morris Huang

  • Hi Morris,

    I would request you to follow the PCAN setting instructions provided in the MMWAVECANVISUALIZER_UserGuide.pdf of 'lab0005_object_data_over_can\odoc-host\' directory. That application works fine with the PCAN Host application built on top of PCAN dll.

    Regards,

    Jitendra

  • Hi Morris,

    What are the CAN bitrates that you have set in your application ?

    One of the ways you can try to resolve some of these issues is to create multiple Tx objects and use them when transmitting the data from the device.

    Thanks,

    -Raghu

  • Hi, Jitendra and Raghu

    I check the setting of PCAN-VIEW, and it is correct.

    Then i find that i don't add the CAN BUS Circuit, and i add it.

    Now i can receive the data by using PCAN-VIEW, but the log have some error.

    The error is stuff error.

    This error will also happen when using the bin file object_data_over_can in automotive toolbox 2.5,

    Please help me to solve this problem.

    Thank you.

    Morris Huang

  • Morris,

    When any CAN message transmission/reception fails, controller updates LEC(Last Error Code) and DLEC(Data Phase Last Error Code) fields in status register('MCAN_PSR'  ).


    LEC: this field is updated when error happened in arbitration phase in case of CAN FD message or during full message for classic CAN message.
    DLEC: this field is updated when error happened in data phase in case of CAN FD message.

    Could you provide the LEC/DLEC fields when the stuff error is seen?

    Stuff Error is caused if  more than 5 equal bits in a sequence have occurred in a part of a received message where this is not allowed. Do you have receive messages also coming in? 

    Thanks,

    Raghu

  • Hi, Raghu

    When the stuff error is caused, the message also is lost.

    I send the MCAN status (package id is 0xD7) after the data package was sent.

    Here are two examples.

    1. When i send a command to AWR1642 to let it send data by CAN-FD,and the next package was lost(time stamp 84.8349 in fig.1).

    Then the stuff error is caused, and the status was changed from "0x000E000F" to "0x000E340F".

    The LEC is 7,and the DLEC is 4.

    2. When the AWR1642 send a package to PCAN-View by CAN-FD,the package is lost (time stamp 542.5619 in fig.2).

    The stuff error is caused, and the status was changed from "0x000E000F" to "0x000E040F".

    The LEC is 7,and the DLEC is 4.

    Thanks.

    Morris Huang

    PCAN-VIEW send a command to AWR1642.

    AWR1642 send packages to PCAN-VIEW

  • Hi, all

    Is there any update?

    Thanks.

    Morris Huang

  • Hi Morris Huang,

    Did you validate using multiple CAN TX and RX objects in your code to TX and RX respectively?

    -Raghu