Hi,
BSP:linux 3.14
board:imx6q-sabresd
I add to imx6qdl-sabresd.dtsi :
&flexcan1{
pinctl-names ="default";
pinctrl-0 = <&pinctrl_flexcan1_1>;
status = "okay";
};
pinctrl_flexcan1_1:flexcan1grp-1{
fsl,pins = <
MX6QDL_PAD_GPIO_7__FLEXCAN1_TX 0x80000000
MX6QDL_PAD_GPIO_8__FLEXCAN1_RX 0x80000000
>;
};
Then I got this:
root@imx6qsabresd:~# dmesg | grep can
[ 1.324931] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 1.375581] 2090000.can supply xceiver not found, using dummy regulator
[ 1.381635] flexcan 2090000.can: device registered (reg_base=c0a88000, irq=142)
[ 4.441142] can: controller area network core (rev 20120528 abi 9)
[ 4.449269] can: raw protocol (rev 20120528)
[ 4.452243] can: broadcast manager protocol (rev 20120528 t)
[ 4.456630] can: netlink gateway (rev 20130117) max_hops=1
root@imx6qsabresd:~#
After that
root@imx6qsabresd:~# ip link set can0 up type can bitrate 125000
flexcan 2090000.can can0: writing ctrl=0x0e312005
root@imx6qsabresd:~# ifconfig can0 up
root@imx6qsabresd:~# ifconfig can0
can0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:16 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:142
cansend can0 112#11223344
But nothing happen,I can not get anything by oscilloscope.
Am I wrong?How to slove it.
Thank you!
Hi zhen
flexcan usage of SabreSD is described on
How to enable CAN bus on i.MX6Q SabreSD
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igorpadykov,
Im not able to open above link. Its showing me unauthorized error. Could you please help me to get the permission to use that link ? Or can you please share it as a pdf ?
Hi igorpadykov,
Thanks for your reply!
I had do as this PDF file,but it can not to use too!
I think my dts file is not correct!
So i got 2090000.can supply xceiver not found, using dummy regulator
Could you help me?
Thank you very much!
you can ignore this message
~igor
Hi,
I guess it's IO register value wrong.
fsl,pins = <
MX6QDL_PAD_GPIO_7__FLEXCAN1_TX 0x80000000
MX6QDL_PAD_GPIO_8__FLEXCAN1_RX 0x80000000
>;
I tried to use 0x1f0b0 and 0x1b0b1,result not change.
Hi Zhen,
could you solve this issue ?
I am also facing the same issue here.
Thank you for your reply.
It's noting on my TX pin,I don't know what is wrong with my configuration.
Everything looks OK,but nothing happend after command "cansend 001#11223344"