* FlexCAN in imx6q-sabresdb
@ 2015-05-13 10:38 Keskinarkaus, Teemu
2015-05-13 11:28 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Keskinarkaus, Teemu @ 2015-05-13 10:38 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1810 bytes --]
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";
};
----
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.
[-- Attachment #2: Type: text/html, Size: 6297 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: FlexCAN in imx6q-sabresdb
2015-05-13 10:38 FlexCAN in imx6q-sabresdb Keskinarkaus, Teemu
@ 2015-05-13 11:28 ` Gary Thomas
2015-05-19 6:57 ` Keskinarkaus, Teemu
0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2015-05-13 11:28 UTC (permalink / raw)
To: meta-freescale
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
------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: FlexCAN in imx6q-sabresdb
2015-05-13 11:28 ` Gary Thomas
@ 2015-05-19 6:57 ` Keskinarkaus, Teemu
0 siblings, 0 replies; 4+ messages in thread
From: Keskinarkaus, Teemu @ 2015-05-19 6:57 UTC (permalink / raw)
To: meta-freescale@yoctoproject.org
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: meta-freescale-bounces@yoctoproject.org [mailto:meta-freescale-
> bounces@yoctoproject.org] On Behalf Of Gary Thomas
> Sent: 13. toukokuuta 2015 14:28
> To: meta-freescale@yoctoproject.org
> 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
> meta-freescale@yoctoproject.org
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.3337.1431513505.2787.meta-freescale@yoctoproject.org>]
end of thread, other threads:[~2015-05-19 7:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13 10:38 FlexCAN in imx6q-sabresdb Keskinarkaus, Teemu
2015-05-13 11:28 ` Gary Thomas
2015-05-19 6:57 ` Keskinarkaus, Teemu
[not found] <mailman.3337.1431513505.2787.meta-freescale@yoctoproject.org>
2015-05-13 11:47 ` marko.kenttala
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.