<?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: CAN Bus Frame reception? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699884#M28186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos, I actually eventually got bypass mode working. A bit of fiddling&lt;/P&gt;&lt;P&gt;with code and I got that sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one problem which remains, and is the more serious issue, is that&lt;/P&gt;&lt;P&gt;frames are not acknowledged on initial transmission and have to be&lt;/P&gt;&lt;P&gt;retransmitted. That means that if another node on the bus acknowledges a&lt;/P&gt;&lt;P&gt;frame it won't be retransmitted and the LPC will never receive that frame!&lt;/P&gt;&lt;P&gt;Only one of the channels is doing that but as it stands it is not a usable&lt;/P&gt;&lt;P&gt;CAN Bus channel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 23:02:28 GMT</pubDate>
    <dc:creator>johnwhitmore</dc:creator>
    <dc:date>2017-10-19T23:02:28Z</dc:date>
    <item>
      <title>CAN Bus Frame reception?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699882#M28184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[ LPC1788 uC developing with MCUXpresso and Segger J-Link ]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on the CAN Bus of the LPC1788 and it's not playing nice in terms of reception of Frames. I did a quick self test mode transmission test and that was fine so then I connected the two LPC1788 CAN Bus channels together. So both channels are on the same bus. So now I transmit a single standard frame on Channel 1, for reception on Channel 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first problem is that the frame is NOT ack'd by Channel 2 of the 1788 so Channel 1 re-transmits the frame a second time. On the second transmission Channel 2 now acknowledges the frame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Second, and more worrying, problem is that Channel 2 never receives any frame. I'm turning on an LED when Channel 2 is receiving a frame so I can see a visual indication that Channel 2 was receiving a frame. So you'd immediately jump to the conclusion that I've not set up the suitable Acceptance Filters, for reception of the frame, but I'm in BYPASS mode so ALL frames should be received from the Bus?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm obviously missing something in the User Manual but my understanding is that there is only one Acceptance filter engine which is shared by the two channels. And setting it into bypass mode should be good for both channels, the code is a single line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_CAN_SetAFMode(LPC_CANAF, CAN_AF_BYBASS_MODE);&amp;nbsp; // Bypass acceptance filters, accept all Frames&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why is no interrupt being raised for a received frame? I am getting an interrupt for the successful transmission from Channel 1, which I clear, but no interrupt is raised for any received frame. Like I say you jump to Acceptance Filters but they are bypassed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody got any ideas I'd be very grateful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:30:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699882#M28184</guid>
      <dc:creator>johnwhitmore</dc:creator>
      <dc:date>2017-10-05T21:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Bus Frame reception?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699883#M28185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you to take a look to the CAN_Bypass demo in the attached library for more details on how to configure the bypass mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 21:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699883#M28185</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-10-19T21:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: CAN Bus Frame reception?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699884#M28186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos, I actually eventually got bypass mode working. A bit of fiddling&lt;/P&gt;&lt;P&gt;with code and I got that sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The one problem which remains, and is the more serious issue, is that&lt;/P&gt;&lt;P&gt;frames are not acknowledged on initial transmission and have to be&lt;/P&gt;&lt;P&gt;retransmitted. That means that if another node on the bus acknowledges a&lt;/P&gt;&lt;P&gt;frame it won't be retransmitted and the LPC will never receive that frame!&lt;/P&gt;&lt;P&gt;Only one of the channels is doing that but as it stands it is not a usable&lt;/P&gt;&lt;P&gt;CAN Bus channel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 23:02:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/CAN-Bus-Frame-reception/m-p/699884#M28186</guid>
      <dc:creator>johnwhitmore</dc:creator>
      <dc:date>2017-10-19T23:02:28Z</dc:date>
    </item>
  </channel>
</rss>

