Hi,

After setting up the pinctrl I was able to get the can-interface appear and 
also Flexcan module prints when I load it and when bring up the can - interface.

After turning the CAN transceiver on (standby-mode off) I measured the 
TX/RX-lines. I had other machine sending CAN-messages (two nodes so one would 
ack the others msgs) and in RX-line I could see the frames just fine. Flexcan 
driver did not receive any of the frames though.  When trying to send I got out 
one frame (measured from TX-line) and it didn't look like CAN-frame at all. 
Bittimining seemed to be kind a okay, but the bits themselves were coming out 
way too slow and it was just one frame that came out. If I wanted to send other 
frame I had to bring the can - interface down and back up.

Is there some clock source I need to configure for the Flexcan or what might be 
the problem?

Previously I've been working only with 2.6-series kernel so this whole 3.x - 
series kernel hw config thing is strange to me and I'm still learning it.

Teemu Keskinarkaus
Software system engineer

maximatecc
making machines smart, safe and productive

> -----Original Message-----
> From: [email protected] [mailto:meta-freescale-
> [email protected]] On Behalf Of Gary Thomas
> Sent: 13. toukokuuta 2015 14:28
> To: [email protected]
> Subject: Re: [meta-freescale] FlexCAN in imx6q-sabresdb
>
> On 2015-05-13 04:38, Keskinarkaus, Teemu wrote:
> > Hi,
> >
> > I'm trying to get FlexCAN driver to work in imx6q-sabre-sdb - develboard
> without any success.
> >
> > I have added FlexCAN driver as a module in kernel config as well as the 
> > other
> CAN-devices/drivers needed (can,can-dev, can-raw).
> >
> > Also I added to arch/arm/boot/dts/imx6q-sabresd.dts following lines:
> >
> > ----
> >
> > &flexcan1{
> >
> >                  status = "okay";
> >
> > };
> >
> > ----
>
> Check the pin mux for the device.  You'll probably need something like this 
> to get
> it to work:
>
> &flexcan1 {
>       pinctrl-names = "default";
>       pinctrl-0 = <&pinctrl_flexcan1_1>;
>       status = "okay";
> };
>
> >
> > After recompiling kernel and programming it to device, when I modprobe
> > flexcan - module nothing happens. It doesn't print that flexcan is
> > found and when I add the other CAN-modules and try to access CAN0(or CAN1)
> they claim that there is no such device. I've worked with FlexCAN in imx537 so
> I'm somewhat familiar how to access it, but problem is that it does not show 
> up
> at all.
> >
> > Is there something else needed to do to get FlexCAN working with imx6q? I 
> > did
> search the internet, but didn't find anything else what should be done.
> >
> > Yocto version is 1.7.1 and kernel version is  linux-imx-rt-3.10.17.
> >
> > *Teemu Keskinarkaus
> > *Software system engineer*
> > *Cell: +358 400 330047*
> > *Fax: +358 207 669199*
> > *www.maximatecc.com <http://www.maximatecc.com/>*
> >
> > ***
> >
> > *maximatecc*
> >
> > making machines smart, safe and productive
> >
> >
> > ----------------------------------------------------------------------
> > ----------------------------------------------------------------------
> > ----------------------------------------
> >
> > Actuant Corporation Email Notice
> >
> > This message is intended only for the use of the Addressee and may contain
> information that is PRIVILEGED and/or CONFIDENTIAL.
> > This email is intended only for the personal and confidential use of
> > the recipient(s) named above. If the reader of this email is not an intended
> recipient, you have received this email in error and any review, 
> dissemination,
> distribution or copying is strictly prohibited.
> > If you have received this email in error, please notify the sender 
> > immediately by
> return mail and permanently delete the copy you received.
> >
> > Thank you.
> >
> >
>
> --
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> --
> _______________________________________________
> meta-freescale mailing list
> [email protected]
> https://lists.yoctoproject.org/listinfo/meta-freescale

________________________________

Actuant Corporation Email Notice

This message is intended only for the use of the Addressee and may contain 
information that is PRIVILEGED and/or CONFIDENTIAL.
This email is intended only for the personal and confidential use of the 
recipient(s) named above. If the reader of this email is not an intended 
recipient, you have received this email in error and any review, dissemination, 
distribution or copying is strictly prohibited.
If you have received this email in error, please notify the sender immediately 
by return mail and permanently delete the copy you received.

Thank you.
-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to