<?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 LPC4357  CAN problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CAN-problem/m-p/554997#M14869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a driver for LPC4357 CAN. CAN bus was not working when CPU clock is set at 204MHz. Whenever a message is sent, bit 0 error occurred and CAN entered in bus off state.&lt;/P&gt;&lt;P&gt;Then I checked with different CPU clock frequencies.&lt;/P&gt;&lt;P&gt;I could go upto 200MHz when other CAN node is LPC1768.&lt;/P&gt;&lt;P&gt;But when other CAN node is LPC4357, I could go upto 120MHz only.&lt;/P&gt;&lt;P&gt;Is there anything wrong with my CAN driver or there is something to be handled with CPU clock?&lt;/P&gt;&lt;P&gt;As per data sheet, CAN peripheral clock should be less than 50MHz. I have taken care of it by using CAN CLKDIV and IDIVD clock source.&lt;/P&gt;&lt;P&gt;Also I am not using any peripheral on APB3 (I2C, ADC, DAC) as per mentioned in errata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jun 2016 12:54:34 GMT</pubDate>
    <dc:creator>swapnilkulkarni</dc:creator>
    <dc:date>2016-06-21T12:54:34Z</dc:date>
    <item>
      <title>LPC4357  CAN problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CAN-problem/m-p/554997#M14869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written a driver for LPC4357 CAN. CAN bus was not working when CPU clock is set at 204MHz. Whenever a message is sent, bit 0 error occurred and CAN entered in bus off state.&lt;/P&gt;&lt;P&gt;Then I checked with different CPU clock frequencies.&lt;/P&gt;&lt;P&gt;I could go upto 200MHz when other CAN node is LPC1768.&lt;/P&gt;&lt;P&gt;But when other CAN node is LPC4357, I could go upto 120MHz only.&lt;/P&gt;&lt;P&gt;Is there anything wrong with my CAN driver or there is something to be handled with CPU clock?&lt;/P&gt;&lt;P&gt;As per data sheet, CAN peripheral clock should be less than 50MHz. I have taken care of it by using CAN CLKDIV and IDIVD clock source.&lt;/P&gt;&lt;P&gt;Also I am not using any peripheral on APB3 (I2C, ADC, DAC) as per mentioned in errata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 12:54:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CAN-problem/m-p/554997#M14869</guid>
      <dc:creator>swapnilkulkarni</dc:creator>
      <dc:date>2016-06-21T12:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357  CAN problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CAN-problem/m-p/554998#M14870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapnil,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You said:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;I could go upto 200MHz when other CAN node is LPC1768.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;But when other CAN node is LPC4357, I could go upto 120MHz only.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;It seems, still relate to your other CAN node, did you try to use the CAN Tool as the CAN node and try again?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp; Besides, when you used difference other CAN node, choose different base clock, eg, 204MHZ, 120Mhz, lower than 100Mhz, try to configure as the same CAN baud, then test the CAN_TX pin, check the wave, any difference on your side?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&amp;nbsp; Another way for your reference, you also can test our lpcopen CAN driver, when you choose higher base clock for CAN module, whether it will meet the same question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;The lpcopen CAN driver can be downloaded from this link:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;A href="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc-cortex-m3/lpc1800-cortex-m3/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX?uc=true&amp;amp;lang_cd=en" title="http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/lpc-cortex-m-mcus/lpc-cortex-m3/lpc1800-cortex-m3/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX?uc=true&amp;amp;lang_cd=en"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Folder path: lpcopen_2_12_keil_iar_keil_mcb_4357\applications\lpc18xx_43xx\iar_ewarm_projects\keil_mcb_4357\periph\periph_ccan&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please test it again, if still not OK, please give me your test wave in the CAN_TX pin with different base clock and the same CAN baudrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 07:26:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-CAN-problem/m-p/554998#M14870</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-07-28T07:26:10Z</dc:date>
    </item>
  </channel>
</rss>

