<?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 How to Enable CAN Receiver Interrupt in CAN PAL Example code in S32K</title>
    <link>https://community.nxp.com/t5/S32K/How-to-Enable-CAN-Receiver-Interrupt-in-CAN-PAL-Example-code/m-p/1589206#M20259</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;CAN PAL Example code in S32K144 EVB with&amp;nbsp;S32DS.ARM.2018.R1 IDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to enable the CAN Receiver interrupt in CAN PAL Example code, i don't want to block my code with while loop like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CAN_ConfigRxBuff(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;buffCfg, Rx_Id);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/* Start receiving data in RX_MAILBOX. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CAN_Receive(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;recvMsg);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while(1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Wait until the previous FlexCAN receive is completed */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(CAN_GetTransferStatus(INST_CAN_PAL1, RX_MAILBOX) == STATUS_SUCCESS)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CAN_Rx_test_ID = recvMsg.id;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CAN_Receive(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;recvMsg);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here my requirement is when ever the CAN Message is received on CAN Bus, CAN Receiver Interrupt&amp;nbsp;need to Trigger so that without blocking of my code with while loop, i can handle the received CAN Messages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope you understand my requirement, please share your suggestion or code with required config settings to fulfill my requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jan 2023 09:34:50 GMT</pubDate>
    <dc:creator>Dileep1441</dc:creator>
    <dc:date>2023-01-28T09:34:50Z</dc:date>
    <item>
      <title>How to Enable CAN Receiver Interrupt in CAN PAL Example code</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Enable-CAN-Receiver-Interrupt-in-CAN-PAL-Example-code/m-p/1589206#M20259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using&amp;nbsp;&lt;SPAN&gt;CAN PAL Example code in S32K144 EVB with&amp;nbsp;S32DS.ARM.2018.R1 IDE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to enable the CAN Receiver interrupt in CAN PAL Example code, i don't want to block my code with while loop like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CAN_ConfigRxBuff(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;buffCfg, Rx_Id);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;/* Start receiving data in RX_MAILBOX. */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CAN_Receive(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;recvMsg);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while(1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* Wait until the previous FlexCAN receive is completed */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(CAN_GetTransferStatus(INST_CAN_PAL1, RX_MAILBOX) == STATUS_SUCCESS)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CAN_Rx_test_ID = recvMsg.id;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CAN_Receive(INST_CAN_PAL1, RX_MAILBOX, &amp;amp;recvMsg);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here my requirement is when ever the CAN Message is received on CAN Bus, CAN Receiver Interrupt&amp;nbsp;need to Trigger so that without blocking of my code with while loop, i can handle the received CAN Messages&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope you understand my requirement, please share your suggestion or code with required config settings to fulfill my requirement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2023 09:34:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Enable-CAN-Receiver-Interrupt-in-CAN-PAL-Example-code/m-p/1589206#M20259</guid>
      <dc:creator>Dileep1441</dc:creator>
      <dc:date>2023-01-28T09:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Enable CAN Receiver Interrupt in CAN PAL Example code</title>
      <link>https://community.nxp.com/t5/S32K/How-to-Enable-CAN-Receiver-Interrupt-in-CAN-PAL-Example-code/m-p/1589281#M20266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Dileep1441,&lt;/P&gt;
&lt;P&gt;Please refer to the examples in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-SDK-FlexCAN-sample-projects-to-demonstrate-its-basic-and/ta-p/1172891" target="_self"&gt;S32K1xx SDK FlexCAN sample projects to demonstrate its basic and advanced features&lt;/A&gt;&lt;BR /&gt;You will find the&amp;nbsp;CAN_TX_RX_Callback in&amp;nbsp;...\S32K144_CAN_PAL_SamplePrj_Basic_TxRx_ID_FiltersConfig_SDKRTM3P0\Sources\can_api.c&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&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;- 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;</description>
      <pubDate>Sun, 29 Jan 2023 06:46:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/How-to-Enable-CAN-Receiver-Interrupt-in-CAN-PAL-Example-code/m-p/1589281#M20266</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-01-29T06:46:54Z</dc:date>
    </item>
  </channel>
</rss>

