From: Wolfgang Grandegger <wg@domain.hid>
To: Rodolfo Oliveira <rodolforomao@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Bug - Can 2 devices.
Date: Thu, 29 Jul 2010 08:39:54 +0200 [thread overview]
Message-ID: <4C51223A.2070700@domain.hid> (raw)
In-Reply-To: <AANLkTinvhF72tWwCEy85jT3Kk2cQZwRyCtBZNcSZk-yA@mail.gmail.com>
Hello,
On 07/28/2010 08:15 PM, Rodolfo Oliveira wrote:
> Hello friends,
>
> I am developing a project and I'm using two CAN. The Can one is working, but
> the CAN 2 is not, i 'm recompile the kernel enabled the can 2, but I can not
> make it work.
> Scenario:
> - I can print the frames in CAN 2, I get in the kernel log (dmesg) and the
> frames are correct.
> - CAN 2 works normally if I disable the CAN 1 and recompile the kernel.
>
> Problem:
> In the "rtcan_raw.c" in function "void rtcan_rcv (struct rtcan_device * dev,
> struct rtcan_skb * skb)" there is a verification "while (recv_listener! =
> NULL) " and the problem is that the variable "recv_listener" is equal to
> NULL . This variable comes from the function "static int
> rtcan_mscan_interrupt (rtdm_irq_t irq_handle *)" (which is on file
> rtcan_mscan.c) this function passes a struct as a parameter "dev = (struct
> rtcan_device *) rtdm_irq_get_arg (irq_handle, void)" to "rtcan_rcv" and it
> contains the recv_listener = dev-> recv_list.
>
> Soon the CAN2 is working but there are some configuration issues in this
> code.
>
> Can anyone help me with this problem?
Are you speaking about the MSCAN driver for the MPC5200? The routing of
the second CAN port is configurable. Maybe it's not using the right I/O
pins. What CPU and Linux version are you using?
Wolfgang.
next prev parent reply other threads:[~2010-07-29 6:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTikTyH5R8oMS-f-1jcJqryAwT-DKfzxNf1YROALK@mail.gmail.com>
2010-07-28 18:15 ` [Xenomai-core] Bug - Can 2 devices Rodolfo Oliveira
2010-07-29 6:39 ` Wolfgang Grandegger [this message]
[not found] ` <AANLkTikib3KYn-m7owo83LKUUMdfPP3=p_g7BPqgb-Gh@domain.hid>
[not found] ` <4C517FF1.1040902@domain.hid>
[not found] ` <AANLkTim4HheofHzPvJkMaCtYp49egWmJAzWLM2o3AXJo@domain.hid>
2010-07-29 15:05 ` Wolfgang Grandegger
[not found] ` <AANLkTi=s+24Sravpy=r91M9bRoNdKzafopTcngV7rLLv@domain.hid>
[not found] ` <4C51D317.9020103@domain.hid>
2010-07-29 20:24 ` Wolfgang Grandegger
[not found] ` <AANLkTikNB7c3E58Q1kxg99TPUVo3E_deojtzgDvW5asL@mail.gmail.com>
2010-07-29 21:10 ` Wolfgang Grandegger
[not found] ` <AANLkTiktuJ1G6-ELngAsd7kNAR+WtMC7XWcP=-0USZS1@domain.hid>
[not found] ` <4C61A995.3030906@domain.hid>
[not found] ` <AANLkTi=Xbz4jQp4hWz38f1rwA=LKJyqcaK=oqBhsYAMY@mail.gmail.com>
[not found] ` <4C698A2E.7060300@domain.hid>
[not found] ` <AANLkTimUrZpJMzbMWN=T3rEr=FmxbiVbHYfzviXy08CF@mail.gmail.com>
2010-09-02 11:29 ` Rodolfo Oliveira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C51223A.2070700@domain.hid \
--to=wg@domain.hid \
--cc=rodolforomao@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.