<?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: LPCXpresso 11C24 to RPi CAN communication in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897993#M36049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally got me a scope, the Pi-side is working correctly. I can decode the messages with the serial decoding function.&lt;/P&gt;&lt;P&gt;The LPC-side is where the problem is. Turns out I didn't really need the scope to prove this; adding a debug output to the CAN_error callback made it clear that there is a can bus error on sending the can 'TEST' message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just the demo program so I wonder what could be the problem..&lt;/P&gt;&lt;P&gt;I applied +5V, GND on JP4 and made a connection from STBY to GND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I be looking next?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jun 2019 12:24:14 GMT</pubDate>
    <dc:creator>brijsthomas</dc:creator>
    <dc:date>2019-06-27T12:24:14Z</dc:date>
    <item>
      <title>LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897989#M36045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am trying to setup 2-way communication between an LPCXpresso 11C24 and a raspberry pi with PiCAN2 HAT.&lt;/P&gt;&lt;P&gt;When i run the cansniffer on the Pi and run the&amp;nbsp;nxp_lpcxpresso_11c24_periph_ccan_rom example program I don't see any traffic so i'm checking to see where it might've gone wrong. I run the axf binary with 'Debug As' - 'MCUXpresso IDE Linkserver (incl. CMSIS-DAP) probes'.&lt;/P&gt;&lt;P&gt;I can use&amp;nbsp; external 12V bus supply on the Pi but that doesn't change anything.&lt;/P&gt;&lt;P&gt;I'm using an external 5V supply (from the Pi which can pull 1A) on the can interface of the LPCXpresso (JP4 header).&lt;/P&gt;&lt;P&gt;The Pi has an on-board termination resistor which i have connected.&lt;/P&gt;&lt;P&gt;I see there is 60Ohms + 60Ohms between CAN_H and CAN_L on the LPCXpresso board with a 1nF to filter HF, does this count as a 120Ohms termination resistor or do I need to add one externally (i think not)?&lt;/P&gt;&lt;P&gt;I also tried it with&amp;nbsp; an extra 120Ohms resitor on the LPC side but it didn't change anything.&lt;/P&gt;&lt;P&gt;I use a Cat5 twisted pair cable.&lt;/P&gt;&lt;P&gt;LPC sides use 500000bytes/s baudrate and RPi side 500000 BITrate&lt;/P&gt;&lt;P&gt;I suspect 1 baud equals 1 bit in this case (i know the differrence between baud and bit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything else I need to check before I can read the TEST message that is sent from the LPC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached a picture of my setup, the breadboard is only there for the 5V from Pi -&amp;gt;&amp;nbsp; LPC (the led without resistor :smileysilly:&amp;nbsp;just shows theres +5V)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also bear in mind I don't have a scope or logic analyzer here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2019 23:04:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897989#M36045</guid>
      <dc:creator>brijsthomas</dc:creator>
      <dc:date>2019-05-16T23:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897990#M36046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="341537" data-username="brijsthomas@gmail.com" href="https://community.nxp.com/people/brijsthomas@gmail.com"&gt;Thomas Brijs&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Q1) Does this count as a 120Ohms termination resistor or do I need to add one externally (i think not)?&lt;BR /&gt;-- Yes, it counts, and I think you'd better add a 120 Ohms resistor on the Raspberry Pi side.&lt;BR /&gt;Q2) In the LPCOpen library demo, it calculates the bit baud rate too.&lt;BR /&gt;Q3) Is there anything else I need to check before I can read the TEST message that is sent from the LPC?&lt;BR /&gt;-- Whether you try the loop-back mode for self-testing operation on the Raspberry Pi side.&lt;BR /&gt;Q4) Note: Oscilloscope and logic analyzer are essential for CAN testing.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 02:47:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897990#M36046</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-20T02:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897991#M36047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The loopback is working fine&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;/sbin/ip link set can0 up type can bitrate 500000 loopback on&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;./cansend can0 400#DEADBEEF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;34 delta ID data ... &amp;lt; cansniffer can0 # l=20 h=100 t=500 &amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0.000000 400 DE AD BE EF ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Pi already has an 120Ohms Rt on board (which had to be enabled by adding a jumper, already did that.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting myself a logic analyzer as we speak, meanwhile nothing much else I can do I guess?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 05:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897991#M36047</guid>
      <dc:creator>brijsthomas</dc:creator>
      <dc:date>2019-05-20T05:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897992#M36048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="341537" data-objecttype="3" href="https://community.nxp.com/people/brijsthomas@gmail.com"&gt;Thomas Brijs&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;Q1) I'm getting myself a logic analyzer as we speak, meanwhile nothing much else I can do I guess?&lt;BR /&gt;-- Yes, I think so.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 08:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897992#M36048</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-21T08:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897993#M36049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;finally got me a scope, the Pi-side is working correctly. I can decode the messages with the serial decoding function.&lt;/P&gt;&lt;P&gt;The LPC-side is where the problem is. Turns out I didn't really need the scope to prove this; adding a debug output to the CAN_error callback made it clear that there is a can bus error on sending the can 'TEST' message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just the demo program so I wonder what could be the problem..&lt;/P&gt;&lt;P&gt;I applied +5V, GND on JP4 and made a connection from STBY to GND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should I be looking next?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2019 12:24:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897993#M36049</guid>
      <dc:creator>brijsthomas</dc:creator>
      <dc:date>2019-06-27T12:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897994#M36050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="341537" data-objecttype="3" href="https://community.nxp.com/people/brijsthomas@gmail.com"&gt;Thomas Brijs&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Actually, I'm not clear with your reply, whether you mean that the LPC11C24 board doesn't work well when running the nxp_lpcxpresso_11c24_periph_ccan_rom example, if yes, can you tell what exactly kind of error you encounter, please clarify it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2019 06:33:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897994#M36050</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-06-29T06:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 11C24 to RPi CAN communication</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897995#M36051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the lack of details;&lt;/P&gt;&lt;P&gt;after &amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_CCAN_API-&amp;gt;can_transmit(&amp;amp;msg_obj); I get 2 errors at once:&lt;/P&gt;&lt;P&gt;0x82&lt;/P&gt;&lt;P&gt;0x87&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This, according to UM10398 are both BIT0 related errors, the first one (0x82) is a warning error and the second one (0x87) means ERR_PASS, ERR_WARN and ERR_BOFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find more info on these errors or what a&amp;nbsp; BIT0 error means or why the can bus goes into BUS OFF state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Jun 2019 13:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso-11C24-to-RPi-CAN-communication/m-p/897995#M36051</guid>
      <dc:creator>brijsthomas</dc:creator>
      <dc:date>2019-06-29T13:01:46Z</dc:date>
    </item>
  </channel>
</rss>

