<?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>LPC Microcontrollers中的主题 CAN Errata on LPC4337</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567266#M17489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by otscherw on Wed Aug 06 08:33:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a board with an LPC4337FET256 / ESD13450- and have currently some difficulties on getting the CAN1 interface running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I understand the Errata Sheet for Revision '-', CAN0 and CAN1 should work reliably, as long as you don't access the conflicting peripherals as DAC, ADC0, ADC1 etc. Is this correct? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I don't use any of those peripherals so I should be safe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a test firmware using LPCopen v2.09&amp;nbsp; that can send and receive on CAN0, but when I'm trying to switch the same code from CAN0 to CAN1 I still can send messages, but don't receive anything. A receive interrupt is triggered, RXOK bit 4 in status reg is set, but the expected bit in the interrupt register is not set, although message object 2 was set up for receiving (and this works on CAN0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I suspect some issue with message filtering. Could of course be some bug in my FW, but before I continue debugging I just wanted to clarify that what I'm trying to do actually works. Or is there some kind of other errata that can explain this behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;SPAN&gt;: my code is running from DRAM, if this should be relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And finally, what are NXP's plan for fixing this errata, i.e. when do you ship a new silicon revision?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oliver&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:52:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:52:48Z</dc:date>
    <item>
      <title>CAN Errata on LPC4337</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567266#M17489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by otscherw on Wed Aug 06 08:33:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a board with an LPC4337FET256 / ESD13450- and have currently some difficulties on getting the CAN1 interface running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As I understand the Errata Sheet for Revision '-', CAN0 and CAN1 should work reliably, as long as you don't access the conflicting peripherals as DAC, ADC0, ADC1 etc. Is this correct? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I don't use any of those peripherals so I should be safe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a test firmware using LPCopen v2.09&amp;nbsp; that can send and receive on CAN0, but when I'm trying to switch the same code from CAN0 to CAN1 I still can send messages, but don't receive anything. A receive interrupt is triggered, RXOK bit 4 in status reg is set, but the expected bit in the interrupt register is not set, although message object 2 was set up for receiving (and this works on CAN0).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I suspect some issue with message filtering. Could of course be some bug in my FW, but before I continue debugging I just wanted to clarify that what I'm trying to do actually works. Or is there some kind of other errata that can explain this behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT&lt;/STRONG&gt;&lt;SPAN&gt;: my code is running from DRAM, if this should be relevant.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And finally, what are NXP's plan for fixing this errata, i.e. when do you ship a new silicon revision?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oliver&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567266#M17489</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Errata on LPC4337</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567267#M17490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by otscherw on Thu Aug 07 04:10:20 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;OK, I made some more tests and think that something regarding the message filtering on CAN1 interface is broken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is to set up one receive object to receive all standard IDs. For that I hacked the Chip_CCAN_SetMsgObject() function to include a "mask" parameter so that I can specify mask as 0 instead of the default CCAN_MSG_ID_STD_MASK (0x7FF) to receive all IDs. Additionally I set MXTD bit to only receive standard and no extended messages (with this bit cleared also extended messages are received).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
pCCAN-&amp;gt;IF[IFSel].MSK2 = CCAN_IF_MASK2_MXTD | CCAN_IF_MASK2_MDIR(dir) | (rxmask &amp;lt;&amp;lt; 2);
pCCAN-&amp;gt;IF[IFSel].MSK1 = 0x0000;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This all works on CAN0 as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When switching to CAN1 strange things happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I set one message object with ID = 0 and mask = 0, I receive nothing. When I set two identical message objects, it works, I don't care which message object received the message. OK, good, at least a workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to set multiple msg objects for specific IDs (with mask 0x7FF) some do receive messages, some don't. I haven't found a pattern though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567267#M17490</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Errata on LPC4337</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567268#M17491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Thu Aug 07 05:39:51 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you are overclocking the CAN unit, as that could cause this kind of problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CLKDIV should be set so that CAN_CLK is 50MHz or less (see the latest UM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jürgen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567268#M17491</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Errata on LPC4337</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567269#M17492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by otscherw on Thu Aug 07 07:41:41 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Jürgen!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That was the problem. I didn't realize that there is an new UM.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So just to go sure, a BASE_APB1_CLK of 102 MHz is safe, as long as divided by CLKDIV results in &amp;lt;= 50 MHz?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: The sentence "Remark: Use of C_CAN controller excludes operation of all other peripherals connected to the same bus bridge. See the LPC43xx errata." doesn't sound as NXP is going to fix this errata.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Oliver&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567269#M17492</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Errata on LPC4337</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567270#M17493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Thu Aug 07 08:26:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: otscherw&lt;/STRONG&gt;&lt;BR /&gt;So just to go sure, a BASE_APB1_CLK of 102 MHz is safe, as long as divided by CLKDIV results in &amp;lt;= 50 MHz?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think so, since that is what is written in the user manual.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it now works reliably with our 200 MHz base clock.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We had some trouble when we didn't divide it down:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fproblems-ccan-bt-configuration%23comment-1023290" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/problems-ccan-bt-configuration#comment-1023290&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jürgen&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:52:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Errata-on-LPC4337/m-p/567270#M17493</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:52:52Z</dc:date>
    </item>
  </channel>
</rss>

