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.

AM263P4-Q1: ERROR IN RECEPTION OF EXTENDED CAN ID MESSAGES USING AM263Px CONTROL CARD

Part Number: AM263P4-Q1

Tool/software:

Dear Sir/Mam,

        I am unable to receive extended CAN ID messages with hard coded mcan_external_read_write example from the MCU+SDK 10.0.0.35 after successful transmission of data. I am attaching my code below for your reference

Regards,

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* Copyright (C) 2023 Texas Instruments Incorporated
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Tarun

  • Hello Tarun,

    Do you have any additional CAN devices/nodes connected to the AM263Px Control Card?

    Are you intending to run this example with Loopback mode enabled or disabled?

    Can you provide additional information regarding the test setup?

    How were you able to verify successful transmission of data? Can you provide any screenshots or additional details regarding the signal quality of transmitted signal (assuming non-internal loopback mode)?

    Thanks and Regards,

    Zackary Fleenor

  • Hi Fleenor,

    1. There are no additional CAN devices or nodes connected to the AM263Px Control Card.

    2. It would be preferable to run this example with Loopback mode disabled, as I require continuous transmission and reception of CAN messages. Additionally, the implementation needs to include the SAE J1939 frame format for extended identifiers.

    3. For the setup, I am using the AM263Px Control Card along with the USBCAN-I tool to send and receive CAN frames.

    4. Attached, you will find screenshots verifying the successful transmission of data. Please let me know if you require further details or additional screenshots.

    Thanks, and regards,

    Tarun

  • Hey Tarun,

    Thank you for providing this additional information.

    Can you attempt the test with loopback mode enabled and report the results? It isn't clear from the example code you provided what the expected operating mode should be.

    Is it possible to provide scope shots of the CAN_H and CAN_L lines to rule out any signal integrity issues?

    Best Regards,

    Zackary Fleenor

  • Hi Fleenor,

                     I have tested my code with external loopback mode enabled and captured the results using logic analyzer in the below attached image. As you can see there is no signal on the CAN_H line......

    Now I could be able to execute both reception and transmission of CAN Extended ID messages. I will attach the executed code. I need to know what necessary changes are needed to do for continuous transmission and reception with loopback mode and converting attached example into CAN J1939 format.

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    /*
    * Copyright (C) 2023 Texas Instruments Incorporated
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *
    * Redistributions of source code must retain the above copyright
    * notice, this list of conditions and the following disclaimer.
    *
    * Redistributions in binary form must reproduce the above copyright
    * notice, this list of conditions and the following disclaimer in the
    * documentation and/or other materials provided with the
    * distribution.
    *
    * Neither the name of Texas Instruments Incorporated nor the names of
    * its contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    *
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Regards,

    Tarun

  • Hey Tarun,

    I am glad to hear that you were able to properly perform the required test. Can you please create new thread for this follow up question so we can loop in the correct folks?

    Thanks and regards,

    Zackary Fleenor