<?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: S32K358 CAN RTD Watermark in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200838#M54265</link>
    <description>&lt;P&gt;Looks like after&amp;nbsp;FlexCAN_Ip_SetStartMode, EDMA-&amp;gt;ES is set to SBE_1&lt;/P&gt;</description>
    <pubDate>Fri, 07 Nov 2025 11:29:21 GMT</pubDate>
    <dc:creator>Greavesinator85</dc:creator>
    <dc:date>2025-11-07T11:29:21Z</dc:date>
    <item>
      <title>S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200213#M54227</link>
      <description>&lt;P&gt;I'm trying to use the&amp;nbsp;FlexCAN_Ip RTD drivers for an efficient CAN receive loop. I've been able to do this with FreeRTOS, using interrupt mode and enhanced RX. In this mode, I configure watermark to be 8, but in my&amp;nbsp;FlexCAN_UserCallback only&amp;nbsp;&lt;SPAN&gt;FLEXCAN_EVENT_ENHANCED_RXFIFO_COMPLETE fires, and if I do not add a call to&amp;nbsp;FlexCAN_Ip_RxFifo when this happens, no more interrupts fire.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How am I meant to use watermark mode? Is it only available with DMA?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 17:03:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200213#M54227</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2025-11-06T17:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200355#M54230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/256454"&gt;@Greavesinator85&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RTD driver is written in a way you need to call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;FlexCAN_Ip_RxFifo&lt;/STRONG&gt; first,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;an interrupt is called once there is at least 1 message in the RXFIFO, driver reads single message from RXFIFO, and user has to call&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;FlexCAN_Ip_RxFifo&lt;/STRONG&gt;&amp;nbsp;to enable interrupt again.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This was previously discussed with a colleague in this community post:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/S32K344-Using-FlexCAN-with-RX-FIFO-and-Interrupts/m-p/1543382" target="_blank" rel="noopener"&gt;Solved: S32K344 Using FlexCAN with RX FIFO and Interrupts - NXP Community&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can refer to the routine below for enhanced RXFIFO configuration with watermark:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K344-FlexCAN-Ip-TX-RX-EnhanceRXFIFO-DMA-test-S32DS3-5/ta-p/2015832" target="_blank" rel="noopener"&gt;Example S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFO DMA test S32DS3.5 RTD400 - NXP Community&lt;/A&gt;. It does also configure DMA, though.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;BR /&gt;Julián&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 22:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200355#M54230</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-11-06T22:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200751#M54256</link>
      <description>&lt;P&gt;Ok, so interrupt mode is working as expected in my case, where there is no way to use the watermark feature, as&amp;nbsp;&lt;STRONG&gt;FlexCAN_Ip_RxFifo&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;must be called on each interrupt. At max can speeds I see my RXTask taking up to 20% CPU time which is not acceptable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try to use the example. I have refreshed it with my RTD 6.0.0 but I do not see any interrupts firing, I will investigate. I also see Rm_Init is not found?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will look into DMA today to see if it can offer improvements. I am still unclear, will DMA only notify me once my watermark of messages&amp;nbsp; (8) is received?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 09:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200751#M54256</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2025-11-07T09:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200833#M54264</link>
      <description>&lt;P&gt;Ok, I have the DMA working in my application, thanks for your help. The example pointed me to Dma_Mux_IP_init which I was missing.&lt;/P&gt;&lt;P&gt;Now I do get the interrupt when it works, the first call to&amp;nbsp;FlexCAN_Ip_RxFifo may pass or fail, but everything is smooth beyond that. This failure is at&amp;nbsp;Static_Dma_Ip_GetLogicChannelError inside&amp;nbsp;Dma_Ip_SetLogicChannelTransferList. I am using FreeRTOS as mentioned, any idea why this might be occurring?&amp;nbsp;LocChState-&amp;gt;LogicChErrors is returning&amp;nbsp;0x80000002&lt;/P&gt;&lt;P&gt;Also, I'm testing with 1 buffer, but the data seems corrupt, i.e. the ID is never correct&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 11:21:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200833#M54264</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2025-11-07T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200838#M54265</link>
      <description>&lt;P&gt;Looks like after&amp;nbsp;FlexCAN_Ip_SetStartMode, EDMA-&amp;gt;ES is set to SBE_1&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 11:29:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200838#M54265</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2025-11-07T11:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200842#M54266</link>
      <description>&lt;P&gt;Apologies for the spam, I'm just actively debugging this. Setting&amp;nbsp;&lt;STRONG&gt;FlexCAN_Ip_RxFifo&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;before&amp;nbsp;FlexCAN_Ip_SetStartMode has solved the&amp;nbsp;EDMA-&amp;gt;ES is set to SBE_1 error. Now I am investigating why the buffer is not holding the correct data. I'm sending ID 0x200 with 64 bytes counting up. I see some of this counting data but it is in chunks and can be missing large pieces, generally looks corrupted, and the address ID is always 0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 11:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200842#M54266</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2025-11-07T11:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32K358 CAN RTD Watermark</title>
      <link>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200868#M54270</link>
      <description>&lt;P&gt;I now have this working. The qualifiers around the buffer was key to avoid the corruption;&lt;/P&gt;&lt;P&gt;__attribute__(( aligned(32) )) static Flexcan_Ip_MsgBuffType gEnhancedRxFifoBuffer[ENHANCED_RXFIFO_WATERMARK] __attribute__ ((section (".mcal_bss_no_cacheable")));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 12:28:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K358-CAN-RTD-Watermark/m-p/2200868#M54270</guid>
      <dc:creator>Greavesinator85</dc:creator>
      <dc:date>2025-11-07T12:28:17Z</dc:date>
    </item>
  </channel>
</rss>

