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.

AM2634: CAN driver drops frames while reception MCAL version 09.00.00

Part Number: AM2634

Hello,

The CAN driver is not working as expected during reception if the separation time between the frames being sent is ~0ms.

The driver drops frames which leads to receiving wrong sequence numbers during the segmentation of the received message.

Attached log from the transmission of the segmented message and a screenshot from a debugging array storing the received PDUs in the CanIf_RxIndication.

  

As seen from the screenshots the driver always drops a frame and receives the next one: 21 -> 23 -> 25 and so on. Sequence numbers 22, 24, 26, etc. are lost.

Your help is appreciated.

Yours,
Abdelrhman Afifi

  • Hi Afifi,

    Are you using FIFO or buffer to receive CAN messages?

    BR,

    Sunil

  • Hello,
    Here is the configuration:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /* ======================================================================
    * Copyright (C) 2022-2023 Texas Instruments Incorporated
    *
    * All rights reserved. Property of Texas Instruments Incorporated.
    * Restricted rights to use, duplicate or disclose this code are
    * granted through contract.
    *
    * The program may not be used without the written permission
    * of Texas Instruments Incorporated or against the terms and conditions
    * stipulated in the agreement under which this program has been
    * supplied.
    * ==================================================================== */
    /***************************************************************************
    Project: lgit
    Date : 2023-11-08 16:26:27
    This file is generated by EB Tresos
    Do not modify this file, otherwise the software may behave in unexpected way.
    *****************************************************************************/
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /* ======================================================================
    * Copyright (C) 2022-2023 Texas Instruments Incorporated
    *
    * All rights reserved. Property of Texas Instruments Incorporated.
    * Restricted rights to use, duplicate or disclose this code are
    * granted through contract.
    *
    * The program may not be used without the written permission
    * of Texas Instruments Incorporated or against the terms and conditions
    * stipulated in the agreement under which this program has been
    * supplied.
    * ==================================================================== */
    /***************************************************************************
    Project: lgit
    Date : 2023-11-08 16:26:27
    This file is generated by EB Tresos
    Do not modify this file, otherwise the software may behave in unexpected way.
    *****************************************************************************/
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /* ======================================================================
    * Copyright (C) 2022-2023 Texas Instruments Incorporated
    *
    * All rights reserved. Property of Texas Instruments Incorporated.
    * Restricted rights to use, duplicate or disclose this code are
    * granted through contract.
    *
    * The program may not be used without the written permission
    * of Texas Instruments Incorporated or against the terms and conditions
    * stipulated in the agreement under which this program has been
    * supplied.
    * ==================================================================== */
    /***************************************************************************
    Project: lgit
    Date : 2023-11-08 16:26:27
    This file is generated by EB Tresos
    Do not modify this file, otherwise the software may behave in unexpected way.
    *****************************************************************************/
    /**
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Afifi,

    As you are using buffer to receive 0x71D message and the frames sent in interval with ~0ms, I suggest you to create 1 more RX mailbox object with HwObjectCount > 1 and point to same HwList CanConfigSet_CanHardwareObject_FD_Rx_Physical_CAN1_HwFilterConfigList.

    This will ensure messages will be received in FIFO as well and you will receive all messages.

    BR,

    Sunil

  • Hi Afifi,

    Any updates on this?

    BR,

    Sunil