hi,
i am interfacing CANFD to SPI driver in imx6ull processor
while sending data from CANFD board i m getting this error
~# ip link set can0 up type can bitrate 500000
[ 31.265249] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
~ # ifconfig
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:22
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
~ # cansend can0 123#aabbccdd
[ 938.791952] flexcan 2094000.flexcan can0: bus-off
and i m not receiving data,how resolve this one
Hi Pooja
one can look at examples of porting other spi driven peripheral drivers, like
How to use SPI slave within U-Boot?
Porting small OLED display to i.MX6ULL 14x14 Evk
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------