<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MX53 FlexCAN bitrate setting in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287712#M34220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just reporting back for completeness, in case anyone else runs into this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my code to use the LP_APM clock as the parent clock for the CAN modules, and I can now set the baud rate using the sysfs method. Looks like this is the default clock in the BSP, so using the IPG clock was a bad idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Shane.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2013 11:10:06 GMT</pubDate>
    <dc:creator>shanegrif</dc:creator>
    <dc:date>2013-12-09T11:10:06Z</dc:date>
    <item>
      <title>MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287705#M34213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I got a problem on MX53 CAN bitrate setting. It seems the bitrate can not be set. I tried "canconfig" but got following result:&lt;/P&gt;&lt;P&gt;# canconfig can0 bitrate 125000&lt;/P&gt;&lt;P&gt;RTNETLINK answers: Operation not supported&lt;/P&gt;&lt;P&gt;failed to set bitrate of can0 to 125000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I ran "cat /sys/devices/platform/FlexCAN.0/bitrate", it said the bitrate is 282240. But this number looks like not a "standard" number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I connect two MX53 boards and run candump on one of the board, run cansend on another board, the test succeeded. But this works only between two MX53 boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set bitrate by "echo 125000 &amp;gt; /sys/devices/platform/FlexCAN.0/bitrate". I watched the waveform by an oscilloscope and found the bitrate did not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way for changing the bitrate of MX53 CAN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BSP I used is MX53 Android R10.3. The board is custom board based on MX53-SMD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 11:05:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287705#M34213</guid>
      <dc:creator>frankchenmh</dc:creator>
      <dc:date>2013-10-18T11:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287706#M34214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't know much about Android, but under Linux changing the CAN bitrate requires the package iproute2. The necessary call is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st"&gt;ip link set can0 type can bitrate 125000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st"&gt;For Linux + CAN specific questions their is also a mailing list with an archive:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="st"&gt;&lt;A href="http://vger.kernel.org/vger-lists.html#linux-can"&gt;http://vger.kernel.org/vger-lists.html#linux-can&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Oct 2013 08:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287706#M34214</guid>
      <dc:creator>lategoodbye</dc:creator>
      <dc:date>2013-10-20T08:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287707#M34215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the "ip" command but got error messages:&lt;/P&gt;&lt;P&gt;root@freescale ~$ ip link set can0 type can bitrate 125000&lt;/P&gt;&lt;P&gt;ip: either "dev" is duplicate, or "type" is garbage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By Google it is because the "ip" command is an applet of busybox and it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I downloaded and cross-compiled the iproute2 package and got the following message:&lt;/P&gt;&lt;P&gt;root@freescale ~$ /ip link set can0 type can bitrate 125000&lt;/P&gt;&lt;P&gt;RTNETLINK answers: Operation not supported&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the error is similar to canconfig. I guess there may be something wrong in kernel/driver configuration.&lt;/P&gt;&lt;P&gt;Does FSL or FSL customer have successful experience in setting MX53 CAN bitrate?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above tests were performed on Linux.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 09:05:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287707#M34215</guid>
      <dc:creator>frankchenmh</dc:creator>
      <dc:date>2013-10-21T09:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287708#M34216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you manage to resolve this problem? I'm seeing something very similar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 15:55:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287708#M34216</guid>
      <dc:creator>shanegrif</dc:creator>
      <dc:date>2013-12-05T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287709#M34217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane,&lt;/P&gt;&lt;P&gt;Yes, I have resolved the problem. We can use the CAN sysfs attribute to change the bitrate, for example:&lt;/P&gt;&lt;P&gt;"echo 125000 &amp;gt; /sys/devices/platform/FlexCAN.0/bitrate"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the clock setting for MX53 CAN is incorrect in MX53 Android release R10.3. To fix this problem, please refer to the following link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-message-small" data-containerid="2004" data-containertype="14" data-objectid="358164" data-objecttype="2" href="https://community.freescale.com/message/358164#358164"&gt;https://community.freescale.com/message/358164#358164&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 14:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287709#M34217</guid>
      <dc:creator>frankchenmh</dc:creator>
      <dc:date>2013-12-06T14:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287710#M34218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. I think I'm seeing something different. I already made the changes to fix the parent clock issue, although in our case, we're using the IPG clock (running at 66MHz). When I made this change, the baud rate measured on the scope matched the current setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get an error msg when I use the sysfs method to set the baud rate:&lt;/P&gt;&lt;P&gt;The bitrate 125000 can't supported with clock rate of 66666666.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I tried canconfig, I got the same error msg that you originally saw. Did you ever get canconfig to work for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using Android R10.2 for iMX53 ARD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shane.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Dec 2013 16:32:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287710#M34218</guid>
      <dc:creator>shanegrif</dc:creator>
      <dc:date>2013-12-08T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287711#M34219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shane,&lt;/P&gt;&lt;P&gt;No, canconfig didn't work for me. I use sysfs method to changed the bitrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't see the error like what you got when use sysfs to changed the bitrate. Perhaps it is because the BSP versions we used are different. The BSP I worked on is MX53 SMD Android R10.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 06:25:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287711#M34219</guid>
      <dc:creator>frankchenmh</dc:creator>
      <dc:date>2013-12-09T06:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287712#M34220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just reporting back for completeness, in case anyone else runs into this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed my code to use the LP_APM clock as the parent clock for the CAN modules, and I can now set the baud rate using the sysfs method. Looks like this is the default clock in the BSP, so using the IPG clock was a bad idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Shane.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 11:10:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287712#M34220</guid>
      <dc:creator>shanegrif</dc:creator>
      <dc:date>2013-12-09T11:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: MX53 FlexCAN bitrate setting</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287713#M34221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Frank,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I have the same problem in setting bitrate in CAN using FlexCAN driver. &amp;nbsp;I did same thing as you said&lt;/P&gt;&lt;P&gt;root@mx28evk ~$ ip link set can0 type can bitrate 125000&lt;BR /&gt;RTNETLINK answers: Operation not supported&lt;BR /&gt;root@mx28evk ~$ ip link set can0 type can bitrate 125000&lt;BR /&gt;RTNETLINK answers: Operation not supported&lt;BR /&gt;root@mx28evk ~$ echo 125000 &amp;gt; /sys/devices/platform/FlexCAN.0/bitrate&lt;BR /&gt;root@mx28evk ~$ cat /sys/devices/platform/FlexCAN.0/bitrate&lt;BR /&gt;500000&lt;BR /&gt;root@mx28evk ~$&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;but bitrate is not getting changed even after writing into CAN sysfs attribute. Please help me to resolve this issue and let me know what are the things I have to change in kernel menuconfig.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Note : I am working on imx28 EVK board with Linux 2.6.35.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Aug 2017 11:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX53-FlexCAN-bitrate-setting/m-p/287713#M34221</guid>
      <dc:creator>santhoshkarthik</dc:creator>
      <dc:date>2017-08-26T11:18:15Z</dc:date>
    </item>
  </channel>
</rss>

