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.

Enabling CAN/DCAN on Jacinto6 evm board, model: TI DRA742

Other Parts Discussed in Thread: DRA742

Dear Team,

I got an opportunity to work with Jacinto6 evm board, model: TI DRA742, and want to test the board with enabling the CAN into it.

I am using the following s/w packages :

Kernel Linux 3.8.13

OS Android KitKat 4.4.2

Toolchain Andriod linux-x86 toolchain arm-eabi-4.7

I tried to flash the board with pre-built image as well as my customize kernel image(by enabling "Generic Platform Bus based C_CAN/D_CAN driver"  at networking support module in kernel), but getting stuck at finding the output at CAN analyser tool, as I am not able to identify how to use CAN1, DCAN1 and DCAN2 pins on the board.

It will be appreciable if you can provide me the detailed board specs or the useful links for the board on subject matter as you have provided for AM335X board.   

Thanks you,

Rohit

  • Hello Rohit,

    It seems that DCAN interface is not enabled in pre-built image for Android. I suggest you to download and build the Android release as follow the steps described in this wiki - http://omapedia.org/wiki/6AK.1.1_Release_Notes

    The DCAN pins are defined in arch/arm/boot/dts/ dra7-evm.dts file

    dcan1_pins: pinmux_dcan1_pins {
            pinctrl-single,pins = <
                0x3d0    0x00000000    /* DCAN1_TX: MODE0 */
                0x3d4    0x00060000    /* DCAN1_RX: MODE0 | INPUTENABLE | PULLUP */
            >;
        };

        dcan2_pins: pinmux_dcan2_pins {
            pinctrl-single,pins = <
                0x288    0x00000002    /* DCAN2_TX: MODE2 */
                0x28C    0x00060002    /* DCAN2_RX: MODE2 | INPUTENABLE | PULLUP */
            >;

    When you download the whole Android release, we can apply changes which to enable DCAN interface.

    For more information you can see in:

    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/154560.aspx

    http://e2e.ti.com/support/embedded/android/f/509/t/200105.aspx

    http://processors.wiki.ti.com/index.php/AM335x_DCAN_Driver_Guide#CAN_Utilities

    Best regards,

    Yanko

  • Hi Yanko,

    Thanks you for your reply.

    Yes, In my arch/arm/boot/dts/ dra7-evm.dts file the pins defined as:

    dcan1_pins: pinmux_dcan1_pins {
    pinctrl-single,pins = <
    0x3d0 0x00000000 /* DCAN1_TX: MODE0 */
    0x418 0x00000001 /* WAKEUP0: MODE1 */
    >;
    };

    dcan2_pins: pinmux_dcan2_pins {
    pinctrl-single,pins = <
    0x288 0x00000002 /* DCAN2_TX: MODE2 */
    0x28C 0x00060002 /* DCAN2_RX: MODE2 | INPUTENABLE | PULLUP */
    >;
    };

    I checked with pre-built image through CAN analyzer tool and achieved one way communication at DCAN1(JP1) i.e signals are coming to board.

    Now, I downloaded the can-utils from  "git clone https://git.gitorious.org/linux-can/can-utils.git." but not able to create the executable for TI DRA742 board.

    Could you please provide me the link to get step involve to generate the executable for candump and cansend and to make other setting if required on board.

    Thanks you,

    Rohit