Dear List,
I have a MCP2515 interfaced to a Gumstix Overo COM module.
The MCP2515 seems to be probed OK at statup and the sysfs gets populated
with all the CAN stuff.
However when I try to bring up the interface I get the following:

r...@ctm100:~# echo 125000000 > /sys/class/net/can0/can_bittiming/bitrate
r...@ctm100:~# ifconfig can0 up
CTM100, CAN Transiever Enable
mcp251x spi1.1: bitrate error 2.7%
r...@ctm100:~# NOHZ: local_softirq_pending 08

On trying to send a message I get:

r...@ctm100:~# cansend can0 1F334455#1122334455667788
r...@ctm100:~# ------------[ cut here ]------------
WARNING: at net/sched/sch_generic.c:226 dev_watchdog+0x138/0x218()
NETDEV WATCHDOG: can0 (mcp251x): transmit timed out
Modules linked in: ppp_generic slhc ipv6 ftdi_sio mcp251x usbserial can_dev
[<c00f3608>] (unwind_backtrace+0x0/0xdc) from [<c010eb04>]
(warn_slowpath_common+0x4c/0x80)
[<c010eb04>] (warn_slowpath_common+0x4c/0x80) from [<c010eb74>]
(warn_slowpath_fmt+0x28/0x38)
[<c010eb74>] (warn_slowpath_fmt+0x28/0x38) from [<c039df88>]
(dev_watchdog+0x138/0x218)
[<c039df88>] (dev_watchdog+0x138/0x218) from [<c01171b4>]
(run_timer_softirq+0x180/0x1fc)
[<c01171b4>] (run_timer_softirq+0x180/0x1fc) from [<c0113550>]
(__do_softirq+0x9c/0x170)
[<c0113550>] (__do_softirq+0x9c/0x170) from [<c0113664>]
(irq_exit+0x40/0x90)
[<c0113664>] (irq_exit+0x40/0x90) from [<c00ee058>] (_text+0x58/0x70)
[<c00ee058>] (_text+0x58/0x70) from [<c00ee9f0>] (__irq_svc+0x30/0x80)
Exception stack(0xc057df70 to 0xc057dfb8)
df60:                                     00000000 60000013 03145d45
00000000
df80: c00efd3c c057c000 c057ff8c c00efd3c c05b8be8 411fc082 0000001f
00000000
dfa0: c0581220 c057dfbc c00efd74 c00efd7c 60000013 ffffffff
[<c00ee9f0>] (__irq_svc+0x30/0x80) from [<c00efd74>]
(default_idle+0x38/0x48)
[<c00efd74>] (default_idle+0x38/0x48) from [<c05f29ac>] (0xc05f29ac)
---[ end trace 7f42958e9cf97483 ]---
mcp251x spi1.1: timeout in txing a packet, restarting

This is my first time trying to use socket-can (thanks for the good work by
the way) with a real interface. I suspect that I may have a problem with the
interrupt somewhere but thought you may have seen something similar and be
able to suggest some tests or solutions.

Many thanks.




_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to