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.

CCS/IWR6843ISK: [CAN FD]MCAN External Tx/Rx test fail, Error Reason : 7

Part Number: IWR6843ISK
Other Parts Discussed in Thread: IWR6843

Tool/software: Code Composer Studio

Hi,

We want to use CAN FD of IWR6843 ISK, then test with the code of SDK(packages\ti\drivers\canfd\test\xwr68xx):

MCAN External loopback test success.

MCAN External Tx/Rx test fail, Error Reason : 7.  ==> Please check why "Error Reason : 7." occurs, thanks a lot!

// MCAN External Tx/Rx test fail log as below,

[Cortex_R4_0] *******************************************************
CANFD Unit Test Menu
Please select the type of test to execute:
1. MCAN Internal loopback test
2. MCAN External loopback test
3. MCAN Multiple Tx test
4. MCAN External Tx/Rx test
5. MCAN EVM-EVM test
6. MCAN Tx Cancel test
7. MCAN Power down test
8. MCAN Message Id Range test
*******************************************************
> Enter your selection: Debug: External transmit testing
mcanTransmitTest(): CANFD_init
mcanTransmitTest(): CANFD_configBitTime
mcanTransmitTest(): CANFD_createMsgObject TX
mcanTransmitTest(): CANFD_createMsgObject TX
mcanTransmitTest(): Send data over Tx message object
Debug: Number of iterations : 1
Debug: Number of messages transmitted : 0
Debug: Number of messages received : 0
Debug: Number of messages lost : 0
Debug: Error Status Interrupt : 4
Debug: Error Reason : 7

// MCAN External loopback test success log as below

[Cortex_R4_0] *******************************************************
CANFD Unit Test Menu
Please select the type of test to execute:
1. MCAN Internal loopback test
2. MCAN External loopback test
3. MCAN Multiple Tx test
4. MCAN External Tx/Rx test
5. MCAN EVM-EVM test
6. MCAN Tx Cancel test
7. MCAN Power down test
8. MCAN Message Id Range test
*******************************************************
> Enter your selection: Debug: External loopback testing
mcanLoopbackTest(): CANFD_init
mcanLoopbackTest(): CANFD_configBitTime
mcanLoopbackTest(): [testSelection 2]
mcanLoopbackTest(): CANFD_setOptions
mcanLoopbackTest(): CANFD create Tx message object
mcanLoopbackTest(): CANFD create Rx message object
mcanLoopbackTest(): [iterationCount 0], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 1], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 2], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 3], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 4], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 5], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 6], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 7], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 8], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 9], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 10], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 11], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 12], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 13], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 14], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 15], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 16], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 17], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 18], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 19], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 20], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 21], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 22], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 23], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 24], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 25], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 26], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 27], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 28], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 29], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 30], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 31], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 32], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 33], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 34], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 35], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 36], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 37], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 38], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 39], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 40], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 41], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 42], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 43], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 44], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 45], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 46], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 47], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 48], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 49], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 50], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 51], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 52], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 53], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 54], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 55], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 56], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 57], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 58], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 59], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 60], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 61], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 62], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 63], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 64], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 65], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 66], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 67], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 68], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 69], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 70], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 71], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 72], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 73], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 74], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 75], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 76], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 77], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 78], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 79], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 80], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 81], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 82], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 83], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 84], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 85], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 86], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 87], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 88], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 89], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 90], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 91], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 92], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 93], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 94], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 95], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 96], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 97], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 98], [testFrameType 1]
mcanLoopbackTest(): [iterationCount 99], [testFrameType 1]
Debug: Number of iterations : 100
Debug: Number of messages transmitted : 100
Debug: Number of messages received : 100
Debug: Number of messages lost : 0
Debug: Number of data mismatch : 0
Debug: Number of Frame mismatch : 0
Debug: Number of Get_Data errors : 0
Debug: Error Status Interrupt : 0


Debug: Message Identifier : 0x29e
Debug: Direction : Transmit
Debug: Number of interrupts received : 100
Debug: Number of messages processed : 100


Debug: Message Identifier : 0x29e
Debug: Direction : Receive
Debug: Number of interrupts received : 100
Debug: Number of messages processed : 100
Debug: Receive & Transmit Measurements
Debug: Rx Min:334 Max: 360 Average:335 ticks
Debug: Tx Min:23146 Max: 25475 Average:23744 ticks


Debug: External loopback testing for 100 iterations Passed
Feature: External loopback testing: Passed