<?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: lpc17_CAN__LedControl on LPC1768 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528702#M1069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Feb 13 12:35:50 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jlara&lt;/STRONG&gt;&lt;BR /&gt;Troubleshooting: I traced the pins of the transceiver and the lpcxpresso board several times.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused: And the result ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As described in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?p=5823&amp;amp;highlight=self+test#post5823&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is a simple Self Test Mode, so you just need a working transceiver (and no additional receiving node which acknowledges the message)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So switch to Local Self Test &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
LPC_CAN1-&amp;gt;MOD = 1; // Enter Reset Mode
LPC_CAN1-&amp;gt;MOD = (1&amp;lt;&amp;lt;2); //local self test
 
//Enable CAN Interrupt
NVIC_EnableIRQ(CAN_IRQn);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]before Enabling Interrupt.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]And now watch your scope and debug CANCON1-&amp;gt;CANMOD.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]Should show 4 (1&amp;lt;&amp;lt;2) for self test mode, if it shows 5 your transceiver is not working.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]Without transceiver you can just connect RD1 / TD1 with something like 1k resistor to simulate a transceiver.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]So you should be able to transmit a message in Self Test Mode even with LPCXpresso and RD / TD bridge without transceiver.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Don't switch back to normal operation before you have a working CAN bus and working nodes which acknowledges your messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note#1: Scope Serial Decoding shows 125k message: ID:0x234 No Ack Slot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.flickr.com/photos/58892165@N08/5442242829/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:54:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:54:18Z</dc:date>
    <item>
      <title>lpc17_CAN__LedControl on LPC1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528699#M1066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jlara on Sat Feb 12 21:50:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help review the following code? I modified "lpc17_CAN_LedControl.zip example to transmit on CAN1 periodically. The code does not work and no transitions can be seen on the CAN pins (J6-9, J6-10).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:54:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528699#M1066</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: lpc17_CAN__LedControl on LPC1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528700#M1067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sat Feb 12 23:24:03 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jlara&lt;/STRONG&gt;&lt;BR /&gt;The code does not work and no transitions can be seen on the CAN pins (J6-9, J6-10).&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try debugging :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is CAN_SendMsg () executed ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you add a CAN transceiver or are you just scoping pins?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528700#M1067</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: lpc17_CAN__LedControl on LPC1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528701#M1068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by jlara on Sun Feb 13 09:45:51 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Zero,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, CAN_SendMsg () is executed. LED2 is toggled in the same loop and that is working.&amp;nbsp; I am using a logic probe for now but will scope the pins if the problem persists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Troubleshooting:&amp;nbsp; I traced the pins of the tranceiver and the lpcxpresso board several times.&amp;nbsp; Next I will troubleshoot the code.&amp;nbsp; I need to have a better understanding of the CAN controller, so I will be looking for the data sheet on the NXP website.&amp;nbsp; I was hoping someone intimate with this code would be able to spot the problem quickly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be nice to know for a fact whether the [B]lpc17_CAN__LedControl.zip [/B]actually works on some board.&amp;nbsp; Can anyone confirm?&amp;nbsp; It was not designed for LPCXpresso 1768 board but it would help to know if it works.&amp;nbsp; It it does, it should work on LPCXpresso.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:54:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528701#M1068</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: lpc17_CAN__LedControl on LPC1768</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528702#M1069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Sun Feb 13 12:35:50 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: jlara&lt;/STRONG&gt;&lt;BR /&gt;Troubleshooting: I traced the pins of the transceiver and the lpcxpresso board several times.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;:confused: And the result ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As described in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://knowledgebase.nxp.com/showthread.php?p=5823&amp;amp;highlight=self+test#post5823&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there is a simple Self Test Mode, so you just need a working transceiver (and no additional receiving node which acknowledges the message)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So switch to Local Self Test &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
LPC_CAN1-&amp;gt;MOD = 1; // Enter Reset Mode
LPC_CAN1-&amp;gt;MOD = (1&amp;lt;&amp;lt;2); //local self test
 
//Enable CAN Interrupt
NVIC_EnableIRQ(CAN_IRQn);&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]before Enabling Interrupt.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]And now watch your scope and debug CANCON1-&amp;gt;CANMOD.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]Should show 4 (1&amp;lt;&amp;lt;2) for self test mode, if it shows 5 your transceiver is not working.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]Without transceiver you can just connect RD1 / TD1 with something like 1k resistor to simulate a transceiver.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[LEFT]So you should be able to transmit a message in Self Test Mode even with LPCXpresso and RD / TD bridge without transceiver.[/LEFT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: Don't switch back to normal operation before you have a working CAN bus and working nodes which acknowledges your messages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note#1: Scope Serial Decoding shows 125k message: ID:0x234 No Ack Slot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.flickr.com/photos/58892165@N08/5442242829/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:54:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/lpc17-CAN-LedControl-on-LPC1768/m-p/528702#M1069</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:54:18Z</dc:date>
    </item>
  </channel>
</rss>

