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>;
};
3. 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

https://e2e.ti.com/support/processors/f/791/t/732131?tisearch=e2e-quicksearch&keymatch=beagleboard#pi320627=1

Thank

เมื่อ วันพุธที่ 24 ตุลาคม ค.ศ. 2018 16 นาฬิกา 43 นาที 09 วินาที 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 
> <https://www.google.com/url?q=https%3A%2F%2Fe2e.ti.com%2Fsupport%2Fprocessors%2Ff%2F791%2Fp%2F739907%2F2731843%232731843&sa=D&sntz=1&usg=AFQjCNGpwDxTRoks5bwcRhFLswkEFJyimA>
>
> 在 2018年10月11日星期四 UTC+8下午7:53:59,[email protected]写道:
>>
>> 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 เขียนว่า:
>>>
>>> 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 
>>>
>>>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/7a917be6-0b35-4fc4-a593-2a1e23cca740%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to