bb_x15 : DCAN communication problem

Link on ti e2e: https://e2e.ti.com/support/arm/sitara_arm/f/791/t/710355.

bb_x15 's DCAM1 don’t work on either ubuntu-16.04.3-minimal-armhf-2017-10-10 or TI’s Arogo
On Arogo,I use:

`

root@am57xx-evm:~# canconfig can0 bitrate 50000 ctrlmode triple-samplin
[  757.361582] omap_hwmod: dcan1: _wait_target_disable failed
can0 bitrate: 50000, sample-point: 0.875                               
[  757.376837] omap_hwmod: dcan1: _wait_target_disable failed          
can0 ctrlmode: loopback[OFF], listen-only[OFF], tripple-sampling[ON],one-shot[OFF], berr-reporting[OFF]
root@am57xx-evm:~# ifconfig can0 up 

`

And everything about CAN looks good

`

root@am57xx-evm:~# lsmod | grep can                                
can_raw                 6589  2                                              
can                    29904  1 can_raw                                      
c_can_platform          6638  0         
c_can                   9718  1 c_can_platform
can_dev                12397  1 c_can

root@am57xx-evm:~# cat /proc/device-tree/ocp/can\@481cc000/status      
okay

`

Except: omap_hwmod: dcan1: _wait_target_disable failed.
What should I do with this error messagge

arch/arm/mach-omap2/omap_hwmod.c: line 1845

`

/**

  • _omap4_disable_module - enable CLKCTRL modulemode on OMAP4
  • @oh: struct omap_hwmod *

Hi,
Now can you use dcan on bb-x15?
If yes, please advise me how do open it

I see this link https://e2e.ti.com/support/processors/f/791/p/715990/2645332#pi239031349=1

but it cannot use

เมื่อ วันอังคารที่ 14 สิงหาคม ค.ศ. 2018 14 นาฬิกา 27 นาที 31 วินาที UTC+7, ezio H เขียนว่า:

Hello ,Thanks for reply.
en…Good news is that DCAN can work in loopback mode !
Bad news is still that DCAN can’t use in nomal mode .I keep consulting the TI engineer.
referring to https://e2e.ti.com/support/processors/f/791/p/739907/2731843#2731843

在 2018年10月11日星期四 UTC+8下午7:53:59,arim…@gmail.com写道:

Within the past week I tried to open DCAN. Now it work.
I can send and receive package through DCAN.

  1. I follow cross-compiler kernel this link
    https://www.digikey.com/eewiki/display/linuxonarm/BeagleBoard-X15

  2. After step download kernel I edit file am57xx-beagle-x15-common.dtsi by reference from am57xx-idk-common.dtsi

&dra7_pmx_core {
dcan1_pins_default: dcan1_pins_default {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx /
DRA7XX_CORE_IOPAD(0x37d4, PIN_INPUT_PULLUP | MUX_MODE0) /
dcan1_rx */

;
};

dcan1_pins_sleep: dcan1_pins_sleep {
pinctrl-single,pins = <
DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP) /* dcan1_tx.off /
DRA7XX_CORE_IOPAD(0x37d4, MUX_MODE15 | PULL_UP) /
dcan1_rx.off */

;
};
};

&dcan1 {
status = “okay”;
pinctrl-names = “default”, “sleep”, “active”;
pinctrl-0 = <&dcan1_pins_sleep>;
pinctrl-1 = <&dcan1_pins_sleep>;
pinctrl-2 = <&dcan1_pins_default>;
};

  1. After login debian I open dcan with command : ip link set can0 type can; ifconfig can0 up;

you can see my forum talked with TI engineer

Thank

เมื่อ วันพุธที่ 24 ตุลาคม ค.ศ. 2018 16 นาฬิกา 43 นาที 09 วินาที UTC+7, ezio H เขียนว่า:

Thanks for reply.
Good for you ,but I still can’t make dcan1 work using am57xx-beagle-x15-revc.dtb.And what’s more ,I even meet a problem that pin (dcan_tx) cannot be control by cpu,no matter in what pin mode (really really annoying ,and I try another bb_X15 board.Then it worked normally .I think that pin is broken ).
Now intead ,I am using dcan2 ,and it works perfectly ,referring to https://e2e.ti.com/support/processors/f/791/p/739907/2743480#2743480.

在 2018年10月25日星期四 UTC+8上午2:13:01,arim…@gmail.com写道: