<?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: LPC open CAN driver - generic CAN issue in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575487#M19255</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Wed Sep 17 01:22:57 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Swapped the baseboard, seems to behaving well!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:17:16 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:17:16Z</dc:date>
    <item>
      <title>LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575480#M19248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Tue Sep 16 08:08:58 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Environment -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1769, Keil uV4, lpc open 2.10, lpc xpresso 1769 board on a custom baseboard&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to get CAN (at 500kbps) work reliably with the above setup. I am able to send and receive data. I have CANusb analyser attached to the network to monitor CAN data sent from board and in the debugger I can see CAN data received by lpc1769(received data is correct). The issue is I see lot of ERR frames. The setup runs for quite a while and then goes bus off and doesn't recover. It goes bus off quicker if it is also transmitting CAN frames. Now if I am only receiving frames and I add CANusb analyser in active mode(ACK&amp;nbsp; done) and/or a different CAN device I don't see any ERR frames(so the other devices ACK correctly).&amp;nbsp; So it is easy to conclude the ERR is on lpc1769 side. I understand all this points to a bus HW err, but I have checked soldering joints, termination resistors etc.&amp;nbsp; Next thing I would be trying is try catch CAN behaviour on scope just before err frame. I wanted to ask here if there are any gotchas I might have missed using the lpc open CAN driver. I have verified the bitrate setup which is correct. lpc1769 running at 96Mhz, CAN pclk at 24 Mhz (so BRP -1 TSEG-15 TSEG2-6&amp;nbsp; giving me 500kbps)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions welcome.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575480#M19248</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575481#M19249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 16 08:37:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: gnxp&lt;/STRONG&gt;&lt;BR /&gt;Any suggestions welcome.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Later sample point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575481#M19249</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575482#M19250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Tue Sep 16 09:15:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok I tried changing sampling point to 75%. I changed CAN PCLK to 16MHz and (BRP=1 TSEG1=11 TSEG2 = 2). So that should give me &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(11+1)/(11+2+3) = 75% at 500Kbps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see a weird thing in debugging view registers in KEIL. Please see attached png. PClk_CAN2- correct at 16Mhz, BRP, TSEG1 and TSEG2 are shown correct , but debugger seems to calculate bitrate at 2Mhz(Bus timing section). I know that is not correct as I am receiving data and sending data to analyser and all are working at 500Kbps.&amp;nbsp; I still see the same err frames and as usual data as well. Do you see anything wrong with my calculation?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575482#M19250</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575483#M19251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 16 09:42:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not familiar with Keil, but your calculation doesn't look wrong, especially if 500kbps are transmitted&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also try to use your original setup and change it to TSEG1:16 TSEG2:5...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If changing sample point &amp;lt;70% and &amp;gt;80% doesn't show any success,that's not your problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all it's useful to check hardware (again).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is your BUS (split-) terminated?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which transceiver are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you scope TD and RD signals already?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575483#M19251</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575484#M19252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Tue Sep 16 09:55:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;TI's&amp;nbsp; 3.3V SN65HVD230D.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the bus is terminated on both sides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't really scoped TD and RD yet, was just trying to use CANH or CANL directly. Good suggestion, I will try it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any first's to look for you reckon?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575484#M19252</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575485#M19253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Tue Sep 16 10:18:59 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: gnxp&lt;/STRONG&gt;&lt;BR /&gt;TI's&amp;nbsp; 3.3V SN65HVD230D.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good choice, are you using its High speed mode?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575485#M19253</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575486#M19254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Wed Sep 17 00:56:24 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;RS pin is 10k ohms to ground, so no high speed but slope control.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575486#M19254</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: LPC open CAN driver - generic CAN issue</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575487#M19255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gnxp on Wed Sep 17 01:22:57 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Swapped the baseboard, seems to behaving well!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:17:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC-open-CAN-driver-generic-CAN-issue/m-p/575487#M19255</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:17:16Z</dc:date>
    </item>
  </channel>
</rss>

