<?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: Problems with can on_chip drivers for lpc11c24 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581019#M24787</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 Tue Oct 04 12:26:09 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; ...values &amp;amp;#8203;&amp;amp;#8203;of the CANH and CANL voltages on the bus are correct... &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Don't understand what you mean with voltages? Did you scope it? Can you see a message which is (periodically) transmitted? It's not necessary to decode this message, a scope can show you a correct baudrate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you should zip and post your (receiving) project, so software problems can be excluded :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:00:41 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:00:41Z</dc:date>
    <item>
      <title>Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581003#M24771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Sep 27 12:48:39 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I'm beginning to test drivers lpc11c24 API (can on_chip) and my problem is that there are no interrupts in transmission and reception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I have a scope on the port can and this information is being transmitted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; CAN interrupt is enabled and the callback functions are initialized,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but for some reason, when you call can_transmit () or can_receive (), there is no interruption is executed and performs the callback functions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Can anyone help me with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581003#M24771</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581004#M24772</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 Tue Sep 27 13:19:07 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are we talking about can_onchip sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you scope your CAN bus (if your message is transmitted and received from anything else) :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581004#M24772</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581005#M24773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by NXP_Europe on Tue Sep 27 14:51:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello mcabral,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in a CAN-bus network at least two 'nodes' should be connected ... is that so in your case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581005#M24773</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581006#M24774</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 Tue Sep 27 17:11:14 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course a modern chip is able to switch in a loop back mode to test CAN without working CAN bus and all this stuff &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This code is based on can_onchip sample with enabled loop back mode. So your chip is transmitting and receiving without external CAN bus :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Breakpoints in CAN_rx ([COLOR=Blue]rx_counter++[/COLOR]) and CAN_tx ([COLOR=Blue]tx_counter++[/COLOR]) will show this &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&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;
/****************************************************************************
 *&amp;nbsp;&amp;nbsp; $Id:: main.c 5034 2010-09-24 23:48:37Z nxp12832&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $
 *&amp;nbsp;&amp;nbsp; Project: NXP LPC11xx CAN example
 *
 *&amp;nbsp;&amp;nbsp; Description:
 *&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This file is part of the CAN and CANopen on-chip driver examples.
 *
 ****************************************************************************
 * Software that is described herein is for illustrative purposes only
 * which provides customers with programming information regarding the
 * products. This software is supplied "AS IS" without any warranties.
 * NXP Semiconductors assumes no responsibility or liability for the
 * use of the software, conveys no license or title under any patent,
 * copyright, or mask work right to the product. NXP Semiconductors
 * reserves the right to make changes in the software without
 * notification. NXP Semiconductors also make no representation or
 * warranty that such application will be suitable for the specified
 * use without further testing or modification.
****************************************************************************/
#include "driver_config.h"
#include "target_config.h"

#include "rom_drivers.h"

#ifndef NULL
#define NULL&amp;nbsp;&amp;nbsp;&amp;nbsp; ((void *)0)
#endif

ROM **rom = (ROM **)0x1fff1ff8;

CAN_MSG_OBJ msg_obj;

/* Initialize CAN Controller */
uint32_t ClkInitTable[2] = {
&amp;nbsp; 0x00000000UL, // CANCLKDIV
&amp;nbsp; 0x00001C57UL&amp;nbsp; // CAN_BTR
};

/* Callback function prototypes */
void CAN_rx(uint8_t msg_obj_num);
void CAN_tx(uint8_t msg_obj_num);
void CAN_error(uint32_t error_info);

volatile unsigned short rx_counter=0; //receive counter
volatile unsigned short tx_counter=0; //transmit counter


/* Publish CAN Callback Functions */
CAN_CALLBACKS callbacks = {
&amp;nbsp;&amp;nbsp; CAN_rx,
&amp;nbsp;&amp;nbsp; CAN_tx,
&amp;nbsp;&amp;nbsp; CAN_error,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
};

/*&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN receive callback */
/*&amp;nbsp;&amp;nbsp;&amp;nbsp; Function is executed by the Callback handler after
&amp;nbsp;&amp;nbsp;&amp;nbsp; a CAN message has been received */
void CAN_rx(uint8_t msg_obj_num){
 [B][COLOR=Red] [COLOR=Blue]rx_counter++;[/COLOR][/COLOR][/B]
&amp;nbsp; /* Determine which CAN message has been received */
&amp;nbsp; msg_obj.msgobj = msg_obj_num;

&amp;nbsp; /* Now load up the msg_obj structure with the CAN message */
&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;can_receive(&amp;amp;msg_obj);

&amp;nbsp; if (msg_obj_num == 1)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Simply transmit CAN frame (echo) with with ID +0x100 via buffer 2 */
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.msgobj = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mode_id += 0x100;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;can_transmit(&amp;amp;msg_obj);
&amp;nbsp; }

&amp;nbsp; return;
}

/*&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN transmit callback */
/*&amp;nbsp;&amp;nbsp;&amp;nbsp; Function is executed by the Callback handler after
&amp;nbsp;&amp;nbsp;&amp;nbsp; a CAN message has been transmitted */
void CAN_tx(uint8_t msg_obj_num){
&amp;nbsp; [COLOR=Blue][B]tx_counter++;[/B][/COLOR]
&amp;nbsp; return;
}

/*&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN error callback */
/*&amp;nbsp;&amp;nbsp;&amp;nbsp; Function is executed by the Callback handler after
&amp;nbsp;&amp;nbsp;&amp;nbsp; an error has occured on the CAN bus */
void CAN_error(uint32_t error_info){
&amp;nbsp; return;
}

/*&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN interrupt handler */
/*&amp;nbsp;&amp;nbsp;&amp;nbsp; The CAN interrupt handler must be provided by the user application.
&amp;nbsp;&amp;nbsp;&amp;nbsp; It's function is to call the isr() API located in the ROM */
void CAN_IRQHandler (void){
&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;isr();
}

int main(void) {
&amp;nbsp;&amp;nbsp; [COLOR=Red] volatile unsigned int i,counter=0;[/COLOR]

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Output the Clk onto the CLKOUT Pin PIO0_1 to monitor the freq on a scope */
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_IOCON-&amp;gt;PIO0_1&amp;nbsp;&amp;nbsp;&amp;nbsp; = (1&amp;lt;&amp;lt;0);
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Select the MAIN clock as the clock out selection since it's driving the core */
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;CLKOUTCLKSEL = 3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set CLKOUTDIV to 6 */
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;CLKOUTDIV = 10;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp; CLKOUT Divider = 10
&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable CLKOUT */
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;CLKOUTUEN = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_SYSCON-&amp;gt;CLKOUTUEN = 1;
&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!(LPC_SYSCON-&amp;gt;CLKOUTUEN &amp;amp; 0x01));

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initialize the CAN controller */
&amp;nbsp;&amp;nbsp;&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;init_can(&amp;amp;ClkInitTable[0], 1);

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Configure the CAN callback functions */
&amp;nbsp;&amp;nbsp;&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;config_calb(&amp;amp;callbacks);

 [B][COLOR=Red]&amp;nbsp;&amp;nbsp; //set loop back mode
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_CAN-&amp;gt;CNTL |= (1&amp;lt;&amp;lt;7);
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_CAN-&amp;gt;TEST |= (1&amp;lt;&amp;lt;4);[/COLOR][/B]

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Enable the CAN Interrupt */
&amp;nbsp;&amp;nbsp;&amp;nbsp; NVIC_EnableIRQ(CAN_IRQn);

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Send a simple one time CAN message */
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.msgobj&amp;nbsp; = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mode_id = 0x410;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mask&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.dlc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[0] = 'T';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x54
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[1] = 'E';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x45
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[2] = 'S';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x53
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[3] = 'T';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x54
&amp;nbsp;&amp;nbsp;&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;can_transmit(&amp;amp;msg_obj);

&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Configure message object 1 to receive all 11-bit messages 0x400-0x4FF */
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.msgobj = 1;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mode_id = 0x400;
&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mask = 0x700;
&amp;nbsp;&amp;nbsp;&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;config_rxmsgobj(&amp;amp;msg_obj);&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; [COLOR=Red] i++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(i&amp;gt;100000)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i=0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Send a simple CAN message */
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.msgobj&amp;nbsp; = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mode_id = 0x411;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.mask&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0x0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.dlc&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 5;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[0] = 'T';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x54
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[1] = 'E';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x45
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[2] = 'S';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x53
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[3] = 'T';&amp;nbsp;&amp;nbsp;&amp;nbsp; //0x54
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msg_obj.data[4] = counter;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;can_transmit(&amp;amp;msg_obj);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter++;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }[/COLOR]
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581006#M24774</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581007#M24775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Wed Sep 28 05:40:57 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I had tested in "loopback" and apparently all was well. The problem arose when I tried to operate in normal mode. Then run the program step by step shows that after a can_transmit (), the program does not execute the callback function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really surprised because I think callbacks functions properly configure and enable interrupts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581007#M24775</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581008#M24776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Wed Sep 28 05:50:18 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;in my project are two connected nodes. One is transmitted and the rest should receive the messages. The scope tells me that there is information on the network.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is: Can interruption is when you empty the transmission buffer or should I wait for a response from another node?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581008#M24776</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581009#M24777</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 Wed Sep 28 06:19:35 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If loop back mode is working, check your CAN bus &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&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;
 void CAN_tx(uint8_t msg_obj_num){
&amp;nbsp; tx_counter++;
&amp;nbsp; return;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;This tx_counter isn't executed if the transmission wasn't successful :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if a breakpoint there does show no execution, your message wasn't received (achnowledged) from other nodes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; ...are two connected nodes... &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;...with termination?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;...that there is information...&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;.. and is it a CAN message or is it E.T. calling home :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581009#M24777</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581010#M24778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheDebugStore on Thu Sep 29 04:37:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mcabral&lt;/STRONG&gt;&lt;BR /&gt;hello,&lt;BR /&gt; I'm beginning to test drivers lpc11c24 API (can on_chip) and my problem is that there are no interrupts in transmission and reception.&lt;BR /&gt; I have a scope on the port can and this information is being transmitted.&lt;BR /&gt; CAN interrupt is enabled and the callback functions are initialized,&lt;BR /&gt;but for some reason, when you call can_transmit () or can_receive (), there is no interruption is executed and performs the callback functions&lt;BR /&gt; Can anyone help me with this?&lt;BR /&gt; thanks!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest that you use a CAN Bus Analyser.&amp;nbsp; We have a range of CAN Bus Analysers including the &lt;/SPAN&gt;&lt;A href="http://http://www.thedebugstore.com/acatalog/TP360110-Komodo-CAN-Duo-Host-Adapter.html"&gt;Total Phase Komodo CAN Duo&lt;/A&gt;&lt;SPAN&gt; (Analyser and exerciser) and the popular &lt;/SPAN&gt;&lt;A href="http://http://www.thedebugstore.com/acatalog/LAP-C-16032-Logic-Analyser.html"&gt;ZeroPlus LAP-C(16032) Logic Analyse&lt;/A&gt;&lt;SPAN&gt;r with up to 30 protocol analysis modules free (including CAN 2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having adecode of CAN bus packets will give you far more information that a scope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this is helpful?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John Legg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581010#M24778</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581011#M24779</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 Thu Sep 29 05:05:17 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: TheDebugStore&lt;/STRONG&gt;&lt;BR /&gt;Having adecode of CAN bus packets will give you far more information that a scope.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A lot of (cheap) USB scopes also allow a simple 'Serial decoding' of CAN, I2C, SPI, E.T....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Videos: &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.picotech.com/picoscope6-serial-decoding.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581011#M24779</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581012#M24780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Oct 04 08:42:23 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to run the CAN communication and had no results. Loopback mode all is well. The problem remains that no messages are received from the network can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone was able to establish communication with the rom drivers?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581012#M24780</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581013#M24781</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 Tue Oct 04 09:02:13 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you use the sample or did you create your own project?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581013#M24781</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581014#M24782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Oct 04 10:43:24 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Of course &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;Did you use the sample or did you create your own project?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, thanks for answering&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;actually used the example code with some modifications. The problem is I can not find how to receive the data sent. I have doubts whether there is any configuration problem I am having in mind because everything is connected according to specifications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem occurs in normal operation because loopback mode everything works as desired. However, in normal mode gives no interruption...&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;
#include &amp;lt;cr_section_macros.h&amp;gt;
#include "driver_config.h"
#include "target_config.h"
#include "small_gpio.h"
#include "gpio.h"
#include "rom_drivers.h"

#ifndef NULL
#define NULL&amp;nbsp;&amp;nbsp;&amp;nbsp; ((void *)0)
#endif

__BSS(RESERVED) char CAN_driver_memory[256]; // reserva 256 bytes for CAN driver

ROM **rom = (ROM **)0x1fff1ff8;

CAN_MSG_OBJ msg_obj;
uint32_t cuenta;
uint32_t cuenta_Rx;
uint32_t status;

/* Initialize CAN Controller */
uint32_t ClkInitTable[2] = {
&amp;nbsp; 0x00000000UL, // CANCLKDIV
&amp;nbsp; 0x00001C57UL&amp;nbsp; // CAN_BTR
};

/* Callback function prototypes */
void CAN_rx(uint8_t msg_obj_num);
void CAN_tx(uint8_t msg_obj_num);
void CAN_error(uint32_t error_info);

/* Publish CAN Callback Functions */
CAN_CALLBACKS callbacks = {
&amp;nbsp;&amp;nbsp; CAN_rx,
&amp;nbsp;&amp;nbsp; CAN_tx,
&amp;nbsp;&amp;nbsp; CAN_error,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
};

/*CAN receive callback */

void CAN_rx(uint8_t msg_obj_num){
ToggleGPIOBit(LED_PORT, LEDV_BIT);
cuenta_Rx++;
&amp;nbsp; return;
}

/*CAN transmit callback */

void CAN_tx(uint8_t msg_obj_num){
return;
}

/*CAN error callback */

void CAN_error(uint32_t error_info){

&amp;nbsp; return;
}

/*CAN interrupt handler */

void CAN_IRQHandler (void){
&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;isr();
}

int main(void) {

InitGPIO();

/* Initialize the CAN controller */
(*rom)-&amp;gt;pCAND-&amp;gt;init_can(&amp;amp;ClkInitTable[0], 1);

/* Configure the CAN callback functions */
(*rom)-&amp;gt;pCAND-&amp;gt;config_calb(&amp;amp;callbacks);


SetGPIOOut(LED_PORT, LEDV_BIT);
SetGPIOOut(LED_PORT, LEDR_BIT);
SetGPIOOut(PORT_0, PIO0_3);
GPIOSetValue( PORT_0, PIO0_3, 0 ); 

//&amp;nbsp;&amp;nbsp;&amp;nbsp; //set loopback mode
//&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_CAN-&amp;gt;CNTL |= (1&amp;lt;&amp;lt;7);
//&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_CAN-&amp;gt;TEST |= (1&amp;lt;&amp;lt;4);

/* Enable the CAN Interrupt */
NVIC_EnableIRQ(CAN_IRQn);


/* Configure message object 1 to receive all 11-bit messages 0x200-0x2FF */
msg_obj.msgobj = 1;
msg_obj.mode_id = 0x200 | CAN_MSGOBJ_STD;
msg_obj.mask = 0x000;
(*rom)-&amp;gt;pCAND-&amp;gt;config_rxmsgobj(&amp;amp;msg_obj);



while(1){
if (cuenta == 1000000){

ToggleGPIOBit(LED_PORT, LEDR_BIT);
cuenta = 0;
}
cuenta++;
}
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope someone can help me because I find no solution. Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581014#M24782</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581015#M24783</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 Tue Oct 04 11:01:54 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Who is sending your data? Are you 100% sure that this message is sent correct (ID, baudrate...) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 As mentioned above, it's a good idea to transmit first. So if your&amp;nbsp; loop back is working, use a tx_counter and transmit a message with a&amp;nbsp; delay loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scope it to check if it's transmitted correct and if your&amp;nbsp; baudrate is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Still don't know which hardware (and CAN-BUS) you are using and what you've scoped already?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#4 Use this receive object to receive everything:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
msg_obj.msgobj = 1;
msg_obj.mode_id = 0x7FF;&amp;nbsp; //receive all 
msg_obj.mask = 0x000;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581015#M24783</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581016#M24784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Oct 04 11:40:59 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;#1 Who is sending your data? Are you 100% sure that this message is sent correct (ID, baudrate...) ?&lt;BR /&gt;&lt;BR /&gt;#2 As mentioned above, it's a good idea to transmit first. So if your&amp;nbsp; loop back is working, use a tx_counter and transmit a message with a&amp;nbsp; delay loop.&lt;BR /&gt;Scope it to check if it's transmitted correct and if your&amp;nbsp; baudrate is correct.&lt;BR /&gt;&lt;BR /&gt;#3 Still don't know which hardware (and CAN-BUS) you are using and what you've scoped already?&lt;BR /&gt;&lt;BR /&gt;#4 Use this receive object to receive everything:&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;
msg_obj.msgobj = 1;
msg_obj.mode_id = 0x7FF;&amp;nbsp; //receive all 
msg_obj.mask = 0x000;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;both nodes are operating at 125 Kb / sec and the IDs are properly configured for the reception. On the other hand, I implemented your suggestions but the reception counter operating in normal mode never increases because interrupts are never executed. CAN network is implemented with two nodes and has termination resistors of 120 Ohm. The transceiver is properly fed and although I don´t have a scanner Can I check the CANH and CANL voltages. Aparentemenet everything should work as expected but it is not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581016#M24784</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581017#M24785</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 Tue Oct 04 11:51:19 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, I can't help you if you don't answer my questions and don't follow my suggestions :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can't confirm that a node is transmitting messages it's useless to look for a receiver problem :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So please use a tx_counter as suggested in my code sample and, if possible, scope your bus to see if a valid message is transmitted or if your transmitter is desperate repeating a message without getting an acknowledge.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581017#M24785</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581018#M24786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Oct 04 12:11:54 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Sorry, I can't help you if you don't answer my questions and don't follow my suggestions :mad:&lt;BR /&gt;&lt;BR /&gt;If you can't confirm that a node is transmitting messages it's useless to look for a receiver problem :eek:&lt;BR /&gt;&lt;BR /&gt;So please use a tx_counter as suggested in my code sample and, if possible, scope your bus to see if a valid message is transmitted or if your transmitter is desperate repeating a message without getting an acknowledge.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry if I did not understand. A node is transmitting loopback mode. Its transmission counter is incremented properly and the values &amp;amp;#8203;&amp;amp;#8203;of the CANH and CANL voltages on the bus are correct. Unfortunately I do not have a scanner "can" so I can not say if the message being transmitted is valid. However, the receiving node is not working as it should and does not run any interrupt routine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, both nodes operate correctly in loopback mode. Also we had the receiving node operating in silent mode with the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm really confused with this.:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581018#M24786</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581019#M24787</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 Tue Oct 04 12:26:09 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt; ...values &amp;amp;#8203;&amp;amp;#8203;of the CANH and CANL voltages on the bus are correct... &lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Don't understand what you mean with voltages? Did you scope it? Can you see a message which is (periodically) transmitted? It's not necessary to decode this message, a scope can show you a correct baudrate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps you should zip and post your (receiving) project, so software problems can be excluded :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581019#M24787</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581020#M24788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Oct 04 12:40:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Don't understand what you mean with voltages? Did you scope it? Can you see a message which is (periodically) transmitted? It's not necessary to decode this message, a scope can show you a correct baudrate.&lt;BR /&gt;&lt;BR /&gt;Perhaps you should zip and post your (receiving) project, so software problems can be excluded &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I measured the voltages on the bus to verify that a message is being transmitted periodically. There really is a message being transmitted and reaches the receiver via a can bus baudrate 125Kbit/sec. The receiver code is as follows:&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;
#include &amp;lt;cr_section_macros.h&amp;gt;
#include "driver_config.h"
#include "target_config.h"
#include "small_gpio.h"
#include "gpio.h"
#include "rom_drivers.h"

#ifndef NULL
#define NULL&amp;nbsp;&amp;nbsp;&amp;nbsp; ((void *)0)
#endif

__BSS(RESERVED) char CAN_driver_memory[256]; // reserva 256 bytes for CAN driver

ROM **rom = (ROM **)0x1fff1ff8;

CAN_MSG_OBJ msg_obj;
uint32_t cuenta;
uint32_t cuenta_Rx;
uint32_t cuenta_Tx;

/* Initialize CAN Controller */
uint32_t ClkInitTable[2] = {
&amp;nbsp; 0x00000000UL, // CANCLKDIV
&amp;nbsp; 0x00001C57UL&amp;nbsp; // CAN_BTR
};

/* Callback function prototypes */
void CAN_rx(uint8_t msg_obj_num);
void CAN_tx(uint8_t msg_obj_num);
void CAN_error(uint32_t error_info);

/* Publish CAN Callback Functions */
CAN_CALLBACKS callbacks = {
&amp;nbsp;&amp;nbsp; CAN_rx,
&amp;nbsp;&amp;nbsp; CAN_tx,
&amp;nbsp;&amp;nbsp; CAN_error,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
&amp;nbsp;&amp;nbsp; NULL,
};

/*CAN receive callback */
void CAN_rx(uint8_t msg_obj_num){

ToggleGPIOBit(LED_PORT, LEDV_BIT);
cuenta_Rx++;

&amp;nbsp; return;
}

/*CAN transmit callback */
void CAN_tx(uint8_t msg_obj_num){

//ToggleGPIOBit(LED_PORT, LEDV_BIT);
cuenta_Tx++;
return;
}

/*CAN error callback */
void CAN_error(uint32_t error_info){

&amp;nbsp; return;
}

/*CAN interrupt handler */
void CAN_IRQHandler (void){
&amp;nbsp; (*rom)-&amp;gt;pCAND-&amp;gt;isr();
}

int main(void) {

InitGPIO();

/* Initialize the CAN controller */
(*rom)-&amp;gt;pCAND-&amp;gt;init_can(&amp;amp;ClkInitTable[0], 1);

/* Configure the CAN callback functions */
(*rom)-&amp;gt;pCAND-&amp;gt;config_calb(&amp;amp;callbacks);


SetGPIOOut(LED_PORT, LEDV_BIT);
SetGPIOOut(LED_PORT, LEDR_BIT);
SetGPIOOut(PORT_0, PIO0_3);
GPIOSetValue( PORT_0, PIO0_3, 0 ); //transceiver CAN hab. STB (en bajo --&amp;gt; Activo)



/* Enable the CAN Interrupt */
NVIC_EnableIRQ(CAN_IRQn);


msg_obj.msgobj = 0;
msg_obj.mode_id = 0x7FF; 
msg_obj.mask = 0x000;
(*rom)-&amp;gt;pCAND-&amp;gt;config_rxmsgobj(&amp;amp;msg_obj);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1){

if (cuenta == 1000000){

ToggleGPIOBit(LED_PORT, LEDR_BIT);
cuenta = 0;


}
cuenta++;
}
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;receiver's code is very simple. I do not understand what the problem.:mad:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581020#M24788</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581021#M24789</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 Tue Oct 04 12:55:48 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry, can't test your project if you don't post your project. If there's a wrong project setting I'm wasting a lot of time :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And as long as I don't see a message on my scope I don't believe that's a valid message :eek: So there's a lot of guessing here and that's not solving problems :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581021#M24789</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with can on_chip drivers for lpc11c24</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581022#M24790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mcabral on Tue Oct 04 13:17:52 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, I sent a zip file but I doubt that there may be some error because as I mentioned is a very simple project. But is bringing me many problems.:(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Problems-with-can-on-chip-drivers-for-lpc11c24/m-p/581022#M24790</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:00:43Z</dc:date>
    </item>
  </channel>
</rss>

