<?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のトピックRe: LPC1769  CAN_IRQHandler bug</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746441#M30096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kuldeep kumar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please tell me what the CAN driver you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you tried the lpcopen code for lpc1769 which can be downloaded from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can test this code, and put the breakpoint in the CAN_IRQHandler.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have problem with the lpcopen code, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Dec 2017 06:44:45 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2017-12-27T06:44:45Z</dc:date>
    <item>
      <title>LPC1769  CAN_IRQHandler bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746440#M30095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Hi, everyone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've just started working on LPC1769 on an custom board and I am having problems getting the CAN BUS to work using the drivers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After some research here I've read that the drivers has a lot of bugs, and the links I've found pointing to new drivers always redirect to home in LPCware.com.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using CAN2 in LPC1769&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pins : &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; LPC_SC-&amp;gt;PCONP |= 1&amp;lt;&amp;lt;14;&amp;nbsp; /* Enable CAN2 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL4 &amp;amp;= ~0x0003C000; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* CAN2 is p2.7 and p2.8 */&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; LPC_PINCON-&amp;gt;PINSEL4 |= 0x00014000;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have enabled the Receive interrupt &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;CANx-&amp;gt;IER = 0x01; /* Enable receive interrupts */&lt;BR /&gt;&amp;nbsp; NVIC_EnableIRQ(CAN_IRQn);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am able to transmit and receive data. But during reception the control is not entering into CAN_IRQ_Handler.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I could verify the received data through the Receive buffer registers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me to resolve this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 15:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746440#M30095</guid>
      <dc:creator>kuldeepkumar</dc:creator>
      <dc:date>2017-12-26T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769  CAN_IRQHandler bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746441#M30096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kuldeep kumar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please tell me what the CAN driver you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you tried the lpcopen code for lpc1769 which can be downloaded from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX" title="https://www.nxp.com/support/developer-resources/software-development-tools/lpc-developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc17xx:LPCOPEN-SOFTWARE-FOR-LPC17XX"&gt;LPCOpen Software for LPC17XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You can test this code, and put the breakpoint in the CAN_IRQHandler.&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you still have problem with the lpcopen code, please kindly let me know.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 06:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746441#M30096</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-12-27T06:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769  CAN_IRQHandler bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746442#M30097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kerry,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Thanks for your kind reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got my code working. The issue was with the acceptance filtering in CAN2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The acceptance filter and the Mask were not set properly.&amp;nbsp; Even though the messages were received in the receive buffers, the received ID's were not matched with filter ID's. So the Receive Status(Bit 0 in GSR) bit in Status register was not set further Interrupt(Bit 0 in ICR) was not set. Hence the control was not entering into CAN IRQ Handler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this piece of code for setting Acceptance filter and mask&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;void init_AF( void )&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;int32_t address = 4;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/*off mode*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;AFMR = 0x00000001;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* Set explicit standard Frame*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;SFF_sa = address;/* word 1*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* CAN2 IDENT FORCE1*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF_RAM-&amp;gt;mask[1]=(0X001 &amp;lt;&amp;lt; 29) | (0X400 &amp;lt;&amp;lt; 16)| (1&amp;lt;&amp;lt;27)|&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;(0X001 &amp;lt;&amp;lt; 13)| (0X500 ) | (1&amp;lt;&amp;lt;11) ;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* Only Frame ID 0x400 and 0x500 are received in MBED.*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;address+=4;/*add 4 bytes (1 long word) to point to none used word.*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* Set group standard Frame*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;SFF_GRP_sa = address;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* Set explicit extended Frame*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;EFF_sa = address;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* Set group extended Frame*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;EFF_GRP_sa = address;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* Set End of Table */&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;ENDofTable = address;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* All have ENDofTable address means are not used.*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/*normal mode*/&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;LPC_CANAF-&amp;gt;AFMR = 0x00000000;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;return;&lt;/P&gt;&lt;P style="color: #333e48; font-size: 16px; margin-bottom: 1rem;"&gt;/* end Program */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will also try the LPC open code available in link provided by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your support.&lt;/P&gt;&lt;P&gt;Have a great day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jan 2018 16:03:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746442#M30097</guid>
      <dc:creator>kuldeepkumar</dc:creator>
      <dc:date>2018-01-07T16:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769  CAN_IRQHandler bug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746443#M30098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kuldeep kumar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, in CAN receive, the acceptance filter is very important, if you configure the filter, you need to send the the CAN ID which can be received.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If your problem is solved, please help to mark the correct answer, just to close this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you and have a nice day!&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;--------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 02:05:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-CAN-IRQHandler-bug/m-p/746443#M30098</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-01-08T02:05:56Z</dc:date>
    </item>
  </channel>
</rss>

