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.

DRA829V: configure Mailbox objects to Transmit and receive for any CAN messages

Part Number: DRA829V
Other Parts Discussed in Thread: DRA829

Hi, 

We are working on DRA829 using psdk_rtos_auto_j7_06_02_00_21.

I need help to configure our CAN Mailbox objects to Transmit and receive for any CAN messages. ( basically no filter for any messages)

is there any chance of adding open filters , if yes, how can we do that ?

It is communicated that it is available in SDK 7.0.

Is there any ways to adapt some changes directly to 6.2 and work ?

Best Regards,

Venu H

  • Hi Venu,

    Let me try to get those changes on top of SDK6.02. I will post a patch here in a couple of days.

    Regards,

    Karan

  • Hi Venu,

    I believe the request for backporting of the feature on CAN is to go ahead with HW checkout.

    If yes, then I was able to get the CAN functionality up on Linux and have added the patches for the same. You need to apply them on the Linux SDK and rebuild the kernel and dtbs. After that you should be able to test MCU MCAN0 and MCU MCAN1 to receive any CAN ID. (these patches are on SDK6.02)

     Instructions to apply the patches:

    1. cd <PSDKLA6_2>/board-support/board-support/linux-4.19.94+gitAUTOINC+5a23bc00e0-g5a23bc00e0
    2. git am <PATH_TO_PATCHES>/*

     

    Rebuilding the Kernel and DTBs: (note you should have the setup to build the PSDKLA, run the ./sdk-install.sh)

    1. edit the <PSDKLA6_2>/Rules.make and change the DESTDIR to point to your SD card's rootfs (usually /media/<USER>/rootfs)

    example: DESTDIR ?=/media/karan/rootfs

    1. cd <PSDKLA6_2>
    2. make linux -sj
    3. Insert SD card in the PC
    4. sudo make linux_install

     

    Running and testing on the target:

    1. Connect the CAN emulator to the MCU MCAN0 or MCU MCAN1 (I am mentioning commands assuming your CAN emulator is connected to MCU MCAN0)
      1. The CAN emulator should be setup properly i.e. 1Mbps Nominal Bit rate and 5Mbps Data bit rate.
    2. Put the SD card prepared in previous step and boot the board.
    3. On the target, once booted to file system – run the below commands:
      1. ip link set can0 type can bitrate 1000000 dbitrate 5000000 fd on
      2. ip link set can0 up
      3. candump can0
    4. With candump can0 command running on the target, send messages with any ID to the TDA4. It should print the message on the console (as candump is running). See below

    CAN emulatore:

    Target:

    There are more details on the same on e2e FAQ - https://e2e.ti.com/support/processors/f/791/t/922168

    I believe this should help you with the HW checkout for MCU MCAN0 and MCU MCAN1. You can do the same for MCAN0 and MCAN2 (see the FAQ, that has patches for the same). Let me know if you see issues.

    Regards,

    Karan

    Patches on PSDKLA6.02: /cfs-file/__key/communityserver-discussions-components-files/791/can_5F00_hw_5F00_checkout_5F00_patches_5F00_linux.tar.gz