<?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: S32K3 CAN-FD RX interrupt not occuring in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1999609#M43513</link>
    <description>&lt;P&gt;Hi@&lt;SPAN&gt;Kazarian&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This may be related to the &lt;STRONG&gt;number of MB&lt;/STRONG&gt; settings you have.&lt;/P&gt;
&lt;P&gt;Please provide a complete demo if you encounter problems.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 02:33:13 GMT</pubDate>
    <dc:creator>Senlent</dc:creator>
    <dc:date>2024-11-22T02:33:13Z</dc:date>
    <item>
      <title>S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1997970#M43443</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We try to implement CAN-FD in interrupt mode based on the example “FlexCAN_Ip_Example_S32K344” which is not that useful since it use loopback and no interrupts.&lt;/P&gt;&lt;P&gt;What we tried to do is :&lt;/P&gt;&lt;P&gt;Create interrupt in IntCtrl_IP : FlexCAN0_1_IRQn , handler : CAN0_ORED_0_31_MB_IRQHandler&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_0-1732099187138.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311449iA347F212DB379603/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_0-1732099187138.png" alt="Kazarian_0-1732099187138.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In FlexCan modul add callback function : flexcan0_Callback&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_1-1732099200155.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311450iEDD1D751D2DE2482/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_1-1732099200155.png" alt="Kazarian_1-1732099200155.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Install the interrupts (please refere to attached file function &lt;STRONG&gt;FlexCan_Init_Config&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;Implement the Callback function :&amp;nbsp; &lt;STRONG&gt;&lt;U&gt;flexcan0_Callback&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Modul can send the frames, but the reception is not triggering, can you please verify attached code and let me know what is you thought.&lt;/P&gt;&lt;P&gt;We want to receive Ids from 0x100 to 0x7FF. only STD ids not extended ones&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;const Flexcan_Ip_EnhancedIdTableType CAN0_EnhanceFIFO_IdFilterTable[1] =
{
		{
			.filterType = FLEXCAN_IP_ENHANCED_RX_FIFO_RANGE_ID_FILTER,
			.isExtendedFrame = false,
			.id1 = 0x7FF ,	// STD ID From
			.id2 = 0x100, 	// STD ID To
			.rtr2 = FALSE,	// RTR filter
			.rtr1 = FALSE,	// RTR mask
		},
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 10:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1997970#M43443</guid>
      <dc:creator>Kazarian</dc:creator>
      <dc:date>2024-11-20T10:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998498#M43466</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Kazarian&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please see attached, this is a demo I made a while ago.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 05:17:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998498#M43466</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-11-21T05:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998687#M43483</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your answer,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The MCU goes to hardfault when i send a can frame from my CAN-Case into the MCU.&lt;/P&gt;&lt;P&gt;i can however send frames from MCU to my Canoe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to set a range of ids not only 1, and im using CAN-FD with 64 bytes, here is init function, can you please update the RX filter and also why the MCU hard fault ?&lt;/P&gt;&lt;P&gt;between im using Freertos i dont know how usefull this info can be !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Flexcan_Ip_StatusType FlexCan_Init_Config(void)
{
	Flexcan_Ip_StatusType retVal = E_NOT_OK;

	Flexcan_Ip_MsgBuffType rxData;

	Flexcan_Ip_DataInfoType rx_info = {
	        .msg_id_type = FLEXCAN_MSG_ID_STD,
	        .data_length = 64u,
	        .is_polling  = FALSE,
	        .is_remote   = FALSE,
			.fd_enable   = TRUE,
	};

	/* Enable interrupt on CAN 0 */
	IntCtrl_Ip_EnableIrq(FlexCAN0_0_IRQn);
	IntCtrl_Ip_EnableIrq(FlexCAN0_1_IRQn);
	IntCtrl_Ip_EnableIrq(FlexCAN0_2_IRQn);

	retVal = FlexCAN_Ip_Init(INST_BOARD_INITPERIPHERALS_FLEXCAN_0, &amp;amp;FlexCAN_BOARD_InitPeripherals_State0, &amp;amp;FlexCAN_Config0_BOARD_InitPeripherals);

	retVal |= FlexCAN_Ip_SetRxIndividualMask(INST_BOARD_INITPERIPHERALS_FLEXCAN_0,RX_MB_IDX,0xFFFFFFFF);

	retVal |= FlexCAN_Ip_ConfigRxMb(INST_BOARD_INITPERIPHERALS_FLEXCAN_0, RX_MB_IDX, &amp;amp;rx_info, Rx_MSG_ID);

    /* Set the FlexCAN instance in START mode */
	retVal |= retVal |= FlexCAN_Ip_SetStartMode(INST_BOARD_INITPERIPHERALS_FLEXCAN_0);


	retVal |= FlexCAN_Ip_Receive(INST_BOARD_INITPERIPHERALS_FLEXCAN_0,RX_MB_IDX,&amp;amp;rxData,FALSE);


    return retVal;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 08:26:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998687#M43483</guid>
      <dc:creator>Kazarian</dc:creator>
      <dc:date>2024-11-21T08:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998761#M43487</link>
      <description>&lt;P&gt;The hardfault comes if i set the payload in my Can frame to 64 byte , if i set it to whatever other smaller value (32-24-16..) the program run and i can receive frames correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_0-1732181623540.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311680iC66D01C27F729BBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_0-1732181623540.png" alt="Kazarian_0-1732181623540.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Flexcan_Ip_DataInfoType rx_info = {
	        .msg_id_type = FLEXCAN_MSG_ID_STD,
	        .data_length = 64u,
	        .is_polling  = FALSE,
	        .is_remote   = FALSE,
			.fd_enable   = TRUE,
	};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where should i change so can be able to receive a payload of 64bytes without hardfault ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 09:36:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998761#M43487</guid>
      <dc:creator>Kazarian</dc:creator>
      <dc:date>2024-11-21T09:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998972#M43504</link>
      <description>&lt;P&gt;Register view&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_0-1732202037182.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311738i7D5CE8FE48510C25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_0-1732202037182.png" alt="Kazarian_0-1732202037182.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_1-1732202074231.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311739i822B4947A4AAEA2E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_1-1732202074231.png" alt="Kazarian_1-1732202074231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 15:14:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1998972#M43504</guid>
      <dc:creator>Kazarian</dc:creator>
      <dc:date>2024-11-21T15:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1999609#M43513</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Kazarian&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This may be related to the &lt;STRONG&gt;number of MB&lt;/STRONG&gt; settings you have.&lt;/P&gt;
&lt;P&gt;Please provide a complete demo if you encounter problems.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 02:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1999609#M43513</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-11-22T02:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1999877#M43534</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i emailed you the code in private message.&lt;/P&gt;&lt;P&gt;Number of MB is 2, below is the configuration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_0-1732261935128.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311950i82D97A7570E608B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_0-1732261935128.png" alt="Kazarian_0-1732261935128.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kazarian_1-1732261954422.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/311952iB59F9A1241659871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kazarian_1-1732261954422.png" alt="Kazarian_1-1732261954422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 07:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/1999877#M43534</guid>
      <dc:creator>Kazarian</dc:creator>
      <dc:date>2024-11-22T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/2000739#M43605</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Kazarian&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please Copy Flexcan.c to your project and try agian,&amp;nbsp;this should be an error caused by accessing temporary variables.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1732514338430.png" style="width: 674px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/312212iBA2589440172CFE6/image-dimensions/674x206?v=v2" width="674" height="206" role="button" title="Senlent_0-1732514338430.png" alt="Senlent_0-1732514338430.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 05:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/2000739#M43605</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-11-25T05:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/2000868#M43613</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/188029"&gt;@Senlent&lt;/a&gt;&amp;nbsp;Thanks a lot this works.&lt;/P&gt;&lt;P&gt;I'm looking to set a range of Standard CAN IDs, for example, from 0x100 to 0x300, without using the enhanced RX FIFO, which only supports 20 CAN FD messages.&lt;/P&gt;&lt;P&gt;Is there a method to achieve this? Alternatively, if that’s not possible, a global mask that would allow the device to accept all IDs would also work for my application.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 08:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/2000868#M43613</guid>
      <dc:creator>Kazarian</dc:creator>
      <dc:date>2024-11-25T08:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K3 CAN-FD RX interrupt not occuring</title>
      <link>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/2000884#M43614</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Kazarian&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please refer to this article which is also same with S32K3 mask settings.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-FlexCAN-Mask-Setting-Demo/ta-p/1519753" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/S32K1xx-FlexCAN-Mask-Setting-Demo/ta-p/1519753&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 08:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K3-CAN-FD-RX-interrupt-not-occuring/m-p/2000884#M43614</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-11-25T08:51:27Z</dc:date>
    </item>
  </channel>
</rss>

