From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from correo.horus.es (correo.horus.es [2.139.157.236]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1368EE016E4 for ; Fri, 18 Oct 2013 04:33:40 -0700 (PDT) Received: from [172.30.250.16] (172.30.250.254) by horus27 (Axigen) with (CAMELLIA256-SHA encrypted) ESMTPSA id 0A534E; Fri, 18 Oct 2013 13:33:36 +0200 Message-ID: <52611C90.4030108@horus.es> Date: Fri, 18 Oct 2013 13:33:36 +0200 From: diego User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org References: <5257E0EE.80802@horus.es> In-Reply-To: <5257E0EE.80802@horus.es> X-AxigenVirus-Level: 1 X-AxigenSpam-Level: 4 Subject: Re: FlexCAN not working X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 11:33:43 -0000 Content-Type: multipart/alternative; boundary="------------000604080303070506040309" --------------000604080303070506040309 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit El 11/10/2013 13:28, diego escribió: > Hello everybody, > > I'm trying to test FlexCAN on Sabrelite imx6 board without success. > Those are the steps followed : > > 1) Comprobed that linux-imx has CAN drivers enable > 2) Added on the image the packages:canutils,libsocketcan and iproute2 > 3) Tested the Flex can with canconfig and cantest. > > Everything seems ok, even I can see transmitted frames incremented. > However there's not singnal on the oscilloscope. > > I don't now why is not working. Any ideas or suggestions? > > Thank you! > > > Hello, we discovered why is not working. If you are using _*linux-imx*_ the problem is on board-mx6q_sabrelite.c. This file is not ready to work with TJA1040 transceiver. However, after reading the datasheet we found the solution . Change this line : https://github.com/imx6-dongle/linux-imx/blob/imx_3.0.35_1.1.0-hdmidongle/arch/arm/mach-mx6/board-mx6q_sabrelite.c?source=cc#L754 to if (!enable) bitbake and that's all. It's working now on my sabre lite with socketcan. Regards -- Diego González González Dpto. de Control Industrial HORUS HARDWARE S.A. Pol Ind Europolis C/Berna nº4 28232 Las Rozas de Madrid diego.gonzalez@horus.es --------------000604080303070506040309 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
El 11/10/2013 13:28, diego escribió:
Hello everybody,

I'm trying to test FlexCAN on Sabrelite imx6 board without success. Those are the steps followed :

1) Comprobed that linux-imx has CAN drivers enable
2) Added on the  image the packages:canutils,libsocketcan and iproute2
3) Tested the Flex can with  canconfig and cantest.

Everything seems  ok,  even I can see transmitted frames incremented. However there's not singnal on the oscilloscope.

I don't now why is not working. Any ideas or suggestions?

Thank you!




Hello,

we discovered why is not working. If you are using linux-imx the problem is on board-mx6q_sabrelite.c. This file is not ready to work with TJA1040 transceiver. However, after reading the datasheet we found  the solution . Change this line :

https://github.com/imx6-dongle/linux-imx/blob/imx_3.0.35_1.1.0-hdmidongle/arch/arm/mach-mx6/board-mx6q_sabrelite.c?source=cc#L754

to
if (!enable) 

bitbake and that's all. It's working now on my sabre lite with socketcan. 

Regards

-- 
Diego González González
Dpto. de Control Industrial
 
HORUS HARDWARE S.A.
Pol Ind Europolis C/Berna nº4
28232 Las Rozas de Madrid
diego.gonzalez@horus.es
--------------000604080303070506040309--