<?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: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data! in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1825115#M32777</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;do you use more MBs for transmitting? If yes, then what is a priority mechanism used? Check chapter&amp;nbsp;55.3.3 Arbitration process&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2024 11:18:10 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2024-03-11T11:18:10Z</dc:date>
    <item>
      <title>s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1817275#M32232</link>
      <description>&lt;P&gt;Picture1 :&amp;nbsp; Set flexcan1 to fifo receive mode and dma send mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_1-1709108959286.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265498i1F5851995387C107/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_1-1709108959286.png" alt="nmyzer_1-1709108959286.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_1-1709108959286.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Picture 2&amp;nbsp;Set flexcan2 to fifo receive mode and dma send mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_0-1709108939478.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265497iB277BA096C51C38D/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_0-1709108939478.png" alt="nmyzer_0-1709108939478.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_0-1709108939478.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Picture 3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_2-1709109079335.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265499iC6ACF3784512DD9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_2-1709109079335.png" alt="nmyzer_2-1709109079335.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_2-1709109079335.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Picture 4&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_3-1709109113896.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265500i3FD051393F6DCA35/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_3-1709109113896.png" alt="nmyzer_3-1709109113896.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_3-1709109113896.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I downloaded the program to the chip, when can data come , it got stuck in the image below。&lt;/P&gt;&lt;P&gt;Picture 5&amp;nbsp;&amp;nbsp;Where the program stuck&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_4-1709109215488.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265503iCE5E769634A17E9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_4-1709109215488.png" alt="nmyzer_4-1709109215488.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_4-1709109215488.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I changed the send mode to interrupt mode, the program could run, but when sending multiple CAN data, some CAN data frames would be missed. Unless I insert a 1ms delay function after each CAN send data frame.（Because I set up 16 filters, MB0 to 5 is occupied by data frames, MB6 to 9 is occupied by filters, so I use the sending mailbox MB10 to MB15）&lt;/P&gt;&lt;P&gt;I would like to know why FLEXCAN data frames cannot be sent in dma mode, please kindly ask NXP technical staff to help answer it, thank you！&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 13:01:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1817275#M32232</guid>
      <dc:creator>nmyzer</dc:creator>
      <dc:date>2024-02-28T13:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1818697#M32318</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;could you please specify the SDK version you are using? Or better share full project you have so we can check and test. How modules are used, you do communication between CAN1 and CAN2 or are you somehow connected to other nodes?&lt;/P&gt;
&lt;P&gt;Did you meant you cannot send message using TX MBs when DMA is used to read out RXFIFO? There shouldn't be issue with this. YOu can refer to below example,&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-RXFIFO-DMA-S32DS-ARM-2018-R1/ta-p/1120014" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-FlexCAN-RXFIFO-DMA-S32DS-ARM-2018-R1/ta-p/1120014&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1818697#M32318</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-02-29T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1818738#M32322</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;First, the SDK version I'm using is 3.0.0;&lt;/P&gt;&lt;P&gt;Second, I used CAN1 and CAN2 interfaces of a control circuit board to communicate with multiple external devices at the same time, rather than directly connecting CAN1 and CAN2.&lt;/P&gt;&lt;P&gt;Third, what I said above about the failure is wrong, the reality is that when the program is running, the data can be sent from my control board (which I observed with PEAKCAN), but once the external device run and starts sending data, my board starts receiving data. The program gets stuck inside the FLEXCAN_IRQHandler's while((flag_req&amp;amp;1u) == 0U);&lt;/P&gt;&lt;P&gt;Look forward to your professional answer, thank you&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 12:03:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1818738#M32322</guid>
      <dc:creator>nmyzer</dc:creator>
      <dc:date>2024-02-29T12:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1818743#M32323</link>
      <description>&lt;P&gt;picture 6：can1 callback function，similar to can2, but with different markup variables。&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_0-1709208363905.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265825i9918645FFB52C895/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_0-1709208363905.png" alt="nmyzer_0-1709208363905.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_0-1709208363905.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;picture 7：The task handler function that runs in the main loop&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_1-1709208422309.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265826i3B2A4F3F8E25851E/image-size/large?v=v2&amp;amp;px=999" role="button" title="nmyzer_1-1709208422309.png" alt="nmyzer_1-1709208422309.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_1-1709208422309.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 12:08:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1818743#M32323</guid>
      <dc:creator>nmyzer</dc:creator>
      <dc:date>2024-02-29T12:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1824192#M32709</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if remember well there was some&amp;nbsp;&lt;SPAN&gt;issue in S32PA RTM 3.0 regards desynchronization of MB status with the IFLAGs flags.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;SPAN&gt;The solution was to apply a check at the end of ISR function check in FLEXCAN_IRQHandler:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (FLEXCAN_GetMsgBuffIntStatusFlag(base, mb_idx) != 0U)&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* In case of desynchronized status of the MB to avoid trapping in ISR&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * clear the MB flag */&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLEXCAN_ClearMsgBuffIntStatusFlag(base, mb_idx);&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P class="xxmsonormal"&gt;&lt;I&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PetrS_0-1709905204016.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267285iC99A8848921F7062/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PetrS_0-1709905204016.png" alt="PetrS_0-1709905204016.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;PetrS_0-1709905204016.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be fixed in SDK 4.0.x. Moreover SDK30 is no longer maintained, I think, so it is advisable to use latest one, or move to RTD driver.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 13:42:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1824192#M32709</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-03-08T13:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1824538#M32731</link>
      <description>&lt;P&gt;Thank you for your reply. After a week of code debugging, the above problems have been solved;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But here's a new problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When my target board sends only one frame of data with a period of 10 seconds, the software shows that the receiving time period is very small error.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_0-1709986450273.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267386i4F4B0940F1ED769B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nmyzer_0-1709986450273.png" alt="nmyzer_0-1709986450273.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_0-1709986450273.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When my target board sent multiple frames of different periods of data, the original 10-second cycle of CAN data frame receiving time error became very large, and the entire program running slower, I roughly calculated that the program running 2 minutes of error is 4 seconds.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nmyzer_1-1709986801470.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267387i26B272ADBB07B405/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nmyzer_1-1709986801470.png" alt="nmyzer_1-1709986801470.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nmyzer_1-1709986801470.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 12:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1824538#M32731</guid>
      <dc:creator>nmyzer</dc:creator>
      <dc:date>2024-03-09T12:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: s32k144 can1 can2 FLEXCAN DMA FIFO Cannot receive data!</title>
      <link>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1825115#M32777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;do you use more MBs for transmitting? If yes, then what is a priority mechanism used? Check chapter&amp;nbsp;55.3.3 Arbitration process&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 11:18:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k144-can1-can2-FLEXCAN-DMA-FIFO-Cannot-receive-data/m-p/1825115#M32777</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2024-03-11T11:18:10Z</dc:date>
    </item>
  </channel>
</rss>

