<<< Previous topic - Next topic >>> |
|
Author |
Message |
dberenguer
Joined: 10 Aug 2007 Posts: 5
|
Posted: 17.08.2007, 10:04 Post subject: CAN RX FIFO overrun |
|
|
Hi all.
I'm having serious problems with the can4linux (3.0) driver running on my DNP5282 board. Bus loads over 4% always cause CAN RX buffer overruns.
Does anyone have the same problem?
Should I try with a newer driver?
Has this to do only with the can4linux port for MCF5282? Other MCF5282 users talk about a bunch of bugs on can4linux for this platform.
Thanks in advance,
Daniel. |
|
Back to top |
|
|
dberenguer
Joined: 10 Aug 2007 Posts: 5
|
Posted: 20.08.2007, 10:55 Post subject: |
|
|
Nobody else had this problem?
Which version of can4linux are you running?
Thanks,
Daniel. |
|
Back to top |
|
|
jne
Joined: 05 May 2006 Posts: 31 Location: Hannover
|
Posted: 20.08.2007, 14:16 Post subject: AW: CAN RX FIFO overrun |
|
|
Hi Daniel,
with which bit rate do you work and what is the expected bus load?
Did you check that the debug option is out?
Regards,
Jörg |
|
Back to top |
|
|
dberenguer
Joined: 10 Aug 2007 Posts: 5
|
Posted: 20.08.2007, 15:02 Post subject: |
|
|
Hi Jörg,
The bit rate is 250 kbps. The debug option is OFF. The bus load oscillates between 0.5% and 9%.
Correction: the version of can4linux was 3.4 not 3.0.
Besides, /sys/class/Can/Overrun always show 0 even if I know that some incomming messages are lost.
Thank you very much for your help,
Daniel. |
|
Back to top |
|
|
dberenguer
Joined: 10 Aug 2007 Posts: 5
|
Posted: 21.08.2007, 11:22 Post subject: |
|
|
Hi again,
I'm currently looking into my kernel config and I have for CAN:
CONFIG_CAN4LINUX=m
# CONFIG_CAN_ATCANMINI is not set
# CONFIG_CAN_CCPC104 is not set
# CONFIG_CAN_MCF5282 is not set
# CONFIG_CAN_CPC_PCI is not set
# CONFIG_CAN_IME_SLIMLINE is not set
Shouldn't CONFIG_CAN_MCF5282 be enabled (Coldfire FlexCan I guess)? I mean:
CONFIG_CAN4LINUX=y
CONFIG_CAN_MCF5282=y
I've heritated this config file from another project that was supposed to have CAN and I don't find a good reference in the net about how to configure the kernel for the MCF5282.
On the other hand, my DNP5282 module is configured in the kernel as
# Processor
CONFIG_M5280=y
# CONFIG_M5282 is not set
CONFIG_COLDFIRE=y
...
# Platform
CONFIG_DNP5280=y
CONFIG_SSV=y
...
Again, I'm a little confused here.
Thanks again for your help,
Daniel. |
|
Back to top |
|
|
dberenguer
Joined: 10 Aug 2007 Posts: 5
|
Posted: 21.08.2007, 15:03 Post subject: |
|
|
With these settings:
CONFIG_CAN4LINUX=y
CONFIG_CAN_MCF5282=y
and making the uClinux image + can4linux 3.4.6 I get a lot of
"undefined reference to `__this_module'" errors on drivers/char/can4linux
I guess this post
http://www.ssv-comm.de/forum/viewtopic.php?t=461&highlight=thismodule
talks about a possible solution but my german is not good
Any idea out there?
Thanks in advance,
Daniel. |
|
Back to top |
|
|
|