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.

AM6442: MCAN not available in Processor SDK default image?

Part Number: AM6442

SUMMARY

I am not able to use the CAN bus as described at https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM64X/08_01_00_39/exports/docs/linux/Foundational_Components/Kernel/Kernel_Drivers/MCAN.html 

The command shown at that page fails:

root@am64xx-evm:~# ip link set can0 type can bitrate 1000000
Cannot find device "can0"

DETAILS

I have an AM64x SK EVM board and Processor SDK 08.01.00.39.

I have flashed and booted the as-shipped tisdk-default-image-am64xx-evm.wic.xz.

The table in 3.2.2.3 in the link above to the 08.01.00.39 Processor SDK docs indicates that the M_CAN module is enabled by default in the AM64x.

But as shown above, the instructions there do not work.

I have used the MCAN device in the past with the Processor SDK 07.02.00.01 and the original AM64x EVM board.  (That required customizations to 07.x's device tree, but I see that those same changes that I made now appear in the device tree in SDK 08.01.00.39, so it seemed like maybe it would work out of the box now.)

QUESTION

What do I need to do to make the device work?

I could build a kernel from scratch and assemble my own SD card image and all that, but I was wanting to just use the as-shipped SDK as described in the "Quick Steps" in the Processor SDK docs at the link above.

Thanks for your help,

Brad

  • Okay, never mind.  I realize now that there is no way for CAN bus to work out of the box.

    I was looking at the device tree k3-642-evm.dts.  That has support for the CAN pins.

    I see that there is a device tree for this board, k3-642-sk.dts, with no CAN pin support.

    I reviewed the schematic and see that the the MCAN1 pins are wired to the RPi expansion connector but not currently declared as having any function as far as I can tell.  So I just need to re-apply my MCAN1 patch to the device tree (but no need to configure the expansion I/O device as had to be done with the original AM64x EVM board.)

    So consider this closed for now.