<?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: LPC54618 CAN transmission interrupt? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033222#M40238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that CAN example project in the SDK works fine. If it does not work, pls tell us the code snippet which the chip stuck at.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2020 07:02:48 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2020-01-13T07:02:48Z</dc:date>
    <item>
      <title>LPC54618 CAN transmission interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033219#M40235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want to use the SDK function&amp;nbsp;&lt;STRONG&gt;MCAN_TransferSendNonBlocking()&amp;nbsp;&lt;/STRONG&gt;which is not working anyway if used in combination with below receive handler code. Initialization done as per SDK example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I have an example just like receive interrupt provided in the SDK -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;void CAN0_IRQ0_IRQHandler(void)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN_ClearStatusFlag(EXAMPLE_MCAN, CAN_IR_RF0N_MASK);&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;MCAN_ReadRxFifo(EXAMPLE_MCAN, 0, &amp;amp;rxFrame);&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;rxComplete = true;&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Add for ARM errata 838869, affects Cortex-M4, Cortex-M4F Store immediate overlapping&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;exception return operation might vector to incorrect interrupt */&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;#if defined __CORTEX_M &amp;amp;&amp;amp; (__CORTEX_M == 4U)&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;__DSB();&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;#endif&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above code is working perfectly for receive interrupt. I can't find a similar one for transmission!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading. Looking for a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2020 04:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033219#M40235</guid>
      <dc:creator>gmk1</dc:creator>
      <dc:date>2020-01-04T04:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54618 CAN transmission interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033220#M40236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Friend,&lt;/P&gt;&lt;P&gt;As you know that it is okay to read data from CAN receiver in ISR, but I do not think it is suitable to write the CAN frame to CAN transmitter in ISR.&lt;/P&gt;&lt;P&gt;Anytime you want to transfer CAN frame, you can call the MCAN_TransferSendNonBlocking(), if you do not want to call the api function, you can write the snippet yourself to replace the MCAN_TransferSendNonBlocking() function.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 09:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033220#M40236</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-01-07T09:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54618 CAN transmission interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033221#M40237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/xiangjun.rong"&gt;xiangjun.rong&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I don't have any problem using the&amp;nbsp;API&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;MCAN_TransferSendNonBlocking().&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Buy its only working for the first time for me. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;When it is called for the second time its not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;It gets stuck at some place in the middle of function definition.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I can post CAN specific code if needed!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Meanwhile please share some working project using receive IRQ handler &amp;amp;&amp;nbsp;&lt;SPAN&gt;MCAN_TransferSendNonBlocking()&lt;/SPAN&gt; which I can use.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;can transciever‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 12:12:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033221#M40237</guid>
      <dc:creator>gmk1</dc:creator>
      <dc:date>2020-01-07T12:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54618 CAN transmission interrupt?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033222#M40238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that CAN example project in the SDK works fine. If it does not work, pls tell us the code snippet which the chip stuck at.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2020 07:02:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54618-CAN-transmission-interrupt/m-p/1033222#M40238</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-01-13T07:02:48Z</dc:date>
    </item>
  </channel>
</rss>

