TOP
SSV Software Systems Register  Register
Log in to check your private messages  Log in to check your private messages
Startseite FAQ Search Mitglieder Profile  Log in 
SSV Support-Forum
CAN RX FIFO overrun

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/5282
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
dberenguer



Joined: 10 Aug 2007
Posts: 5

PostPosted: 17.08.2007, 10:04    Post subject: CAN RX FIFO overrun Reply with quote

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
View user's profile Send private message
dberenguer



Joined: 10 Aug 2007
Posts: 5

PostPosted: 20.08.2007, 10:55    Post subject: Reply with quote

Nobody else had this problem?

Which version of can4linux are you running?

Thanks,

Daniel.
Back to top
View user's profile Send private message
jne



Joined: 05 May 2006
Posts: 31
Location: Hannover

PostPosted: 20.08.2007, 14:16    Post subject: AW: CAN RX FIFO overrun Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
dberenguer



Joined: 10 Aug 2007
Posts: 5

PostPosted: 20.08.2007, 15:02    Post subject: Reply with quote

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
View user's profile Send private message
dberenguer



Joined: 10 Aug 2007
Posts: 5

PostPosted: 21.08.2007, 11:22    Post subject: Reply with quote

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
View user's profile Send private message
dberenguer



Joined: 10 Aug 2007
Posts: 5

PostPosted: 21.08.2007, 15:03    Post subject: Reply with quote

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 Smile

Any idea out there?

Thanks in advance,

Daniel.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/5282 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV Software Systems GmbH

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2023 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015